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

Side by Side Diff: webkit/glue/webview_impl.h

Issue 20046: Home and End keys should not be processed by the autocomplete popup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H__ 5 #ifndef WEBKIT_GLUE_WEBVIEW_IMPL_H__
6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H__ 6 #define WEBKIT_GLUE_WEBVIEW_IMPL_H__
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // A copy of the WebPreferences object we receive from the browser. 241 // A copy of the WebPreferences object we receive from the browser.
242 WebPreferences webprefs_; 242 WebPreferences webprefs_;
243 243
244 // A copy of the web drop data object we received from the browser. 244 // A copy of the web drop data object we received from the browser.
245 RefPtr<WebCore::ChromiumDataObject> current_drop_data_; 245 RefPtr<WebCore::ChromiumDataObject> current_drop_data_;
246 246
247 private: 247 private:
248 // Returns true if the event was actually processed. 248 // Returns true if the event was actually processed.
249 bool KeyEventDefault(const WebKeyboardEvent& event); 249 bool KeyEventDefault(const WebKeyboardEvent& event);
250 250
251 // Returns true if the autocomple has consumed the event.
252 bool AutocompleteHandleKeyEvent(const WebKeyboardEvent& event);
253
251 // Returns true if the view was scrolled. 254 // Returns true if the view was scrolled.
252 bool ScrollViewWithKeyboard(int key_code); 255 bool ScrollViewWithKeyboard(int key_code);
253 256
254 // Removes fetcher from the set of pending image fetchers and deletes it. 257 // Removes fetcher from the set of pending image fetchers and deletes it.
255 // This is invoked after the download is completed (or fails). 258 // This is invoked after the download is completed (or fails).
256 void DeleteImageResourceFetcher(ImageResourceFetcher* fetcher); 259 void DeleteImageResourceFetcher(ImageResourceFetcher* fetcher);
257 260
258 // Returns the currently focused Node or NULL if no node has focus. 261 // Returns the currently focused Node or NULL if no node has focus.
259 WebCore::Node* GetFocusedNode(); 262 WebCore::Node* GetFocusedNode();
260 263
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 return g_current_input_event; 308 return g_current_input_event;
306 } 309 }
307 private: 310 private:
308 static const WebInputEvent* g_current_input_event; 311 static const WebInputEvent* g_current_input_event;
309 312
310 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl); 313 DISALLOW_EVIL_CONSTRUCTORS(WebViewImpl);
311 }; 314 };
312 315
313 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__ 316 #endif // WEBKIT_GLUE_WEBVIEW_IMPL_H__
314 317
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698