Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: public/web/WebViewClient.h

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added code in relevant constructors and init functions Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/tests/WebPluginContainerTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/tests/WebPluginContainerTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698