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 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 #ifndef WebViewClient_h | 31 #ifndef WebViewClient_h |
32 #define WebViewClient_h | 32 #define WebViewClient_h |
33 | 33 |
34 #include "../platform/WebDragOperation.h" | 34 #include "../platform/WebDragOperation.h" |
35 #include "../platform/WebPageVisibilityState.h" | 35 #include "../platform/WebPageVisibilityState.h" |
36 #include "../platform/WebString.h" | 36 #include "../platform/WebString.h" |
37 #include "WebAXEnums.h" | 37 #include "WebAXEnums.h" |
38 #include "WebContentDetectionResult.h" | 38 #include "WebContentDetectionResult.h" |
39 #include "WebFileChooserCompletion.h" | 39 #include "WebFileChooserCompletion.h" |
40 #include "WebFileChooserParams.h" | 40 #include "WebFileChooserParams.h" |
dcheng
2016/06/10 21:43:35
Can we remove these includes?
nasko
2016/06/10 22:07:50
Done.
| |
41 #include "WebFrame.h" | 41 #include "WebFrame.h" |
42 #include "WebPopupType.h" | 42 #include "WebPopupType.h" |
43 #include "WebTextDirection.h" | 43 #include "WebTextDirection.h" |
44 #include "WebWidgetClient.h" | 44 #include "WebWidgetClient.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class WebAXObject; | 48 class WebAXObject; |
49 class WebDateTimeChooserCompletion; | 49 class WebDateTimeChooserCompletion; |
50 class WebDragData; | 50 class WebDragData; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 // when the default action for the current keyboard event is not | 127 // when the default action for the current keyboard event is not |
128 // suppressed by the page, to give the embedder a chance to handle | 128 // suppressed by the page, to give the embedder a chance to handle |
129 // the keyboard event specially. | 129 // the keyboard event specially. |
130 // | 130 // |
131 // Returns true if the keyboard event was handled by the embedder, | 131 // Returns true if the keyboard event was handled by the embedder, |
132 // indicating that the default action should be suppressed. | 132 // indicating that the default action should be suppressed. |
133 virtual bool handleCurrentKeyboardEvent() { return false; } | 133 virtual bool handleCurrentKeyboardEvent() { return false; } |
134 | 134 |
135 // Dialogs ------------------------------------------------------------- | 135 // Dialogs ------------------------------------------------------------- |
136 | 136 |
137 // This method returns immediately after showing the dialog. When the | |
138 // dialog is closed, it should call the WebFileChooserCompletion to | |
139 // pass the results of the dialog. Returns false if | |
140 // WebFileChooseCompletion will never be called. | |
141 virtual bool runFileChooser(const WebFileChooserParams&, | |
142 WebFileChooserCompletion*) { return false; } | |
143 | |
144 // Ask users to choose date/time for the specified parameters. When a user | 137 // Ask users to choose date/time for the specified parameters. When a user |
145 // chooses a value, an implementation of this function should call | 138 // chooses a value, an implementation of this function should call |
146 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 139 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the |
147 // implementation opened date/time chooser UI successfully, it should return | 140 // implementation opened date/time chooser UI successfully, it should return |
148 // true. This function is used only if ExternalDateTimeChooser is used. | 141 // true. This function is used only if ExternalDateTimeChooser is used. |
149 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; } | 142 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; } |
150 | 143 |
151 // Show a notification popup for the specified form validation messages | 144 // Show a notification popup for the specified form validation messages |
152 // besides the anchor rectangle. An implementation of this function should | 145 // besides the anchor rectangle. An implementation of this function should |
153 // not hide the popup until hideValidationMessage call. | 146 // not hide the popup until hideValidationMessage call. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
301 WebRect windowRect() override { return WebRect(); } | 294 WebRect windowRect() override { return WebRect(); } |
302 WebRect windowResizerRect() override { return WebRect(); } | 295 WebRect windowResizerRect() override { return WebRect(); } |
303 | 296 |
304 protected: | 297 protected: |
305 ~WebViewClient() { } | 298 ~WebViewClient() { } |
306 }; | 299 }; |
307 | 300 |
308 } // namespace blink | 301 } // namespace blink |
309 | 302 |
310 #endif | 303 #endif |
OLD | NEW |