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

Side by Side Diff: ash/system/tray/hover_highlight_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 | « ash/system/tray/fixed_sized_scroll_view.cc ('k') | ash/system/tray/hover_highlight_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
6 #define ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
7 7
8 #include "ash/system/tray/actionable_view.h" 8 #include "ash/system/tray/actionable_view.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 protected: 62 protected:
63 // Overridden from views::View. 63 // Overridden from views::View.
64 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 64 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
65 65
66 private: 66 private:
67 // Overridden from ActionableView: 67 // Overridden from ActionableView:
68 virtual bool PerformAction(const ui::Event& event) OVERRIDE; 68 virtual bool PerformAction(const ui::Event& event) OVERRIDE;
69 69
70 // Overridden from views::View. 70 // Overridden from views::View.
71 virtual gfx::Size GetPreferredSize() OVERRIDE; 71 virtual gfx::Size GetPreferredSize() const OVERRIDE;
72 virtual int GetHeightForWidth(int width) OVERRIDE; 72 virtual int GetHeightForWidth(int width) const OVERRIDE;
73 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 73 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
75 virtual void OnEnabledChanged() OVERRIDE; 75 virtual void OnEnabledChanged() OVERRIDE;
76 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 76 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
77 virtual void OnFocus() OVERRIDE; 77 virtual void OnFocus() OVERRIDE;
78 78
79 ViewClickListener* listener_; 79 ViewClickListener* listener_;
80 views::Label* text_label_; 80 views::Label* text_label_;
81 SkColor highlight_color_; 81 SkColor highlight_color_;
82 SkColor default_color_; 82 SkColor default_color_;
83 SkColor text_highlight_color_; 83 SkColor text_highlight_color_;
84 SkColor text_default_color_; 84 SkColor text_default_color_;
85 bool hover_; 85 bool hover_;
86 bool expandable_; 86 bool expandable_;
87 bool checkable_; 87 bool checkable_;
88 bool checked_; 88 bool checked_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 90 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
91 }; 91 };
92 92
93 } // namespace ash 93 } // namespace ash
94 94
95 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 95 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/tray/fixed_sized_scroll_view.cc ('k') | ash/system/tray/hover_highlight_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698