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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // This method is called in response to WebView's handleInputEvent() | 136 // This method is called in response to WebView's handleInputEvent() |
137 // when the default action for the current keyboard event is not | 137 // when the default action for the current keyboard event is not |
138 // suppressed by the page, to give the embedder a chance to handle | 138 // suppressed by the page, to give the embedder a chance to handle |
139 // the keyboard event specially. | 139 // the keyboard event specially. |
140 // | 140 // |
141 // Returns true if the keyboard event was handled by the embedder, | 141 // Returns true if the keyboard event was handled by the embedder, |
142 // indicating that the default action should be suppressed. | 142 // indicating that the default action should be suppressed. |
143 virtual bool handleCurrentKeyboardEvent() { return false; } | 143 virtual bool handleCurrentKeyboardEvent() { return false; } |
144 | 144 |
| 145 virtual const char* getKeyboardDOMCodeValue(int nativeValue) { return ""; } |
145 | 146 |
146 // Dialogs ------------------------------------------------------------- | 147 // Dialogs ------------------------------------------------------------- |
147 | 148 |
148 // This method returns immediately after showing the dialog. When the | 149 // This method returns immediately after showing the dialog. When the |
149 // dialog is closed, it should call the WebFileChooserCompletion to | 150 // dialog is closed, it should call the WebFileChooserCompletion to |
150 // pass the results of the dialog. Returns false if | 151 // pass the results of the dialog. Returns false if |
151 // WebFileChooseCompletion will never be called. | 152 // WebFileChooseCompletion will never be called. |
152 virtual bool runFileChooser(const WebFileChooserParams&, | 153 virtual bool runFileChooser(const WebFileChooserParams&, |
153 WebFileChooserCompletion*) { return false; } | 154 WebFileChooserCompletion*) { return false; } |
154 | 155 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // Informs the browser that the draggable regions have been updated. | 307 // Informs the browser that the draggable regions have been updated. |
307 virtual void draggableRegionsChanged() { } | 308 virtual void draggableRegionsChanged() { } |
308 | 309 |
309 protected: | 310 protected: |
310 ~WebViewClient() { } | 311 ~WebViewClient() { } |
311 }; | 312 }; |
312 | 313 |
313 } // namespace blink | 314 } // namespace blink |
314 | 315 |
315 #endif | 316 #endif |
OLD | NEW |