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

Side by Side Diff: ash/system/tray/hover_highlight_view.h

Issue 13925006: Declares GetHeightForWidth() for those who need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/power/power_status_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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 views::Label* text_label() { return text_label_; } 57 views::Label* text_label() { return text_label_; }
58 58
59 bool hover() const { return hover_; } 59 bool hover() const { return hover_; }
60 60
61 private: 61 private:
62 // Overridden from ActionableView: 62 // Overridden from ActionableView:
63 virtual bool PerformAction(const ui::Event& event) OVERRIDE; 63 virtual bool PerformAction(const ui::Event& event) OVERRIDE;
64 64
65 // Overridden from views::View. 65 // Overridden from views::View.
66 virtual gfx::Size GetPreferredSize() OVERRIDE; 66 virtual gfx::Size GetPreferredSize() OVERRIDE;
67 virtual int GetHeightForWidth(int width) OVERRIDE;
67 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE; 68 virtual void OnMouseEntered(const ui::MouseEvent& event) OVERRIDE;
68 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 69 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
69 virtual void OnEnabledChanged() OVERRIDE; 70 virtual void OnEnabledChanged() OVERRIDE;
70 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 71 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
71 virtual void OnFocus() OVERRIDE; 72 virtual void OnFocus() OVERRIDE;
72 73
73 ViewClickListener* listener_; 74 ViewClickListener* listener_;
74 views::Label* text_label_; 75 views::Label* text_label_;
75 SkColor highlight_color_; 76 SkColor highlight_color_;
76 SkColor default_color_; 77 SkColor default_color_;
77 SkColor text_highlight_color_; 78 SkColor text_highlight_color_;
78 SkColor text_default_color_; 79 SkColor text_default_color_;
79 bool hover_; 80 bool hover_;
80 bool expandable_; 81 bool expandable_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); 83 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView);
83 }; 84 };
84 85
85 } // namespace internal 86 } // namespace internal
86 } // namespace ash 87 } // namespace ash
87 88
88 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ 89 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/power/power_status_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