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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; } | 119 virtual WebWidget* createPopupMenu(const WebPopupMenuInfo&) { return 0; } |
119 virtual WebExternalPopupMenu* createExternalPopupMenu( | 120 virtual WebExternalPopupMenu* createExternalPopupMenu( |
120 const WebPopupMenuInfo&, WebExternalPopupMenuClient*) { return 0; } | 121 const WebPopupMenuInfo&, WebExternalPopupMenuClient*) { return 0; } |
121 | 122 |
122 // Create a session storage namespace object associated with this WebView. | 123 // Create a session storage namespace object associated with this WebView. |
123 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } | 124 virtual WebStorageNamespace* createSessionStorageNamespace() { return 0; } |
124 | 125 |
125 | 126 |
126 // Misc ---------------------------------------------------------------- | 127 // Misc ---------------------------------------------------------------- |
127 | 128 |
| 129 // Whether or not we should report a detailed message for the given source. |
| 130 virtual bool shouldReportDetailedMessageForContext(v8::Handle<v8::Context>)
{ return false; } |
| 131 virtual bool shouldReportDetailedMessageForURL(const WebString& source) { re
turn false; } |
| 132 |
128 // A new message was added to the console. | 133 // A new message was added to the console. |
129 virtual void didAddMessageToConsole( | 134 virtual void didAddMessageToConsole( |
130 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi
ne) { } | 135 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi
ne, const WebString& details) { } |
131 | 136 |
132 // Called when script in the page calls window.print(). If frame is | 137 // Called when script in the page calls window.print(). If frame is |
133 // non-null, then it selects a particular frame, including its | 138 // non-null, then it selects a particular frame, including its |
134 // children, to print. Otherwise, the main frame and its children | 139 // children, to print. Otherwise, the main frame and its children |
135 // should be printed. | 140 // should be printed. |
136 virtual void printPage(WebFrame*) { } | 141 virtual void printPage(WebFrame*) { } |
137 | 142 |
138 // Called to retrieve the provider of desktop notifications. | 143 // Called to retrieve the provider of desktop notifications. |
139 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 144 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
140 | 145 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // Informs the browser that the draggable regions have been updated. | 396 // Informs the browser that the draggable regions have been updated. |
392 virtual void draggableRegionsChanged() { } | 397 virtual void draggableRegionsChanged() { } |
393 | 398 |
394 protected: | 399 protected: |
395 ~WebViewClient() { } | 400 ~WebViewClient() { } |
396 }; | 401 }; |
397 | 402 |
398 } // namespace WebKit | 403 } // namespace WebKit |
399 | 404 |
400 #endif | 405 #endif |
OLD | NEW |