OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ | 5 #ifndef ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ |
6 #define ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ | 6 #define ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/session/session_state_observer.h" | 9 #include "ash/common/session/session_state_observer.h" |
10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // provide any bubble view windows. | 24 // provide any bubble view windows. |
25 class ASH_EXPORT OverviewButtonTray : public TrayBackgroundView, | 25 class ASH_EXPORT OverviewButtonTray : public TrayBackgroundView, |
26 public SessionStateObserver, | 26 public SessionStateObserver, |
27 public ShellObserver { | 27 public ShellObserver { |
28 public: | 28 public: |
29 explicit OverviewButtonTray(StatusAreaWidget* status_area_widget); | 29 explicit OverviewButtonTray(StatusAreaWidget* status_area_widget); |
30 ~OverviewButtonTray() override; | 30 ~OverviewButtonTray() override; |
31 | 31 |
32 // Updates the tray's visibility based on the LoginStatus and the current | 32 // Updates the tray's visibility based on the LoginStatus and the current |
33 // state of MaximizeMode | 33 // state of MaximizeMode |
34 virtual void UpdateAfterLoginStatusChange(user::LoginStatus status); | 34 virtual void UpdateAfterLoginStatusChange(LoginStatus status); |
35 | 35 |
36 // ActionableView: | 36 // ActionableView: |
37 bool PerformAction(const ui::Event& event) override; | 37 bool PerformAction(const ui::Event& event) override; |
38 | 38 |
39 // SessionStateObserver: | 39 // SessionStateObserver: |
40 void SessionStateChanged(SessionStateDelegate::SessionState state) override; | 40 void SessionStateChanged(SessionStateDelegate::SessionState state) override; |
41 | 41 |
42 // ShellObserver: | 42 // ShellObserver: |
43 void OnMaximizeModeStarted() override; | 43 void OnMaximizeModeStarted() override; |
44 void OnMaximizeModeEnded() override; | 44 void OnMaximizeModeEnded() override; |
(...skipping 18 matching lines...) Expand all Loading... |
63 | 63 |
64 // Weak pointer, will be parented by TrayContainer for its lifetime. | 64 // Weak pointer, will be parented by TrayContainer for its lifetime. |
65 views::ImageView* icon_; | 65 views::ImageView* icon_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray); | 67 DISALLOW_COPY_AND_ASSIGN(OverviewButtonTray); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace ash | 70 } // namespace ash |
71 | 71 |
72 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ | 72 #endif // ASH_SYSTEM_OVERVIEW_OVERVIEW_BUTTON_TRAY_H_ |
OLD | NEW |