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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 #if WEBKIT_USING_V8 | 208 #if WEBKIT_USING_V8 |
209 // Returns the V8 context for this frame, or an empty handle if there | 209 // Returns the V8 context for this frame, or an empty handle if there |
210 // is none. | 210 // is none. |
211 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; | 211 virtual v8::Local<v8::Context> mainWorldScriptContext() const = 0; |
212 #endif | 212 #endif |
213 | 213 |
214 | 214 |
215 // Styling ------------------------------------------------------------- | 215 // Styling ------------------------------------------------------------- |
216 | 216 |
217 // Insert the given text as a STYLE element at the beginning of the | 217 // Insert the given text as a STYLE element at the beginning of the |
218 // document. | 218 // document. |elementId| can be empty, but if specified then it is used |
219 virtual bool insertStyleText(const WebString&) = 0; | 219 // as the id for the newly inserted element (replacing an existing one |
| 220 // with the same id, if any). |
| 221 virtual bool insertStyleText(const WebString& styleText, |
| 222 const WebString& elementId) = 0; |
220 | 223 |
221 | 224 |
222 // Navigation ---------------------------------------------------------- | 225 // Navigation ---------------------------------------------------------- |
223 | 226 |
224 // Reload the current document. | 227 // Reload the current document. |
225 virtual void reload() = 0; | 228 virtual void reload() = 0; |
226 | 229 |
227 // Load the given URL. | 230 // Load the given URL. |
228 virtual void loadRequest(const WebURLRequest&) = 0; | 231 virtual void loadRequest(const WebURLRequest&) = 0; |
229 | 232 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 // from the DOM. | 438 // from the DOM. |
436 virtual WebString contentAsMarkup() const = 0; | 439 virtual WebString contentAsMarkup() const = 0; |
437 | 440 |
438 protected: | 441 protected: |
439 ~WebFrame() { } | 442 ~WebFrame() { } |
440 }; | 443 }; |
441 | 444 |
442 } // namespace WebKit | 445 } // namespace WebKit |
443 | 446 |
444 #endif | 447 #endif |
OLD | NEW |