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

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: Access DOM Code value using embedder API Created 6 years, 1 month 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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« Source/web/WebInputEventConversion.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698