| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebViewClient_h | 31 #ifndef WebViewClient_h |
| 32 #define WebViewClient_h | 32 #define WebViewClient_h |
| 33 | 33 |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebGraphicsContext3D.h" | 35 #include "../platform/WebGraphicsContext3D.h" |
| 36 #include "../platform/WebString.h" | 36 #include "../platform/WebString.h" |
| 37 #include "WebAccessibilityNotification.h" | 37 #include "WebAccessibilityNotification.h" |
| 38 #include "WebConsoleMessage.h" |
| 38 #include "WebContentDetectionResult.h" | 39 #include "WebContentDetectionResult.h" |
| 39 #include "WebDragOperation.h" | 40 #include "WebDragOperation.h" |
| 40 #include "WebEditingAction.h" | 41 #include "WebEditingAction.h" |
| 41 #include "WebFileChooserCompletion.h" | 42 #include "WebFileChooserCompletion.h" |
| 42 #include "WebFileChooserParams.h" | 43 #include "WebFileChooserParams.h" |
| 43 #include "WebPageVisibilityState.h" | 44 #include "WebPageVisibilityState.h" |
| 44 #include "WebPopupType.h" | 45 #include "WebPopupType.h" |
| 45 #include "WebTextAffinity.h" | 46 #include "WebTextAffinity.h" |
| 46 #include "WebTextDirection.h" | 47 #include "WebTextDirection.h" |
| 47 #include "WebWidgetClient.h" | 48 #include "WebWidgetClient.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // FIXME: Remove the argument-taking version once its override is removed fr
om Chromium; the argument is unused. | 125 // FIXME: Remove the argument-taking version once its override is removed fr
om Chromium; the argument is unused. |
| 125 virtual WebStorageNamespace* createSessionStorageNamespace(unsigned quota) {
return 0; } | 126 virtual WebStorageNamespace* createSessionStorageNamespace(unsigned quota) {
return 0; } |
| 126 | 127 |
| 127 | 128 |
| 128 // Misc ---------------------------------------------------------------- | 129 // Misc ---------------------------------------------------------------- |
| 129 | 130 |
| 130 // A new message was added to the console. | 131 // A new message was added to the console. |
| 131 virtual void didAddMessageToConsole( | 132 virtual void didAddMessageToConsole( |
| 132 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi
ne) { } | 133 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi
ne) { } |
| 133 | 134 |
| 135 // Whether or not we should report a detailed message from the given source. |
| 136 virtual bool shouldReportDetailedMessage(const WebString& source) { return f
alse; } |
| 137 |
| 138 // Report a detailed message from a Javascript [Log|Error|Exception]. |
| 139 virtual void reportDetailedMessage(const WebString& source, WebConsoleMessag
e::Level level, const WebString& message, const WebString& jsonStackTrace) { } |
| 140 |
| 134 // Called when script in the page calls window.print(). If frame is | 141 // Called when script in the page calls window.print(). If frame is |
| 135 // non-null, then it selects a particular frame, including its | 142 // non-null, then it selects a particular frame, including its |
| 136 // children, to print. Otherwise, the main frame and its children | 143 // children, to print. Otherwise, the main frame and its children |
| 137 // should be printed. | 144 // should be printed. |
| 138 virtual void printPage(WebFrame*) { } | 145 virtual void printPage(WebFrame*) { } |
| 139 | 146 |
| 140 // Called to retrieve the provider of desktop notifications. | 147 // Called to retrieve the provider of desktop notifications. |
| 141 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 148 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
| 142 | 149 |
| 143 // Called to request an icon for the specified filenames. | 150 // Called to request an icon for the specified filenames. |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // Informs the browser that the draggable regions have been updated. | 400 // Informs the browser that the draggable regions have been updated. |
| 394 virtual void draggableRegionsChanged() { } | 401 virtual void draggableRegionsChanged() { } |
| 395 | 402 |
| 396 protected: | 403 protected: |
| 397 ~WebViewClient() { } | 404 ~WebViewClient() { } |
| 398 }; | 405 }; |
| 399 | 406 |
| 400 } // namespace WebKit | 407 } // namespace WebKit |
| 401 | 408 |
| 402 #endif | 409 #endif |
| OLD | NEW |