| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Executes script in the context of the current page. | 138 // Executes script in the context of the current page. |
| 139 virtual void executeScript(const WebScriptSource&) = 0; | 139 virtual void executeScript(const WebScriptSource&) = 0; |
| 140 | 140 |
| 141 // Executes script in a new context associated with the frame. The | 141 // Executes script in a new context associated with the frame. The |
| 142 // script gets its own global scope and its own prototypes for | 142 // script gets its own global scope and its own prototypes for |
| 143 // intrinsic JS objects (String, Array, and so-on). It shares the | 143 // intrinsic JS objects (String, Array, and so-on). It shares the |
| 144 // wrappers for all DOM nodes and DOM constructors. | 144 // wrappers for all DOM nodes and DOM constructors. |
| 145 virtual void executeScriptInNewContext(const WebScriptSource* sources, | 145 virtual void executeScriptInNewContext(const WebScriptSource* sources, |
| 146 unsigned numSources) = 0; | 146 unsigned numSources) = 0; |
| 147 | 147 |
| 148 // Executes JavaScript in a new world associated with the web frame. |
| 149 // The script gets its own global scope and its own prototypes for |
| 150 // intrinsic JavaScript objects (String, Array, and so-on). It also |
| 151 // gets its own wrappers for all DOM nodes and DOM constructors. |
| 152 virtual void executeScriptInNewWorld(const WebScriptSource* sources, |
| 153 unsigned numSources) = 0; |
| 154 |
| 148 // Logs to the console associated with this frame. | 155 // Logs to the console associated with this frame. |
| 149 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; | 156 virtual void addMessageToConsole(const WebConsoleMessage&) = 0; |
| 150 | 157 |
| 151 | 158 |
| 152 // Styling ------------------------------------------------------------- | 159 // Styling ------------------------------------------------------------- |
| 153 | 160 |
| 154 // Insert the given text as a STYLE element at the beginning of the | 161 // Insert the given text as a STYLE element at the beginning of the |
| 155 // document. | 162 // document. |
| 156 virtual bool insertStyleText(const WebString&) = 0; | 163 virtual bool insertStyleText(const WebString&) = 0; |
| 157 | 164 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 | 258 |
| 252 | 259 |
| 253 // Find-in-page -------------------------------------------------------- | 260 // Find-in-page -------------------------------------------------------- |
| 254 | 261 |
| 255 // FIXME | 262 // FIXME |
| 256 }; | 263 }; |
| 257 | 264 |
| 258 } // namespace WebKit | 265 } // namespace WebKit |
| 259 | 266 |
| 260 #endif | 267 #endif |
| OLD | NEW |