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

Side by Side Diff: ui/views/controls/table/table_view_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/controls/table/table_view_views.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/base/keycodes/keyboard_codes.h" 10 #include "ui/base/keycodes/keyboard_codes.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 int FirstSelectedRow(); 102 int FirstSelectedRow();
103 103
104 void SetObserver(TableViewObserver* observer) { 104 void SetObserver(TableViewObserver* observer) {
105 table_view_observer_ = observer; 105 table_view_observer_ = observer;
106 } 106 }
107 TableViewObserver* observer() const { return table_view_observer_; } 107 TableViewObserver* observer() const { return table_view_observer_; }
108 108
109 // View overrides: 109 // View overrides:
110 virtual void Layout() OVERRIDE; 110 virtual void Layout() OVERRIDE;
111 virtual gfx::Size GetPreferredSize() OVERRIDE; 111 virtual gfx::Size GetPreferredSize() OVERRIDE;
112 virtual bool OnKeyPressed(const KeyEvent& event) OVERRIDE; 112 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
113 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE; 113 virtual bool OnMousePressed(const MouseEvent& event) OVERRIDE;
114 114
115 // ui::TableModelObserver overrides: 115 // ui::TableModelObserver overrides:
116 virtual void OnModelChanged() OVERRIDE; 116 virtual void OnModelChanged() OVERRIDE;
117 virtual void OnItemsChanged(int start, int length) OVERRIDE; 117 virtual void OnItemsChanged(int start, int length) OVERRIDE;
118 virtual void OnItemsAdded(int start, int length) OVERRIDE; 118 virtual void OnItemsAdded(int start, int length) OVERRIDE;
119 virtual void OnItemsRemoved(int start, int length) OVERRIDE; 119 virtual void OnItemsRemoved(int start, int length) OVERRIDE;
120 120
121 protected: 121 protected:
122 // View overrides: 122 // View overrides:
(...skipping 20 matching lines...) Expand all
143 gfx::Font font_; 143 gfx::Font font_;
144 144
145 int row_height_; 145 int row_height_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(TableView); 147 DISALLOW_COPY_AND_ASSIGN(TableView);
148 }; 148 };
149 149
150 } // namespace views 150 } // namespace views
151 151
152 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ 152 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « ui/views/controls/slider.cc ('k') | ui/views/controls/table/table_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698