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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Ask users to choose date/time for the specified parameters. When a user | 145 // Ask users to choose date/time for the specified parameters. When a user |
146 // chooses a value, an implementation of this function should call | 146 // chooses a value, an implementation of this function should call |
147 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 147 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the |
148 // implementation opened date/time chooser UI successfully, it should return | 148 // implementation opened date/time chooser UI successfully, it should return |
149 // true. This function is used only if ExternalDateTimeChooser is used. | 149 // true. This function is used only if ExternalDateTimeChooser is used. |
150 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim
eChooserCompletion*) { return false; } | 150 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim
eChooserCompletion*) { return false; } |
151 | 151 |
152 // Show a notification popup for the specified form validation messages | 152 // Show a notification popup for the specified form validation messages |
153 // besides the anchor rectangle. An implementation of this function should | 153 // besides the anchor rectangle. An implementation of this function should |
154 // not hide the popup until hideValidationMessage call. | 154 // not hide the popup until hideValidationMessage call. |
155 // FIXME: Clarify anchor coordinates in variable name on Chromium-side. | |
156 virtual void showValidationMessage(const WebRect& anchorInViewport, const We
bString& mainText, WebTextDirection mainTextDir, const WebString& supplementalTe
xt, WebTextDirection supplementalTextDir) { } | 155 virtual void showValidationMessage(const WebRect& anchorInViewport, const We
bString& mainText, WebTextDirection mainTextDir, const WebString& supplementalTe
xt, WebTextDirection supplementalTextDir) { } |
157 | 156 |
158 // Hide notifation popup for form validation messages. | 157 // Hide notifation popup for form validation messages. |
159 virtual void hideValidationMessage() { } | 158 virtual void hideValidationMessage() { } |
160 | 159 |
161 // Move the existing notifation popup to the new anchor position. | 160 // Move the existing notifation popup to the new anchor position. |
162 // FIXME: Clarify anchor coordinates in variable name on Chromium-side. | |
163 virtual void moveValidationMessage(const WebRect& anchorInViewport) { } | 161 virtual void moveValidationMessage(const WebRect& anchorInViewport) { } |
164 | 162 |
165 | 163 |
166 // UI ------------------------------------------------------------------ | 164 // UI ------------------------------------------------------------------ |
167 | 165 |
168 // Called when script modifies window.status | 166 // Called when script modifies window.status |
169 virtual void setStatusText(const WebString&) { } | 167 virtual void setStatusText(const WebString&) { } |
170 | 168 |
171 // Called when hovering over an anchor with the given URL. | 169 // Called when hovering over an anchor with the given URL. |
172 virtual void setMouseOverURL(const WebURL&) { } | 170 virtual void setMouseOverURL(const WebURL&) { } |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // Informs the browser that the draggable regions have been updated. | 270 // Informs the browser that the draggable regions have been updated. |
273 virtual void draggableRegionsChanged() { } | 271 virtual void draggableRegionsChanged() { } |
274 | 272 |
275 protected: | 273 protected: |
276 ~WebViewClient() { } | 274 ~WebViewClient() { } |
277 }; | 275 }; |
278 | 276 |
279 } // namespace blink | 277 } // namespace blink |
280 | 278 |
281 #endif | 279 #endif |
OLD | NEW |