OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ | 5 #ifndef ASH_SYSTEM_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ |
6 #define ASH_SYSTEM_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ | 6 #define ASH_SYSTEM_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/public/interfaces/tray_action.mojom.h" | 9 #include "ash/public/interfaces/tray_action.mojom.h" |
10 #include "ash/session/session_observer.h" | 10 #include "ash/session/session_observer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // or the action handler is being launched. | 30 // or the action handler is being launched. |
31 // The tray item action is performed by sending a request to handle the tray | 31 // The tray item action is performed by sending a request to handle the tray |
32 // action to registered mojom::TrayActionClient. | 32 // action to registered mojom::TrayActionClient. |
33 // | 33 // |
34 // Currently, only one action is supported - new (lock screen) note. This class | 34 // Currently, only one action is supported - new (lock screen) note. This class |
35 // thus uses the assets associated with new note action. | 35 // thus uses the assets associated with new note action. |
36 class ASH_EXPORT LockScreenActionTray : public TrayBackgroundView, | 36 class ASH_EXPORT LockScreenActionTray : public TrayBackgroundView, |
37 public SessionObserver, | 37 public SessionObserver, |
38 public TrayActionObserver { | 38 public TrayActionObserver { |
39 public: | 39 public: |
40 explicit LockScreenActionTray(WmShelf* wm_shelf); | 40 explicit LockScreenActionTray(Shelf* shelf); |
41 ~LockScreenActionTray() override; | 41 ~LockScreenActionTray() override; |
42 | 42 |
43 // TrayBackgroundView: | 43 // TrayBackgroundView: |
44 void Initialize() override; | 44 void Initialize() override; |
45 bool PerformAction(const ui::Event& event) override; | 45 bool PerformAction(const ui::Event& event) override; |
46 base::string16 GetAccessibleNameForTray() override; | 46 base::string16 GetAccessibleNameForTray() override; |
47 bool ShouldBlockShelfAutoHide() const; | 47 bool ShouldBlockShelfAutoHide() const; |
48 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 48 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
49 void ClickedOutsideBubble() override; | 49 void ClickedOutsideBubble() override; |
50 | 50 |
(...skipping 22 matching lines...) Expand all Loading... |
73 | 73 |
74 ScopedObserver<SessionController, SessionObserver> session_observer_; | 74 ScopedObserver<SessionController, SessionObserver> session_observer_; |
75 ScopedObserver<TrayAction, TrayActionObserver> tray_action_observer_; | 75 ScopedObserver<TrayAction, TrayActionObserver> tray_action_observer_; |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(LockScreenActionTray); | 77 DISALLOW_COPY_AND_ASSIGN(LockScreenActionTray); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace ash | 80 } // namespace ash |
81 | 81 |
82 #endif // ASH_SYSTEM_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ | 82 #endif // ASH_SYSTEM_LOCK_SCREEN_ACTION_LOCK_SCREEN_ACTION_TRAY_H_ |
OLD | NEW |