Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: ash/system/chromeos/screen_security/screen_share_tray_item.h

Issue 2109613005: mash: Move system tray cast code into //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward decl Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_
7
8 #include "ash/common/system/chromeos/screen_security/screen_share_observer.h"
9 #include "ash/system/chromeos/screen_security/screen_tray_item.h"
10 #include "base/macros.h"
11
12 namespace views {
13 class View;
14 }
15
16 namespace ash {
17
18 class ASH_EXPORT ScreenShareTrayItem : public ScreenTrayItem,
19 public ScreenShareObserver {
20 public:
21 explicit ScreenShareTrayItem(SystemTray* system_tray);
22 ~ScreenShareTrayItem() override;
23
24 private:
25 // Overridden from SystemTrayItem.
26 views::View* CreateTrayView(LoginStatus status) override;
27 views::View* CreateDefaultView(LoginStatus status) override;
28
29 // Overridden from ScreenTrayItem.
30 void CreateOrUpdateNotification() override;
31 std::string GetNotificationId() override;
32
33 // Overridden from ScreenShareObserver.
34 void OnScreenShareStart(const base::Closure& stop_callback,
35 const base::string16& helper_name) override;
36 void OnScreenShareStop() override;
37
38 base::string16 helper_name_;
39
40 DISALLOW_COPY_AND_ASSIGN(ScreenShareTrayItem);
41 };
42
43 } // namespace ash
44
45 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_SHARE_SCREEN_SHARE_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698