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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // data for the frame that will be used to construct the frame's | 296 // data for the frame that will be used to construct the frame's |
297 // document. | 297 // document. |
298 virtual void commitDocumentData(const char* data, size_t length) = 0; | 298 virtual void commitDocumentData(const char* data, size_t length) = 0; |
299 | 299 |
300 // Returns the number of registered unload listeners. | 300 // Returns the number of registered unload listeners. |
301 virtual unsigned unloadListenerCount() const = 0; | 301 virtual unsigned unloadListenerCount() const = 0; |
302 | 302 |
303 // Returns true if a user gesture is currently being processed. | 303 // Returns true if a user gesture is currently being processed. |
304 virtual bool isProcessingUserGesture() const = 0; | 304 virtual bool isProcessingUserGesture() const = 0; |
305 | 305 |
| 306 // Returns true if this frame is in the process of opening a new frame |
| 307 // with a suppressed opener. |
| 308 virtual bool willSuppressOpenerInNewFrame() const = 0; |
| 309 |
306 | 310 |
307 // Editing ------------------------------------------------------------- | 311 // Editing ------------------------------------------------------------- |
308 | 312 |
309 // Replaces the selection with the given text. | 313 // Replaces the selection with the given text. |
310 virtual void replaceSelection(const WebString& text) = 0; | 314 virtual void replaceSelection(const WebString& text) = 0; |
311 | 315 |
312 virtual void insertText(const WebString& text) = 0; | 316 virtual void insertText(const WebString& text) = 0; |
313 | 317 |
314 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; | 318 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; |
315 virtual void unmarkText() = 0; | 319 virtual void unmarkText() = 0; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // from the DOM. | 443 // from the DOM. |
440 virtual WebString contentAsMarkup() const = 0; | 444 virtual WebString contentAsMarkup() const = 0; |
441 | 445 |
442 protected: | 446 protected: |
443 ~WebFrame() { } | 447 ~WebFrame() { } |
444 }; | 448 }; |
445 | 449 |
446 } // namespace WebKit | 450 } // namespace WebKit |
447 | 451 |
448 #endif | 452 #endif |
OLD | NEW |