OLD | NEW |
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 ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/common/system/tray/actionable_view.h" | 10 #include "ash/common/system/tray/actionable_view.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // | 47 // |
48 // By default this will be called when OnNativeThemeChanged() is called which | 48 // By default this will be called when OnNativeThemeChanged() is called which |
49 // will ensure the most up to date theme is actually applied. | 49 // will ensure the most up to date theme is actually applied. |
50 virtual void UpdateStyle(); | 50 virtual void UpdateStyle(); |
51 | 51 |
52 private: | 52 private: |
53 // Overridden from ActionableView. | 53 // Overridden from ActionableView. |
54 bool PerformAction(const ui::Event& event) override; | 54 bool PerformAction(const ui::Event& event) override; |
55 | 55 |
56 // Overridden from views::View. | 56 // Overridden from views::View. |
57 void Layout() override; | |
58 void GetAccessibleState(ui::AXViewState* state) override; | 57 void GetAccessibleState(ui::AXViewState* state) override; |
59 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 58 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
60 | 59 |
61 // True if |more_| should be shown. | 60 // True if |more_| should be shown. |
62 bool show_more_; | 61 bool show_more_; |
63 views::ImageView* icon_; | 62 views::ImageView* icon_; |
64 views::Label* label_; | 63 views::Label* label_; |
65 views::ImageView* more_; | 64 views::ImageView* more_; |
66 base::string16 accessible_name_; | 65 base::string16 accessible_name_; |
67 | 66 |
68 DISALLOW_COPY_AND_ASSIGN(TrayItemMore); | 67 DISALLOW_COPY_AND_ASSIGN(TrayItemMore); |
69 }; | 68 }; |
70 | 69 |
71 } // namespace ash | 70 } // namespace ash |
72 | 71 |
73 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ | 72 #endif // ASH_COMMON_SYSTEM_TRAY_TRAY_ITEM_MORE_H_ |
OLD | NEW |