OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_PALETTE_PALETTE_TRAY_H_ | 5 #ifndef ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
6 #define ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ | 6 #define ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void OnMouseExitedView() override; | 86 void OnMouseExitedView() override; |
87 base::string16 GetAccessibleNameForBubble() override; | 87 base::string16 GetAccessibleNameForBubble() override; |
88 void OnBeforeBubbleWidgetInit( | 88 void OnBeforeBubbleWidgetInit( |
89 views::Widget* anchor_widget, | 89 views::Widget* anchor_widget, |
90 views::Widget* bubble_widget, | 90 views::Widget* bubble_widget, |
91 views::Widget::InitParams* params) const override; | 91 views::Widget::InitParams* params) const override; |
92 void HideBubble(const views::TrayBubbleView* bubble_view) override; | 92 void HideBubble(const views::TrayBubbleView* bubble_view) override; |
93 | 93 |
94 // PaletteToolManager::Delegate: | 94 // PaletteToolManager::Delegate: |
95 void OnActiveToolChanged() override; | 95 void OnActiveToolChanged() override; |
96 WmWindow* GetWindow() override; | 96 aura::Window* GetWindow() override; |
97 | 97 |
98 // Updates the tray icon from the palette tool manager. | 98 // Updates the tray icon from the palette tool manager. |
99 void UpdateTrayIcon(); | 99 void UpdateTrayIcon(); |
100 | 100 |
101 // Sets the icon to visible if the palette can be used. | 101 // Sets the icon to visible if the palette can be used. |
102 void UpdateIconVisibility(); | 102 void UpdateIconVisibility(); |
103 | 103 |
104 // Called when the palette enabled pref has changed. | 104 // Called when the palette enabled pref has changed. |
105 void OnPaletteEnabledPrefChanged(bool enabled); | 105 void OnPaletteEnabledPrefChanged(bool enabled); |
106 | 106 |
(...skipping 21 matching lines...) Expand all Loading... |
128 ScopedSessionObserver scoped_session_observer_; | 128 ScopedSessionObserver scoped_session_observer_; |
129 | 129 |
130 base::WeakPtrFactory<PaletteTray> weak_factory_; | 130 base::WeakPtrFactory<PaletteTray> weak_factory_; |
131 | 131 |
132 DISALLOW_COPY_AND_ASSIGN(PaletteTray); | 132 DISALLOW_COPY_AND_ASSIGN(PaletteTray); |
133 }; | 133 }; |
134 | 134 |
135 } // namespace ash | 135 } // namespace ash |
136 | 136 |
137 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ | 137 #endif // ASH_SYSTEM_PALETTE_PALETTE_TRAY_H_ |
OLD | NEW |