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

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

Issue 2616273002: Native Themes: Add table header colors (Closed)
Patch Set: Address sky@ and estade@'s comments Created 3 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/font_list.h" 9 #include "ui/gfx/font_list.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 24 matching lines...) Expand all
35 void Layout() override; 35 void Layout() override;
36 void OnPaint(gfx::Canvas* canvas) override; 36 void OnPaint(gfx::Canvas* canvas) override;
37 const char* GetClassName() const override; 37 const char* GetClassName() const override;
38 gfx::Size GetPreferredSize() const override; 38 gfx::Size GetPreferredSize() const override;
39 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; 39 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
40 bool OnMousePressed(const ui::MouseEvent& event) override; 40 bool OnMousePressed(const ui::MouseEvent& event) override;
41 bool OnMouseDragged(const ui::MouseEvent& event) override; 41 bool OnMouseDragged(const ui::MouseEvent& event) override;
42 void OnMouseReleased(const ui::MouseEvent& event) override; 42 void OnMouseReleased(const ui::MouseEvent& event) override;
43 void OnMouseCaptureLost() override; 43 void OnMouseCaptureLost() override;
44 void OnGestureEvent(ui::GestureEvent* event) override; 44 void OnGestureEvent(ui::GestureEvent* event) override;
45 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
45 46
46 private: 47 private:
47 // Used to track the column being resized. 48 // Used to track the column being resized.
48 struct ColumnResizeDetails { 49 struct ColumnResizeDetails {
49 ColumnResizeDetails() : column_index(0), initial_x(0), initial_width(0) {} 50 ColumnResizeDetails() : column_index(0), initial_x(0), initial_width(0) {}
50 51
51 // Index into table_->visible_columns() that is being resized. 52 // Index into table_->visible_columns() that is being resized.
52 int column_index; 53 int column_index;
53 54
54 // X-coordinate of the mouse at the time the resize started. 55 // X-coordinate of the mouse at the time the resize started.
(...skipping 26 matching lines...) Expand all
81 82
82 // If non-null a resize is in progress. 83 // If non-null a resize is in progress.
83 std::unique_ptr<ColumnResizeDetails> resize_details_; 84 std::unique_ptr<ColumnResizeDetails> resize_details_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(TableHeader); 86 DISALLOW_COPY_AND_ASSIGN(TableHeader);
86 }; 87 };
87 88
88 } // namespace views 89 } // namespace views
89 90
90 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_ 91 #endif // UI_VIEWS_CONTROLS_TABLE_TABLE_HEADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698