Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Side by Side Diff: Source/core/inspector/InspectorClient.cpp

Issue 14524003: Absolutify paths to bindings/v8, bindings/v8/custom/. Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/inspector/InspectorClient.h" 32 #include "core/inspector/InspectorClient.h"
33 33
34 #include "ScriptController.h" 34 #include "bindings/v8/ScriptController.h"
35 #include "ScriptSourceCode.h" 35 #include "bindings/v8/ScriptSourceCode.h"
36 #include "ScriptValue.h" 36 #include "bindings/v8/ScriptValue.h"
37 #include "core/page/Frame.h" 37 #include "core/page/Frame.h"
38 #include "core/page/Page.h" 38 #include "core/page/Page.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 bool InspectorClient::doDispatchMessageOnFrontendPage(Page* frontendPage, const String& message) 42 bool InspectorClient::doDispatchMessageOnFrontendPage(Page* frontendPage, const String& message)
43 { 43 {
44 if (!frontendPage) 44 if (!frontendPage)
45 return false; 45 return false;
46 46
47 Frame* frame = frontendPage->mainFrame(); 47 Frame* frame = frontendPage->mainFrame();
48 if (!frame) 48 if (!frame)
49 return false; 49 return false;
50 50
51 ScriptController* scriptController = frame->script(); 51 ScriptController* scriptController = frame->script();
52 if (!scriptController) 52 if (!scriptController)
53 return false; 53 return false;
54 54
55 String dispatchToFrontend = "InspectorFrontendAPI.dispatchMessageAsync(" + m essage + ");"; 55 String dispatchToFrontend = "InspectorFrontendAPI.dispatchMessageAsync(" + m essage + ");";
56 56
57 // FIXME: This should execute the script in the appropriate world. 57 // FIXME: This should execute the script in the appropriate world.
58 scriptController->evaluate(ScriptSourceCode(dispatchToFrontend)); 58 scriptController->evaluate(ScriptSourceCode(dispatchToFrontend));
59 return true; 59 return true;
60 } 60 }
61 61
62 } // namespace WebCore 62 } // namespace WebCore
63 63
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorCanvasInstrumentation.h ('k') | Source/core/inspector/InspectorConsoleAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698