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

Side by Side Diff: ui/views/controls/table/table_header.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
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_HEADER_H_ 5 #ifndef UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_
6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_ 6 #define UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_
7 7
8 #include "ui/gfx/font_list.h" 8 #include "ui/gfx/font_list.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 12 matching lines...) Expand all
23 static const int kSortIndicatorWidth; 23 static const int kSortIndicatorWidth;
24 24
25 explicit TableHeader(TableView* table); 25 explicit TableHeader(TableView* table);
26 virtual ~TableHeader(); 26 virtual ~TableHeader();
27 27
28 const gfx::FontList& font_list() const { return font_list_; } 28 const gfx::FontList& font_list() const { return font_list_; }
29 29
30 // views::View overrides. 30 // views::View overrides.
31 virtual void Layout() OVERRIDE; 31 virtual void Layout() OVERRIDE;
32 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 32 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
33 virtual gfx::Size GetPreferredSize() OVERRIDE; 33 virtual gfx::Size GetPreferredSize() const OVERRIDE;
34 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 34 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 35 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
36 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 36 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
37 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 37 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
38 virtual void OnMouseCaptureLost() OVERRIDE; 38 virtual void OnMouseCaptureLost() OVERRIDE;
39 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 39 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
40 40
41 private: 41 private:
42 // Used to track the column being resized. 42 // Used to track the column being resized.
43 struct ColumnResizeDetails { 43 struct ColumnResizeDetails {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // If non-null a resize is in progress. 77 // If non-null a resize is in progress.
78 scoped_ptr<ColumnResizeDetails> resize_details_; 78 scoped_ptr<ColumnResizeDetails> resize_details_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(TableHeader); 80 DISALLOW_COPY_AND_ASSIGN(TableHeader);
81 }; 81 };
82 82
83 } // namespace views 83 } // namespace views
84 84
85 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_ 85 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc ('k') | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698