| OLD | NEW |
| 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" |
| 11 #include "ui/gfx/font.h" | 11 #include "ui/gfx/font.h" |
| 12 | 12 |
| 13 namespace views { | 13 namespace views { |
| 14 class Label; | 14 class Label; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 namespace internal { | |
| 19 | |
| 20 class ViewClickListener; | 18 class ViewClickListener; |
| 21 | 19 |
| 22 // A view that changes background color on hover, and triggers a callback in the | 20 // A view that changes background color on hover, and triggers a callback in the |
| 23 // associated ViewClickListener on click. The view can also be forced to | 21 // associated ViewClickListener on click. The view can also be forced to |
| 24 // maintain a fixed height. | 22 // maintain a fixed height. |
| 25 class HoverHighlightView : public ActionableView { | 23 class HoverHighlightView : public ActionableView { |
| 26 public: | 24 public: |
| 27 explicit HoverHighlightView(ViewClickListener* listener); | 25 explicit HoverHighlightView(ViewClickListener* listener); |
| 28 virtual ~HoverHighlightView(); | 26 virtual ~HoverHighlightView(); |
| 29 | 27 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 SkColor text_highlight_color_; | 78 SkColor text_highlight_color_; |
| 81 SkColor text_default_color_; | 79 SkColor text_default_color_; |
| 82 bool hover_; | 80 bool hover_; |
| 83 bool expandable_; | 81 bool expandable_; |
| 84 bool checkable_; | 82 bool checkable_; |
| 85 bool checked_; | 83 bool checked_; |
| 86 | 84 |
| 87 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); | 85 DISALLOW_COPY_AND_ASSIGN(HoverHighlightView); |
| 88 }; | 86 }; |
| 89 | 87 |
| 90 } // namespace internal | |
| 91 } // namespace ash | 88 } // namespace ash |
| 92 | 89 |
| 93 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ | 90 #endif // ASH_SYSTEM_TRAY_HOVER_HIGHLIGHT_VIEW_H_ |
| OLD | NEW |