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

Unified Diff: ui/views/controls/textfield/native_textfield_views.h

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/controls/table/table_view_views.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/textfield/native_textfield_views.h
===================================================================
--- ui/views/controls/textfield/native_textfield_views.h (revision 150588)
+++ ui/views/controls/textfield/native_textfield_views.h (working copy)
@@ -30,7 +30,6 @@
namespace views {
class FocusableBorder;
-class KeyEvent;
class MenuModelAdapter;
class MenuRunner;
@@ -58,7 +57,7 @@
virtual bool OnMouseDragged(const MouseEvent& event) OVERRIDE;
virtual void OnMouseReleased(const MouseEvent& event) OVERRIDE;
virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE;
- virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE;
+ virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
virtual bool GetDropFormats(
int* formats,
std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
@@ -66,7 +65,7 @@
virtual int OnDragUpdated(const DropTargetEvent& event) OVERRIDE;
virtual int OnPerformDrop(const DropTargetEvent& event) OVERRIDE;
virtual void OnDragDone() OVERRIDE;
- virtual bool OnKeyReleased(const KeyEvent& event) OVERRIDE;
+ virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE;
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual void OnFocus() OVERRIDE;
virtual void OnBlur() OVERRIDE;
@@ -116,8 +115,8 @@
virtual void GetSelectionModel(gfx::SelectionModel* sel) const OVERRIDE;
virtual void SelectSelectionModel(const gfx::SelectionModel& sel) OVERRIDE;
virtual size_t GetCursorPosition() const OVERRIDE;
- virtual bool HandleKeyPressed(const KeyEvent& e) OVERRIDE;
- virtual bool HandleKeyReleased(const KeyEvent& e) OVERRIDE;
+ virtual bool HandleKeyPressed(const ui::KeyEvent& e) OVERRIDE;
+ virtual bool HandleKeyReleased(const ui::KeyEvent& e) OVERRIDE;
virtual void HandleFocus() OVERRIDE;
virtual void HandleBlur() OVERRIDE;
virtual ui::TextInputClient* GetTextInputClient() OVERRIDE;
@@ -193,7 +192,7 @@
void PaintTextAndCursor(gfx::Canvas* canvas);
// Handle the keyevent.
- bool HandleKeyEvent(const KeyEvent& key_event);
+ bool HandleKeyEvent(const ui::KeyEvent& key_event);
// Helper function to call MoveCursorTo on the TextfieldViewsModel.
bool MoveCursorTo(const gfx::Point& point, bool select);
« no previous file with comments | « ui/views/controls/table/table_view_views.cc ('k') | ui/views/controls/textfield/native_textfield_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698