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 27 matching lines...) Expand all Loading... |
38 #include "WebContentDetectionResult.h" | 38 #include "WebContentDetectionResult.h" |
39 #include "WebDragOperation.h" | 39 #include "WebDragOperation.h" |
40 #include "WebEditingAction.h" | 40 #include "WebEditingAction.h" |
41 #include "WebFileChooserCompletion.h" | 41 #include "WebFileChooserCompletion.h" |
42 #include "WebFileChooserParams.h" | 42 #include "WebFileChooserParams.h" |
43 #include "WebPageVisibilityState.h" | 43 #include "WebPageVisibilityState.h" |
44 #include "WebPopupType.h" | 44 #include "WebPopupType.h" |
45 #include "WebTextAffinity.h" | 45 #include "WebTextAffinity.h" |
46 #include "WebTextDirection.h" | 46 #include "WebTextDirection.h" |
47 #include "WebWidgetClient.h" | 47 #include "WebWidgetClient.h" |
| 48 #include <v8.h> |
48 | 49 |
49 namespace WebKit { | 50 namespace WebKit { |
50 | 51 |
51 class WebAccessibilityObject; | 52 class WebAccessibilityObject; |
52 class WebColorChooser; | 53 class WebColorChooser; |
53 class WebColorChooserClient; | 54 class WebColorChooserClient; |
54 class WebCompositorOutputSurface; | 55 class WebCompositorOutputSurface; |
55 class WebDateTimeChooserCompletion; | 56 class WebDateTimeChooserCompletion; |
56 class WebDeviceOrientationClient; | 57 class WebDeviceOrientationClient; |
57 class WebDragData; | 58 class WebDragData; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; } | 120 virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; } |
120 virtual WebExternalPopupMenu* createExternalPopupMenu( | 121 virtual WebExternalPopupMenu* createExternalPopupMenu( |
121 const WebPopupMenuInfo&, WebExternalPopupMenuClient*) { return 0; } | 122 const WebPopupMenuInfo&, WebExternalPopupMenuClient*) { return 0; } |
122 | 123 |
123 // Create a session storage namespace object associated with this WebView. | 124 // Create a session storage namespace object associated with this WebView. |
124 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } | 125 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } |
125 | 126 |
126 | 127 |
127 // Misc ---------------------------------------------------------------- | 128 // Misc ---------------------------------------------------------------- |
128 | 129 |
129 // A new message was added to the console. | 130 // Whether or not we should report a detailed message from the given source. |
| 131 virtual bool shouldReportDetailedMessage(v8::Handle<v8::Context>, const WebS
tring& source) { return false; } |
| 132 |
| 133 // A new message was added to the console. If a detailed message should be |
| 134 // reported, a stringified JSON object is included; otherwise, |details| is |
| 135 // empty. |
130 virtual void didAddMessageToConsole( | 136 virtual void didAddMessageToConsole( |
131 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi
ne) { } | 137 const WebConsoleMessage&, const WebString& sourceName, |
| 138 unsigned sourceLine, const WebString& details) { } |
132 | 139 |
133 // Called when script in the page calls window.print(). If frame is | 140 // Called when script in the page calls window.print(). If frame is |
134 // non-null, then it selects a particular frame, including its | 141 // non-null, then it selects a particular frame, including its |
135 // children, to print. Otherwise, the main frame and its children | 142 // children, to print. Otherwise, the main frame and its children |
136 // should be printed. | 143 // should be printed. |
137 virtual void printPage(WebFrame*) { } | 144 virtual void printPage(WebFrame*) { } |
138 | 145 |
139 // Called to retrieve the provider of desktop notifications. | 146 // Called to retrieve the provider of desktop notifications. |
140 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 147 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
141 | 148 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // Informs the browser that the draggable regions have been updated. | 403 // Informs the browser that the draggable regions have been updated. |
397 virtual void draggableRegionsChanged() { } | 404 virtual void draggableRegionsChanged() { } |
398 | 405 |
399 protected: | 406 protected: |
400 ~WebViewClient() { } | 407 ~WebViewClient() { } |
401 }; | 408 }; |
402 | 409 |
403 } // namespace WebKit | 410 } // namespace WebKit |
404 | 411 |
405 #endif | 412 #endif |
OLD | NEW |