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

Side by Side Diff: ui/views/controls/table/table_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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/table/table_header.cc ('k') | ui/views/controls/table/table_view.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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/views/controls/table/table_header.cc ('k') | ui/views/controls/table/table_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698