Chromium Code Reviews| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 | 134 |
| 135 // This method is called in response to WebView's handleInputEvent() | 135 // This method is called in response to WebView's handleInputEvent() |
| 136 // when the default action for the current keyboard event is not | 136 // when the default action for the current keyboard event is not |
| 137 // suppressed by the page, to give the embedder a chance to handle | 137 // suppressed by the page, to give the embedder a chance to handle |
| 138 // the keyboard event specially. | 138 // the keyboard event specially. |
| 139 // | 139 // |
| 140 // Returns true if the keyboard event was handled by the embedder, | 140 // Returns true if the keyboard event was handled by the embedder, |
| 141 // indicating that the default action should be suppressed. | 141 // indicating that the default action should be suppressed. |
| 142 virtual bool handleCurrentKeyboardEvent() { return false; } | 142 virtual bool handleCurrentKeyboardEvent() { return false; } |
| 143 | 143 |
| 144 virtual const char* keyboardDOMCodeValue(int nativeValue) { return ""; } | |
|
Wez
2014/12/02 04:23:30
Add a comment to explain that this converts from t
Habib Virji
2014/12/02 11:52:21
Done.
| |
| 144 | 145 |
| 145 // Dialogs ------------------------------------------------------------- | 146 // Dialogs ------------------------------------------------------------- |
| 146 | 147 |
| 147 // This method returns immediately after showing the dialog. When the | 148 // This method returns immediately after showing the dialog. When the |
| 148 // dialog is closed, it should call the WebFileChooserCompletion to | 149 // dialog is closed, it should call the WebFileChooserCompletion to |
| 149 // pass the results of the dialog. Returns false if | 150 // pass the results of the dialog. Returns false if |
| 150 // WebFileChooseCompletion will never be called. | 151 // WebFileChooseCompletion will never be called. |
| 151 virtual bool runFileChooser(const WebFileChooserParams&, | 152 virtual bool runFileChooser(const WebFileChooserParams&, |
| 152 WebFileChooserCompletion*) { return false; } | 153 WebFileChooserCompletion*) { return false; } |
| 153 | 154 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 300 // Informs the browser that the draggable regions have been updated. | 301 // Informs the browser that the draggable regions have been updated. |
| 301 virtual void draggableRegionsChanged() { } | 302 virtual void draggableRegionsChanged() { } |
| 302 | 303 |
| 303 protected: | 304 protected: |
| 304 ~WebViewClient() { } | 305 ~WebViewClient() { } |
| 305 }; | 306 }; |
| 306 | 307 |
| 307 } // namespace blink | 308 } // namespace blink |
| 308 | 309 |
| 309 #endif | 310 #endif |
| OLD | NEW |