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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 virtual void dispatchWillSendRequest(WebURLRequest&) = 0; | 289 virtual void dispatchWillSendRequest(WebURLRequest&) = 0; |
290 | 290 |
291 // Called from within WebFrameClient::didReceiveDocumentData to commit | 291 // Called from within WebFrameClient::didReceiveDocumentData to commit |
292 // data for the frame that will be used to construct the frame's | 292 // data for the frame that will be used to construct the frame's |
293 // document. | 293 // document. |
294 virtual void commitDocumentData(const char* data, size_t length) = 0; | 294 virtual void commitDocumentData(const char* data, size_t length) = 0; |
295 | 295 |
296 // Returns the number of registered unload listeners. | 296 // Returns the number of registered unload listeners. |
297 virtual unsigned unloadListenerCount() const = 0; | 297 virtual unsigned unloadListenerCount() const = 0; |
298 | 298 |
| 299 // Returns true if a user gesture is currently being processed. |
| 300 virtual bool isProcessingUserGesture() const = 0; |
| 301 |
299 | 302 |
300 // Editing ------------------------------------------------------------- | 303 // Editing ------------------------------------------------------------- |
301 | 304 |
302 // Replaces the selection with the given text. | 305 // Replaces the selection with the given text. |
303 virtual void replaceSelection(const WebString& text) = 0; | 306 virtual void replaceSelection(const WebString& text) = 0; |
304 | 307 |
305 virtual void insertText(const WebString& text) = 0; | 308 virtual void insertText(const WebString& text) = 0; |
306 | 309 |
307 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; | 310 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; |
308 virtual void unmarkText() = 0; | 311 virtual void unmarkText() = 0; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 // from the DOM. | 442 // from the DOM. |
440 virtual WebString contentAsMarkup() const = 0; | 443 virtual WebString contentAsMarkup() const = 0; |
441 | 444 |
442 protected: | 445 protected: |
443 ~WebFrame() { } | 446 ~WebFrame() { } |
444 }; | 447 }; |
445 | 448 |
446 } // namespace WebKit | 449 } // namespace WebKit |
447 | 450 |
448 #endif | 451 #endif |
OLD | NEW |