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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 | 127 |
128 // This method is called in response to WebView's handleInputEvent() | 128 // This method is called in response to WebView's handleInputEvent() |
129 // when the default action for the current keyboard event is not | 129 // when the default action for the current keyboard event is not |
130 // suppressed by the page, to give the embedder a chance to handle | 130 // suppressed by the page, to give the embedder a chance to handle |
131 // the keyboard event specially. | 131 // the keyboard event specially. |
132 // | 132 // |
133 // Returns true if the keyboard event was handled by the embedder, | 133 // Returns true if the keyboard event was handled by the embedder, |
134 // indicating that the default action should be suppressed. | 134 // indicating that the default action should be suppressed. |
135 virtual bool handleCurrentKeyboardEvent() { return false; } | 135 virtual bool handleCurrentKeyboardEvent() { return false; } |
136 | 136 |
137 // This method converts from the embedded-supplied domCode to | |
bokan
2015/01/20 17:05:59
Nit: embedder-supplied
Habib Virji
2015/01/22 16:01:30
Acknowledged.
| |
138 // the string value of the domCode | |
Wez
2015/01/17 02:35:10
nit: You're missing the full-stop at the line end.
Habib Virji
2015/01/22 16:01:31
Acknowledged.
| |
139 virtual const char* domCodeStringFromEnum(long domCode) { return ""; } | |
140 | |
141 // This method converts from the string converted using above function to | |
142 // the dom enum value | |
Wez
2015/01/17 02:35:10
And you're missing the full-stop here too.
This c
Habib Virji
2015/01/22 16:01:30
Done.
| |
143 virtual long domEnumFromCodeString(const char* codeString) { return 0; } | |
Rick Byers
2015/01/20 14:49:57
We don't pass strings as 'char*' anywhere else in
Habib Virji
2015/01/22 16:01:30
I have changed to WebString.
| |
137 | 144 |
138 // Dialogs ------------------------------------------------------------- | 145 // Dialogs ------------------------------------------------------------- |
139 | 146 |
140 // This method returns immediately after showing the dialog. When the | 147 // This method returns immediately after showing the dialog. When the |
141 // dialog is closed, it should call the WebFileChooserCompletion to | 148 // dialog is closed, it should call the WebFileChooserCompletion to |
142 // pass the results of the dialog. Returns false if | 149 // pass the results of the dialog. Returns false if |
143 // WebFileChooseCompletion will never be called. | 150 // WebFileChooseCompletion will never be called. |
144 virtual bool runFileChooser(const WebFileChooserParams&, | 151 virtual bool runFileChooser(const WebFileChooserParams&, |
145 WebFileChooserCompletion*) { return false; } | 152 WebFileChooserCompletion*) { return false; } |
146 | 153 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
293 // Informs the browser that the draggable regions have been updated. | 300 // Informs the browser that the draggable regions have been updated. |
294 virtual void draggableRegionsChanged() { } | 301 virtual void draggableRegionsChanged() { } |
295 | 302 |
296 protected: | 303 protected: |
297 ~WebViewClient() { } | 304 ~WebViewClient() { } |
298 }; | 305 }; |
299 | 306 |
300 } // namespace blink | 307 } // namespace blink |
301 | 308 |
302 #endif | 309 #endif |
OLD | NEW |