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> | |
abarth-chromium
2013/07/19 03:12:17
Hum... This is suspicious. We probably don't wan
| |
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 for the given source. |
131 virtual bool shouldReportDetailedMessageForContext(v8::Handle<v8::Context>) { return false; } | |
132 virtual bool shouldReportDetailedMessageForURL(const WebString& source) { re turn false; } | |
133 | |
134 // A new message was added to the console. If a detailed message should be | |
135 // reported, a stringified JSON object is included; otherwise, |details| is | |
136 // empty. | |
130 virtual void didAddMessageToConsole( | 137 virtual void didAddMessageToConsole( |
131 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi ne) { } | 138 const WebConsoleMessage&, const WebString& sourceName, |
139 unsigned sourceLine, const WebString& details) { } | |
132 | 140 |
133 // 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 |
134 // non-null, then it selects a particular frame, including its | 142 // non-null, then it selects a particular frame, including its |
135 // children, to print. Otherwise, the main frame and its children | 143 // children, to print. Otherwise, the main frame and its children |
136 // should be printed. | 144 // should be printed. |
137 virtual void printPage(WebFrame*) { } | 145 virtual void printPage(WebFrame*) { } |
138 | 146 |
139 // Called to retrieve the provider of desktop notifications. | 147 // Called to retrieve the provider of desktop notifications. |
140 virtual WebNotificationPresenter* notificationPresenter() { return 0; } | 148 virtual WebNotificationPresenter* notificationPresenter() { return 0; } |
141 | 149 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
396 // Informs the browser that the draggable regions have been updated. | 404 // Informs the browser that the draggable regions have been updated. |
397 virtual void draggableRegionsChanged() { } | 405 virtual void draggableRegionsChanged() { } |
398 | 406 |
399 protected: | 407 protected: |
400 ~WebViewClient() { } | 408 ~WebViewClient() { } |
401 }; | 409 }; |
402 | 410 |
403 } // namespace WebKit | 411 } // namespace WebKit |
404 | 412 |
405 #endif | 413 #endif |
OLD | NEW |