OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |