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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 148 matching lines...) Loading... |
159 // Maps from the index in terms of the model to that of the view. | 159 // Maps from the index in terms of the model to that of the view. |
160 int ModelToView(int model_index) const; | 160 int ModelToView(int model_index) const; |
161 | 161 |
162 // Maps from the index in terms of the view to that of the model. | 162 // Maps from the index in terms of the view to that of the model. |
163 int ViewToModel(int view_index) const; | 163 int ViewToModel(int view_index) const; |
164 | 164 |
165 int row_height() const { return row_height_; } | 165 int row_height() const { return row_height_; } |
166 | 166 |
167 // View overrides: | 167 // View overrides: |
168 virtual void Layout() OVERRIDE; | 168 virtual void Layout() OVERRIDE; |
169 virtual gfx::Size GetPreferredSize() OVERRIDE; | 169 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
170 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 170 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
171 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 171 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
172 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 172 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
173 virtual bool GetTooltipText(const gfx::Point& p, | 173 virtual bool GetTooltipText(const gfx::Point& p, |
174 base::string16* tooltip) const OVERRIDE; | 174 base::string16* tooltip) const OVERRIDE; |
175 virtual bool GetTooltipTextOrigin(const gfx::Point& p, | 175 virtual bool GetTooltipTextOrigin(const gfx::Point& p, |
176 gfx::Point* loc) const OVERRIDE; | 176 gfx::Point* loc) const OVERRIDE; |
177 | 177 |
178 // ui::TableModelObserver overrides: | 178 // ui::TableModelObserver overrides: |
179 virtual void OnModelChanged() OVERRIDE; | 179 virtual void OnModelChanged() OVERRIDE; |
(...skipping 160 matching lines...) Loading... |
340 | 340 |
341 // True if in SetVisibleColumnWidth(). | 341 // True if in SetVisibleColumnWidth(). |
342 bool in_set_visible_column_width_; | 342 bool in_set_visible_column_width_; |
343 | 343 |
344 DISALLOW_COPY_AND_ASSIGN(TableView); | 344 DISALLOW_COPY_AND_ASSIGN(TableView); |
345 }; | 345 }; |
346 | 346 |
347 } // namespace views | 347 } // namespace views |
348 | 348 |
349 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ | 349 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_VIEW_VIEWS_H_ |
OLD | NEW |