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

Side by Side Diff: public/web/WebLocalFrame.h

Issue 660863002: [DevTools] Added public method for async execution of scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebLocalFrame_h 5 #ifndef WebLocalFrame_h
6 #define WebLocalFrame_h 6 #define WebLocalFrame_h
7 7
8 #include "WebFrame.h" 8 #include "WebFrame.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class WebScriptExecutionCallback;
13
12 // Interface for interacting with in process frames. This contains methods that 14 // Interface for interacting with in process frames. This contains methods that
13 // require interacting with a frame's document. 15 // require interacting with a frame's document.
14 // FIXME: Move lots of methods from WebFrame in here. 16 // FIXME: Move lots of methods from WebFrame in here.
15 class WebLocalFrame : public WebFrame { 17 class WebLocalFrame : public WebFrame {
16 public: 18 public:
17 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close(). 19 // Creates a WebFrame. Delete this WebFrame by calling WebFrame::close().
18 // It is valid to pass a null client pointer. 20 // It is valid to pass a null client pointer.
19 BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*); 21 BLINK_EXPORT static WebLocalFrame* create(WebFrameClient*);
20 22
21 // Returns the WebFrame associated with the current V8 context. This 23 // Returns the WebFrame associated with the current V8 context. This
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0; 62 virtual void navigateToSandboxedMarkup(const WebData& markup) = 0;
61 63
62 64
63 // Orientation Changes ---------------------------------------------------- 65 // Orientation Changes ----------------------------------------------------
64 66
65 // Notify the frame that the screen orientation has changed. 67 // Notify the frame that the screen orientation has changed.
66 virtual void sendOrientationChangeEvent() = 0; 68 virtual void sendOrientationChangeEvent() = 0;
67 69
68 70
69 // Scripting -------------------------------------------------------------- 71 // Scripting --------------------------------------------------------------
72 virtual void requestExecuteScriptAndReturnValue(const WebScriptSource&,
pfeldman 2014/10/22 15:38:17 Please document those. Also, it is not clear wheth
kozyatinskiy1 2014/10/22 16:46:58 Done.
73 bool userGesture, WebScriptExecutionCallback*) = 0;
74 virtual void requestExecuteScriptInIsolatedWorld(
75 int worldID, const WebScriptSource* sourceIn, unsigned numSources,
76 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) = 0;
77
70 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake 78 // ONLY FOR TESTS: Forwards to executeScriptAndReturnValue, but sets a fake
71 // UserGestureIndicator before execution. 79 // UserGestureIndicator before execution.
72 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0; 80 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests(const WebS criptSource&) = 0;
73 81
74 // Associates an isolated world with human-readable name which is useful for 82 // Associates an isolated world with human-readable name which is useful for
75 // extension debugging. 83 // extension debugging.
76 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0; 84 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) = 0;
77 85
78 86
79 // Selection -------------------------------------------------------------- 87 // Selection --------------------------------------------------------------
80 88
81 // Moves the selection extent point. This function does not allow the 89 // Moves the selection extent point. This function does not allow the
82 // selection to collapse. If the new extent is set to the same position as 90 // selection to collapse. If the new extent is set to the same position as
83 // the current base, this function will do nothing. 91 // the current base, this function will do nothing.
84 virtual void moveRangeSelectionExtent(const WebPoint&) = 0; 92 virtual void moveRangeSelectionExtent(const WebPoint&) = 0;
85 }; 93 };
86 94
87 } // namespace blink 95 } // namespace blink
88 96
89 #endif // WebLocalFrame_h 97 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698