OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 // Executes script in the context of the current page. | 125 // Executes script in the context of the current page. |
126 virtual void executeScript(const WebScriptSource&) = 0; | 126 virtual void executeScript(const WebScriptSource&) = 0; |
127 | 127 |
128 // Logs to the console associated with this frame. | 128 // Logs to the console associated with this frame. |
129 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; | 129 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; |
130 | 130 |
131 // Calls window.gc() if it is defined. | 131 // Calls window.gc() if it is defined. |
132 virtual void collectGarbage() = 0; | 132 virtual void collectGarbage() = 0; |
133 | 133 |
134 // Executes script in the context of the current page and returns the value | |
135 // that the script evaluated to. | |
136 virtual v8::Handle<v8::Value> executeScriptAndReturnValue( | |
137 const WebScriptSource&) = 0; | |
138 | |
139 // Call the function with the given receiver and arguments, bypassing | |
140 // canExecute(). | |
141 virtual v8::Handle<v8::Value> callFunctionEvenIfScriptDisabled( | |
142 v8::Handle<v8::Function>, | |
143 v8::Handle<v8::Value>, | |
144 int argc, | |
145 v8::Handle<v8::Value> argv[]) = 0; | |
146 | |
147 // Returns the V8 context for associated with the main world and this | |
148 // frame. There can be many V8 contexts associated with this frame, one for | |
149 // each isolated world and one for the main world. If you don't know what | |
150 // the "main world" or an "isolated world" is, then you probably shouldn't | |
151 // be calling this API. | |
152 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; | |
153 | 134 |
154 // Navigation ---------------------------------------------------------- | 135 // Navigation ---------------------------------------------------------- |
155 | 136 |
156 virtual void load(const WebURL&, mojo::ScopedDataPipeConsumerHandle) = 0; | 137 virtual void load(const WebURL&, mojo::ScopedDataPipeConsumerHandle) = 0; |
157 | 138 |
158 | 139 |
159 // Editing ------------------------------------------------------------- | 140 // Editing ------------------------------------------------------------- |
160 | 141 |
161 // Replaces the selection with the given text. | 142 // Replaces the selection with the given text. |
162 virtual void replaceSelection(const WebString& text) = 0; | 143 virtual void replaceSelection(const WebString& text) = 0; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 private: | 235 private: |
255 }; | 236 }; |
256 | 237 |
257 #if BLINK_IMPLEMENTATION | 238 #if BLINK_IMPLEMENTATION |
258 Frame* toCoreFrame(const WebFrame*); | 239 Frame* toCoreFrame(const WebFrame*); |
259 #endif | 240 #endif |
260 | 241 |
261 } // namespace blink | 242 } // namespace blink |
262 | 243 |
263 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ | 244 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAME_H_ |
OLD | NEW |