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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // chooses a value, an implementation of this function should call | 152 // chooses a value, an implementation of this function should call |
153 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 153 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the |
154 // implementation opened date/time chooser UI successfully, it should return | 154 // implementation opened date/time chooser UI successfully, it should return |
155 // true. This function is used only if ExternalDateTimeChooser is used. | 155 // true. This function is used only if ExternalDateTimeChooser is used. |
156 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim
eChooserCompletion*) { return false; } | 156 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim
eChooserCompletion*) { return false; } |
157 | 157 |
158 // Show a notification popup for the specified form vaidation messages | 158 // Show a notification popup for the specified form vaidation messages |
159 // besides the anchor rectangle. An implementation of this function should | 159 // besides the anchor rectangle. An implementation of this function should |
160 // not hide the popup until hideValidationMessage call. | 160 // not hide the popup until hideValidationMessage call. |
161 virtual void showValidationMessage(const WebRect& anchorInRootView, const We
bString& mainText, WebTextDirection mainTextDir, const WebString& supplementalTe
xt, WebTextDirection supplementalTextDir) { } | 161 virtual void showValidationMessage(const WebRect& anchorInRootView, const We
bString& mainText, WebTextDirection mainTextDir, const WebString& supplementalTe
xt, WebTextDirection supplementalTextDir) { } |
162 // FIXME: BUG91638, when landed on chrome side, this will be removed. | |
163 virtual void showValidationMessage(const WebRect& anchorInRootView, const We
bString& mainText, const WebString& supplementalText, WebTextDirection hint) { } | |
164 | 162 |
165 // Hide notifation popup for form validation messages. | 163 // Hide notifation popup for form validation messages. |
166 virtual void hideValidationMessage() { } | 164 virtual void hideValidationMessage() { } |
167 | 165 |
168 // Move the existing notifation popup to the new anchor position. | 166 // Move the existing notifation popup to the new anchor position. |
169 virtual void moveValidationMessage(const WebRect& anchorInRootView) { } | 167 virtual void moveValidationMessage(const WebRect& anchorInRootView) { } |
170 | 168 |
171 | 169 |
172 // UI ------------------------------------------------------------------ | 170 // UI ------------------------------------------------------------------ |
173 | 171 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // Informs the browser that the draggable regions have been updated. | 303 // Informs the browser that the draggable regions have been updated. |
306 virtual void draggableRegionsChanged() { } | 304 virtual void draggableRegionsChanged() { } |
307 | 305 |
308 protected: | 306 protected: |
309 ~WebViewClient() { } | 307 ~WebViewClient() { } |
310 }; | 308 }; |
311 | 309 |
312 } // namespace blink | 310 } // namespace blink |
313 | 311 |
314 #endif | 312 #endif |
OLD | NEW |