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

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

Issue 11827007: Couple of tweaks for tables: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add #ifdef for SetGrouper in example Created 7 years, 11 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 | « no previous file | ui/views/controls/table/table_header.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_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.h" 8 #include "ui/gfx/font.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"
11 11
12 namespace views { 12 namespace views {
13 13
14 class TableView; 14 class TableView;
15 15
16 // Views used to render the header for the table. 16 // Views used to render the header for the table.
17 class VIEWS_EXPORT TableHeader : public views::View { 17 class VIEWS_EXPORT TableHeader : public views::View {
18 public: 18 public:
19 // Amount the text is padded on the left/right side.
20 static const int kHorizontalPadding;
21
19 explicit TableHeader(TableView* table); 22 explicit TableHeader(TableView* table);
20 virtual ~TableHeader(); 23 virtual ~TableHeader();
21 24
22 const gfx::Font& font() const { return font_; } 25 const gfx::Font& font() const { return font_; }
23 26
24 // views::View overrides. 27 // views::View overrides.
25 virtual void Layout() OVERRIDE; 28 virtual void Layout() OVERRIDE;
26 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 29 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
27 virtual gfx::Size GetPreferredSize() OVERRIDE; 30 virtual gfx::Size GetPreferredSize() OVERRIDE;
28 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 31 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 64
62 // If non-null a resize is in progress. 65 // If non-null a resize is in progress.
63 scoped_ptr<ColumnResizeDetails> resize_details_; 66 scoped_ptr<ColumnResizeDetails> resize_details_;
64 67
65 DISALLOW_COPY_AND_ASSIGN(TableHeader); 68 DISALLOW_COPY_AND_ASSIGN(TableHeader);
66 }; 69 };
67 70
68 } // namespace views 71 } // namespace views
69 72
70 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_ 73 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/table/table_header.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698