Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
debs
WebKit
Commits
c0371e57
Commit
c0371e57
authored
Dec 18, 2013
by
Alberto Garcia
Browse files
Imported Upstream version 2.3.3
parent
7c8b7753
Changes
1000
Expand all
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
ChangeLog
View file @
c0371e57
2013-12-12 Martin Robinson
<mrobinson
@
igalia.com
>
[GTK] [CMake] Build the plugin process against GTK+ 2
https://bugs.webkit.org/show_bug.cgi?id=116374
Reviewed by Gustavo Noronha Silva.
* Source/cmake/FindGDK2.cmake: Added.
* Source/cmake/FindGTK2.cmake: Added.
* Source/cmake/OptionsGTK.cmake: Look for GTK2 and GDK2.
* Source/cmake/WebKitMacros.cmake: Abstract WebKit2 IPC generation here so it
can be shared between the WebKit2 library and the plugin process.
2013-12-17 Simon Pena
<simon.pena
@
samsung.com
>
[NIX] Enable full debug builds by having ar creating thin archives
https://bugs.webkit.org/show_bug.cgi?id=125850
Reviewed by Csaba Osztrogonác.
By default, CMake uses ar to generate libWebCore.a with cr parameters
(do not warn if the library has to be created, and replace existing
files in the archive). That results in a very large file, and ar fails
with sizes over 4GB.
Previously, debug builds on NIX were overriding CFLAGS in order to reduce
the size of the WebCore library. Once that ar creates thin archives, overriding
CFLAGS is no longer needed.
* Source/cmake/OptionsNix.cmake: Remove CFLAGS override for debug builds.
2013-12-13 Joseph Pecoraro
<pecoraro
@
apple.com
>
[GTK] Remove Warnings in building about duplicate INSPECTOR variables
https://bugs.webkit.org/show_bug.cgi?id=125710
Reviewed by Tim Horton.
* GNUmakefile.am:
2013-12-13 Joseph Pecoraro
<pecoraro
@
apple.com
>
Web Inspector: Add Inspector Code Generation to JavaScriptCore for Runtime Domain
https://bugs.webkit.org/show_bug.cgi?id=125595
Reviewed by Timothy Hatcher.
* GNUmakefile.am:
2013-12-13 Zan Dobersek
<zdobersek
@
igalia.com
>
[GTK] Remove the -Wno-c++11-extensions compiler option for Clang builds
https://bugs.webkit.org/show_bug.cgi?id=125639
Reviewed by Anders Carlsson.
* Source/autotools/SetupCompilerFlags.m4: The -Wno-c++11-extensions compiler option was in use
when building with Clang. It is now removed as the C++11 standard is enabled throughout the project.
2013-12-11 Martin Robinson
<mrobinson
@
igalia.com
>
and Danilo Cesar Lemes de Paula
<danilo.cesar
@
collabora.co.uk
>
Adding a .ycm_extra_conf file for webkitGtk
https://bugs.webkit.org/show_bug.cgi?id=119618
Reviewed by Gustavo Noronha Silva.
Added a YouCompleteMe flag discovery script for Vim and the GTK+ port. The script
read the GTK+ build files to determine dynamically what flags to compile a source
file with. This allows Vim to provide auto-complete for C++/C language. See
https://github.com/Valloric/YouCompleteMe for how to use this file.
* .gitignore: Ignore the YCM symlinks in the tree.
2013-12-12 Zan Dobersek
<zdobersek
@
igalia.com
>
Use of ar T option not supported by older binutils
https://bugs.webkit.org/show_bug.cgi?id=118732
Reviewed by Gustavo Noronha Silva.
* Source/autotools/SetupLibtool.m4: Make the AR_FLAGS value usable inside makefiles as an Automake variable.
2013-12-11 Javier Fernandez
<jfernandez
@
igalia.com
>
Arithmetic overflow when computing max-height CSS property with subpixel layout
https://bugs.webkit.org/show_bug.cgi?id=119273
Reviewed by Martin Robinson.
Enabled SATURATED_LAYOUT_ARITHMETIC for the gtk+ port.
* Source/autotools/SetupWebKitFeatures.m4:
2013-12-10 Tamas Gergely
<tgergely.u-szeged
@
partner.samsung.com
>
[CMAKE] Remove code that disables C++0x compat warnings for gcc-4.6 and above.
https://bugs.webkit.org/show_bug.cgi?id=125492
Reviewed by Zoltan Herczeg.
Remove the code that disables these warnings for GCC >= 4.6.0
* Source/cmake/WebKitHelpers.cmake:
2013-12-10 Martin Robinson
<mrobinson
@
igalia.com
>
Various fixes for the CMake GTK+ build
Reviewed by Gustavo Noronha.
* Source/cmake/OptionsGTK.cmake: Disable Quota support to maintain consistency with
autotools build.
2013-12-09 Brian Holt
<brian.holt
@
samsung.com
>
[WK2][Gtk] Add support for ENABLE_NETWORK_PROCESS to the build system
https://bugs.webkit.org/show_bug.cgi?id=118231
Reviewed by Martin Robinson.
Original patch by Kwang Yul Seo
<skyul
@
company100.net
>
.
Disabled ENABLE_NETWORK_PROCESS by default.
* Source/autotools/SetupAutomake.m4:
* Source/autotools/SetupWebKitFeatures.m4:
2013-12-06 Alberto Garcia
<berto
@
igalia.com
>
[GTK] Enable web audio by default
https://bugs.webkit.org/show_bug.cgi?id=124888
Reviewed by Martin Robinson.
When building with ./configure, enable_web_audio defaults to
"no". However the basic functionality has been working for months
so it's safe to enable it now.
* Source/autotools/ReadCommandLineArguments.m4:
2013-12-04 Ryosuke Niwa
<rniwa
@
webkit.org
>
Enable HTMLTemplateElement by default
https://bugs.webkit.org/show_bug.cgi?id=123851
Reviewed by Antti Koivisto.
* Source/autotools/SetupWebKitFeatures.m4:
* Source/cmake/WebKitFeatures.cmake:
2013-12-04 László Langó
<lango
@
inf.u-szeged.hu
>
Allow --cloop option to work correctly in case of EFL.
https://bugs.webkit.org/show_bug.cgi?id=125217
Reviewed by Zoltan Herczeg.
* Source/cmake/OptionsEfl.cmake:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:
2013-12-03 Ryuan Choi
<ryuan.choi
@
samsung.com
>
[EFL] Disable RTTI for release build
https://bugs.webkit.org/show_bug.cgi?id=125138
Reviewed by Gyuyoung Kim.
Binary size will be reduced about 1M bytes without RTTI.
ewebkit.so : 43,449,275 -> 42,510,224
ewebkit2.so: 46,715,870 -> 45,653,989
* Source/cmake/OptionsEfl.cmake: Added -fno-rtti option to CMAKE_CXX_FLAGS_RELEASE.
2013-12-02 Adrian Bunk
<bunk
@
stusta.de
>
[GTK] Remove unneeded autoconf macros
https://bugs.webkit.org/show_bug.cgi?id=125044
Compilers that do not support const/inline/volatile and
systems with pre-C89-headers are anyway not supported.
Reviewed by Gustavo Noronha Silva.
* Source/autotools/CheckSystemAndBasicDependencies.m4:
2013-11-29 Laszlo Vidacs
<lac
@
inf.u-szeged.hu
>
[cmake] Fix cmake warning: Argument not separated from preceding token by whitespace
https://bugs.webkit.org/show_bug.cgi?id=124899
Reviewed by Gyuyoung Kim.
* Source/cmake/FindCairo.cmake:
* Source/cmake/FindGStreamer.cmake:
2013-11-28 Antti Koivisto
<antti
@
apple.com
>
Remove feature: CSS variables
https://bugs.webkit.org/show_bug.cgi?id=114119
Reviewed by Andreas Kling.
* Source/cmakeconfig.h.cmake:
2013-11-27 László Langó
<lango
@
inf.u-szeged.hu
>
[EFL] The remote inspector does not show the base page.
https://bugs.webkit.org/show_bug.cgi?id=124942
Reviewed by Gyuyoung Kim.
On EFL the remote inspector does not show the base page about
which pages are available for debug. This should be fixed for
further inspector development.
* Source/PlatformEfl.cmake:
2013-11-26 Marcelo Lira
<marcelo.lira
@
openbossa.org
>
Nix upstreaming - Adding build files and supporting scripts
https://bugs.webkit.org/show_bug.cgi?id=118367
Reviewed by Ryosuke Niwa.
* CMakeLists.txt:
* Source/CMakeLists.txt:
* Source/cmake/FindEGL.cmake:
* Source/cmake/FindOpenGLES2.cmake: Added.
* Source/cmake/OptionsCommon.cmake:
* Source/cmake/OptionsNix.cmake: Added.
2013-11-25 Ryuan Choi
<ryuan.choi
@
samsung.com
>
[EFL] E_DBus should be an optional
https://bugs.webkit.org/show_bug.cgi?id=124881
Reviewed by Gyuyoung Kim.
* Source/cmake/OptionsEfl.cmake:
Checked E_DBus when only ENABLE_BATTERY_STATUS is on.
2013-11-25 Ryuan Choi
<ryuan.choi
@
samsung.com
>
[EFL] Use Config mode of find_package for EFL 1.8
https://bugs.webkit.org/show_bug.cgi?id=124555
Reviewed by Gyuyoung Kim.
EFL 1.8 changed VERSION macro so it's difficult to use tricky approach
which parses header files to know the version. Instead, EFL 1.8 supports
FooConfig.cmake such as EinaConfig.cmake.
This patch tries to use a config mode if it is available.
If config mode is not available with Eo, FindFoo.cmake will be used without
version requirement.
* Source/cmake/FindEo.cmake: Removed.
EoConfig.cmake is only preffered for EFL 1.8.
* Source/cmake/OptionsEfl.cmake:
2013-11-23 Xabier Rodriguez Calvar
<calvaris
@
igalia.com
>
[GStreamer] Remove 0.10 codepath
https://bugs.webkit.org/show_bug.cgi?id=124534
Reviewed by Philippe Normand.
* Source/cmake/OptionsEfl.cmake: Removed GST_API_VERSION_1
definition.
2013-11-22 Manuel Rego Casasnovas
<rego
@
igalia.com
>
[GTK] Review enabled/disabled CSS features for release builds
https://bugs.webkit.org/show_bug.cgi?id=124791
Reviewed by Martin Robinson.
Enable and disable some CSS features according to what last versions of
Safari ship or not.
* Source/autotools/SetupWebKitFeatures.m4: Enable ENABLE_CSS_REGIONS and
ENABLE_CSS_STICKY_POSITION. Disable ENABLE_CSS_EXCLUSIONS and
ENABLE_CSS_SHAPES.
2013-11-21 Peter Molnar
<pmolnar.u-szeged
@
partner.samsung.com
>
Remove ENABLE_WORKERS
https://bugs.webkit.org/show_bug.cgi?id=105784
Reviewed by Darin Adler.
* Source/autotools/SetupWebKitFeatures.m4:
* Source/cmake/WebKitFeatures.cmake:
* Source/cmakeconfig.h.cmake:
2013-11-20 Commit Queue
<commit-queue
@
webkit.org
>
Unreviewed, rolling out r159496.
http://trac.webkit.org/changeset/159496
https://bugs.webkit.org/show_bug.cgi?id=124641
It caused warning and build break with cmake lower than 2.8.8
(Requested by ryuan on #webkit).
* Source/cmake/OptionsEfl.cmake:
2013-11-19 Ryuan Choi
<ryuan.choi
@
samsung.com
>
[EFL] Use Config mode of find_package for EFL 1.8
https://bugs.webkit.org/show_bug.cgi?id=124555
Reviewed by Gyuyoung Kim.
EFL 1.8 changed VERSION macro so it's difficult to use tricky approach
which parses header file to know the version. Instead, EFL 1.8 supports
Config mode of find_package using XXXConfig.cmake such as EinaConfig.cmake.
This patch tries to use Config mode if it is available after checking Eo.
* Source/cmake/OptionsEfl.cmake:
2013-11-18 Carlos Garcia Campos
<cgarcia
@
igalia.com
>
Unreviewed. Update NEWS and Versions.m4 for 2.3.2 release.
...
...
DerivedSources/JavaScriptCore/InspectorJSBackendDispatchers.cpp
0 → 100644
View file @
c0371e57
This diff is collapsed.
Click to expand it.
DerivedSources/JavaScriptCore/InspectorJSBackendDispatchers.h
0 → 100644
View file @
c0371e57
// File is generated by JavaScriptCore/inspector/scripts/CodeGeneratorInspector.py
// Copyright (c) 2013 Apple Inc. All Rights Reserved.
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef InspectorJSBackendDispatchers_h
#define InspectorJSBackendDispatchers_h
#include
"InspectorJSTypeBuilders.h"
#include
<inspector/InspectorBackendDispatcher.h>
#include
<wtf/PassRefPtr.h>
#include
<wtf/text/WTFString.h>
namespace
Inspector
{
typedef
String
ErrorString
;
#if ENABLE(JAVASCRIPT_DEBUGGER)
class
JS_EXPORT_PRIVATE
InspectorDebuggerBackendDispatcherHandler
{
public:
virtual
void
causesRecompilation
(
ErrorString
*
,
bool
*
out_result
)
=
0
;
virtual
void
supportsSeparateScriptCompilationAndExecution
(
ErrorString
*
,
bool
*
out_result
)
=
0
;
virtual
void
enable
(
ErrorString
*
)
=
0
;
virtual
void
disable
(
ErrorString
*
)
=
0
;
virtual
void
setBreakpointsActive
(
ErrorString
*
,
bool
in_active
)
=
0
;
virtual
void
setBreakpointByUrl
(
ErrorString
*
,
int
in_lineNumber
,
const
String
*
in_url
,
const
String
*
in_urlRegex
,
const
int
*
in_columnNumber
,
const
RefPtr
<
Inspector
::
InspectorObject
>*
in_options
,
Inspector
::
TypeBuilder
::
Debugger
::
BreakpointId
*
out_breakpointId
,
RefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
Debugger
::
Location
>
>&
out_locations
)
=
0
;
virtual
void
setBreakpoint
(
ErrorString
*
,
const
RefPtr
<
Inspector
::
InspectorObject
>&
in_location
,
const
RefPtr
<
Inspector
::
InspectorObject
>*
in_options
,
Inspector
::
TypeBuilder
::
Debugger
::
BreakpointId
*
out_breakpointId
,
RefPtr
<
Inspector
::
TypeBuilder
::
Debugger
::
Location
>&
out_actualLocation
)
=
0
;
virtual
void
removeBreakpoint
(
ErrorString
*
,
const
String
&
in_breakpointId
)
=
0
;
virtual
void
continueToLocation
(
ErrorString
*
,
const
RefPtr
<
Inspector
::
InspectorObject
>&
in_location
)
=
0
;
virtual
void
stepOver
(
ErrorString
*
)
=
0
;
virtual
void
stepInto
(
ErrorString
*
)
=
0
;
virtual
void
stepOut
(
ErrorString
*
)
=
0
;
virtual
void
pause
(
ErrorString
*
)
=
0
;
virtual
void
resume
(
ErrorString
*
)
=
0
;
virtual
void
searchInContent
(
ErrorString
*
,
const
String
&
in_scriptId
,
const
String
&
in_query
,
const
bool
*
in_caseSensitive
,
const
bool
*
in_isRegex
,
RefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
GenericTypes
::
SearchMatch
>
>&
out_result
)
=
0
;
virtual
void
canSetScriptSource
(
ErrorString
*
,
bool
*
out_result
)
=
0
;
virtual
void
setScriptSource
(
ErrorString
*
,
const
String
&
in_scriptId
,
const
String
&
in_scriptSource
,
const
bool
*
in_preview
,
RefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
Debugger
::
CallFrame
>
>&
opt_out_callFrames
,
RefPtr
<
Inspector
::
InspectorObject
>&
opt_out_result
)
=
0
;
virtual
void
getScriptSource
(
ErrorString
*
,
const
String
&
in_scriptId
,
String
*
out_scriptSource
)
=
0
;
virtual
void
getFunctionDetails
(
ErrorString
*
,
const
String
&
in_functionId
,
RefPtr
<
Inspector
::
TypeBuilder
::
Debugger
::
FunctionDetails
>&
out_details
)
=
0
;
virtual
void
setPauseOnExceptions
(
ErrorString
*
,
const
String
&
in_state
)
=
0
;
virtual
void
evaluateOnCallFrame
(
ErrorString
*
,
const
String
&
in_callFrameId
,
const
String
&
in_expression
,
const
String
*
in_objectGroup
,
const
bool
*
in_includeCommandLineAPI
,
const
bool
*
in_doNotPauseOnExceptionsAndMuteConsole
,
const
bool
*
in_returnByValue
,
const
bool
*
in_generatePreview
,
RefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
RemoteObject
>&
out_result
,
Inspector
::
TypeBuilder
::
OptOutput
<
bool
>*
opt_out_wasThrown
)
=
0
;
virtual
void
compileScript
(
ErrorString
*
,
const
String
&
in_expression
,
const
String
&
in_sourceURL
,
Inspector
::
TypeBuilder
::
OptOutput
<
Inspector
::
TypeBuilder
::
Debugger
::
ScriptId
>*
opt_out_scriptId
,
Inspector
::
TypeBuilder
::
OptOutput
<
String
>*
opt_out_syntaxErrorMessage
)
=
0
;
virtual
void
runScript
(
ErrorString
*
,
const
String
&
in_scriptId
,
const
int
*
in_contextId
,
const
String
*
in_objectGroup
,
const
bool
*
in_doNotPauseOnExceptionsAndMuteConsole
,
RefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
RemoteObject
>&
out_result
,
Inspector
::
TypeBuilder
::
OptOutput
<
bool
>*
opt_out_wasThrown
)
=
0
;
virtual
void
setOverlayMessage
(
ErrorString
*
,
const
String
*
in_message
)
=
0
;
protected:
virtual
~
InspectorDebuggerBackendDispatcherHandler
()
{
}
};
#endif // ENABLE(JAVASCRIPT_DEBUGGER)
class
JS_EXPORT_PRIVATE
InspectorInspectorBackendDispatcherHandler
{
public:
virtual
void
enable
(
ErrorString
*
)
=
0
;
virtual
void
disable
(
ErrorString
*
)
=
0
;
protected:
virtual
~
InspectorInspectorBackendDispatcherHandler
()
{
}
};
class
JS_EXPORT_PRIVATE
InspectorRuntimeBackendDispatcherHandler
{
public:
virtual
void
parse
(
ErrorString
*
,
const
String
&
in_source
,
Inspector
::
TypeBuilder
::
Runtime
::
SyntaxErrorType
::
Enum
*
out_result
,
Inspector
::
TypeBuilder
::
OptOutput
<
String
>*
opt_out_message
,
RefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
ErrorRange
>&
opt_out_range
)
=
0
;
virtual
void
evaluate
(
ErrorString
*
,
const
String
&
in_expression
,
const
String
*
in_objectGroup
,
const
bool
*
in_includeCommandLineAPI
,
const
bool
*
in_doNotPauseOnExceptionsAndMuteConsole
,
const
int
*
in_contextId
,
const
bool
*
in_returnByValue
,
const
bool
*
in_generatePreview
,
RefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
RemoteObject
>&
out_result
,
Inspector
::
TypeBuilder
::
OptOutput
<
bool
>*
opt_out_wasThrown
)
=
0
;
virtual
void
callFunctionOn
(
ErrorString
*
,
const
String
&
in_objectId
,
const
String
&
in_functionDeclaration
,
const
RefPtr
<
Inspector
::
InspectorArray
>*
in_arguments
,
const
bool
*
in_doNotPauseOnExceptionsAndMuteConsole
,
const
bool
*
in_returnByValue
,
const
bool
*
in_generatePreview
,
RefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
RemoteObject
>&
out_result
,
Inspector
::
TypeBuilder
::
OptOutput
<
bool
>*
opt_out_wasThrown
)
=
0
;
virtual
void
getProperties
(
ErrorString
*
,
const
String
&
in_objectId
,
const
bool
*
in_ownProperties
,
RefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
Runtime
::
PropertyDescriptor
>
>&
out_result
,
RefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
Runtime
::
InternalPropertyDescriptor
>
>&
opt_out_internalProperties
)
=
0
;
virtual
void
releaseObject
(
ErrorString
*
,
const
String
&
in_objectId
)
=
0
;
virtual
void
releaseObjectGroup
(
ErrorString
*
,
const
String
&
in_objectGroup
)
=
0
;
virtual
void
run
(
ErrorString
*
)
=
0
;
virtual
void
enable
(
ErrorString
*
)
=
0
;
virtual
void
disable
(
ErrorString
*
)
=
0
;
protected:
virtual
~
InspectorRuntimeBackendDispatcherHandler
()
{
}
};
#if ENABLE(JAVASCRIPT_DEBUGGER)
class
JS_EXPORT_PRIVATE
InspectorDebuggerBackendDispatcher
FINAL
:
public
Inspector
::
InspectorSupplementalBackendDispatcher
{
public:
static
PassRefPtr
<
InspectorDebuggerBackendDispatcher
>
create
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorDebuggerBackendDispatcherHandler
*
);
virtual
void
dispatch
(
long
callId
,
const
String
&
method
,
PassRefPtr
<
Inspector
::
InspectorObject
>
message
)
OVERRIDE
;
private:
void
causesRecompilation
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
supportsSeparateScriptCompilationAndExecution
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
enable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
disable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setBreakpointsActive
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setBreakpointByUrl
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setBreakpoint
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
removeBreakpoint
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
continueToLocation
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
stepOver
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
stepInto
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
stepOut
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
pause
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
resume
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
searchInContent
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
canSetScriptSource
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setScriptSource
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
getScriptSource
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
getFunctionDetails
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setPauseOnExceptions
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
evaluateOnCallFrame
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
compileScript
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
runScript
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
setOverlayMessage
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
private:
InspectorDebuggerBackendDispatcher
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorDebuggerBackendDispatcherHandler
*
);
InspectorDebuggerBackendDispatcherHandler
*
m_agent
;
};
#endif // ENABLE(JAVASCRIPT_DEBUGGER)
class
JS_EXPORT_PRIVATE
InspectorInspectorBackendDispatcher
FINAL
:
public
Inspector
::
InspectorSupplementalBackendDispatcher
{
public:
static
PassRefPtr
<
InspectorInspectorBackendDispatcher
>
create
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorInspectorBackendDispatcherHandler
*
);
virtual
void
dispatch
(
long
callId
,
const
String
&
method
,
PassRefPtr
<
Inspector
::
InspectorObject
>
message
)
OVERRIDE
;
private:
void
enable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
disable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
private:
InspectorInspectorBackendDispatcher
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorInspectorBackendDispatcherHandler
*
);
InspectorInspectorBackendDispatcherHandler
*
m_agent
;
};
class
JS_EXPORT_PRIVATE
InspectorRuntimeBackendDispatcher
FINAL
:
public
Inspector
::
InspectorSupplementalBackendDispatcher
{
public:
static
PassRefPtr
<
InspectorRuntimeBackendDispatcher
>
create
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorRuntimeBackendDispatcherHandler
*
);
virtual
void
dispatch
(
long
callId
,
const
String
&
method
,
PassRefPtr
<
Inspector
::
InspectorObject
>
message
)
OVERRIDE
;
private:
void
parse
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
evaluate
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
callFunctionOn
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
getProperties
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
releaseObject
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
releaseObjectGroup
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
run
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
enable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
void
disable
(
long
callId
,
const
Inspector
::
InspectorObject
&
message
);
private:
InspectorRuntimeBackendDispatcher
(
Inspector
::
InspectorBackendDispatcher
*
,
InspectorRuntimeBackendDispatcherHandler
*
);
InspectorRuntimeBackendDispatcherHandler
*
m_agent
;
};
}
// namespace Inspector
#endif // !defined(InspectorJSBackendDispatchers_h)
DerivedSources/JavaScriptCore/InspectorJSFrontendDispatchers.cpp
0 → 100644
View file @
c0371e57
// File is generated by JavaScriptCore/inspector/scripts/CodeGeneratorInspector.py
// Copyright (c) 2013 Apple Inc. All Rights Reserved.
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include
"config.h"
#include
"InspectorJSFrontendDispatchers.h"
#if ENABLE(INSPECTOR)
#include
<wtf/text/CString.h>
#include
<wtf/text/WTFString.h>
namespace
Inspector
{
#if ENABLE(JAVASCRIPT_DEBUGGER)
void
InspectorDebuggerFrontendDispatcher
::
globalObjectCleared
()
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.globalObjectCleared"
));
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorDebuggerFrontendDispatcher
::
scriptParsed
(
const
Inspector
::
TypeBuilder
::
Debugger
::
ScriptId
&
scriptId
,
const
String
&
url
,
int
startLine
,
int
startColumn
,
int
endLine
,
int
endColumn
,
const
bool
*
const
isContentScript
,
const
String
*
const
sourceMapURL
,
const
bool
*
const
hasSourceURL
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.scriptParsed"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setString
(
ASCIILiteral
(
"scriptId"
),
scriptId
);
paramsObject
->
setString
(
ASCIILiteral
(
"url"
),
url
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"startLine"
),
startLine
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"startColumn"
),
startColumn
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"endLine"
),
endLine
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"endColumn"
),
endColumn
);
if
(
isContentScript
)
paramsObject
->
setBoolean
(
ASCIILiteral
(
"isContentScript"
),
*
isContentScript
);
if
(
sourceMapURL
)
paramsObject
->
setString
(
ASCIILiteral
(
"sourceMapURL"
),
*
sourceMapURL
);
if
(
hasSourceURL
)
paramsObject
->
setBoolean
(
ASCIILiteral
(
"hasSourceURL"
),
*
hasSourceURL
);
jsonMessage
->
setObject
(
ASCIILiteral
(
"params"
),
paramsObject
);
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorDebuggerFrontendDispatcher
::
scriptFailedToParse
(
const
String
&
url
,
const
String
&
scriptSource
,
int
startLine
,
int
errorLine
,
const
String
&
errorMessage
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.scriptFailedToParse"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setString
(
ASCIILiteral
(
"url"
),
url
);
paramsObject
->
setString
(
ASCIILiteral
(
"scriptSource"
),
scriptSource
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"startLine"
),
startLine
);
paramsObject
->
setNumber
(
ASCIILiteral
(
"errorLine"
),
errorLine
);
paramsObject
->
setString
(
ASCIILiteral
(
"errorMessage"
),
errorMessage
);
jsonMessage
->
setObject
(
ASCIILiteral
(
"params"
),
paramsObject
);
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorDebuggerFrontendDispatcher
::
breakpointResolved
(
const
Inspector
::
TypeBuilder
::
Debugger
::
BreakpointId
&
breakpointId
,
PassRefPtr
<
Inspector
::
TypeBuilder
::
Debugger
::
Location
>
location
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.breakpointResolved"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setString
(
ASCIILiteral
(
"breakpointId"
),
breakpointId
);
paramsObject
->
setValue
(
ASCIILiteral
(
"location"
),
location
);
jsonMessage
->
setObject
(
ASCIILiteral
(
"params"
),
paramsObject
);
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorDebuggerFrontendDispatcher
::
paused
(
PassRefPtr
<
Inspector
::
TypeBuilder
::
Array
<
Inspector
::
TypeBuilder
::
Debugger
::
CallFrame
>
>
callFrames
,
Reason
::
Enum
reason
,
PassRefPtr
<
Inspector
::
InspectorObject
>
data
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.paused"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setValue
(
ASCIILiteral
(
"callFrames"
),
callFrames
);
paramsObject
->
setString
(
ASCIILiteral
(
"reason"
),
Inspector
::
TypeBuilder
::
getJSEnumConstantValue
(
reason
));
if
(
data
)
paramsObject
->
setValue
(
ASCIILiteral
(
"data"
),
data
);
jsonMessage
->
setObject
(
ASCIILiteral
(
"params"
),
paramsObject
);
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorDebuggerFrontendDispatcher
::
resumed
()
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Debugger.resumed"
));
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
#endif // ENABLE(JAVASCRIPT_DEBUGGER)
void
InspectorInspectorFrontendDispatcher
::
evaluateForTestInFrontend
(
int
testCallId
,
const
String
&
script
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Inspector.evaluateForTestInFrontend"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setNumber
(
ASCIILiteral
(
"testCallId"
),
testCallId
);
paramsObject
->
setString
(
ASCIILiteral
(
"script"
),
script
);
jsonMessage
->
setObject
(
ASCIILiteral
(
"params"
),
paramsObject
);
m_inspectorFrontendChannel
->
sendMessageToFrontend
(
jsonMessage
->
toJSONString
());
}
void
InspectorInspectorFrontendDispatcher
::
inspect
(
PassRefPtr
<
Inspector
::
TypeBuilder
::
Runtime
::
RemoteObject
>
object
,
PassRefPtr
<
Inspector
::
InspectorObject
>
hints
)
{
RefPtr
<
InspectorObject
>
jsonMessage
=
InspectorObject
::
create
();
jsonMessage
->
setString
(
ASCIILiteral
(
"method"
),
ASCIILiteral
(
"Inspector.inspect"
));
RefPtr
<
InspectorObject
>
paramsObject
=
InspectorObject
::
create
();
paramsObject
->
setValue
(
ASCIILiteral
(
"object"
),
object
);
paramsObject
->
setValue
(
ASCIILiteral
(
"hints"
),
hints
);