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

Side by Side Diff: ash/common/system/chromeos/screen_security/screen_capture_tray_item.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H_
7
8 #include "ash/common/shell_observer.h"
9 #include "ash/common/system/chromeos/screen_security/screen_capture_observer.h"
10 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h"
11 #include "base/macros.h"
12
13 namespace views {
14 class View;
15 }
16
17 namespace ash {
18
19 class ASH_EXPORT ScreenCaptureTrayItem : public ScreenTrayItem,
20 public ScreenCaptureObserver,
21 public ShellObserver {
22 public:
23 explicit ScreenCaptureTrayItem(SystemTray* system_tray);
24 ~ScreenCaptureTrayItem() override;
25
26 private:
27 // Overridden from SystemTrayItem.
28 views::View* CreateDefaultView(LoginStatus status) override;
29
30 // Overridden from ScreenTrayItem.
31 void CreateOrUpdateNotification() override;
32 std::string GetNotificationId() override;
33 void RecordStoppedFromDefaultViewMetric() override;
34 void RecordStoppedFromNotificationViewMetric() override;
35
36 // Overridden from ScreenCaptureObserver.
37 void OnScreenCaptureStart(
38 const base::Closure& stop_callback,
39 const base::string16& screen_capture_status) override;
40 void OnScreenCaptureStop() override;
41
42 // Overridden from ShellObserver.
43 void OnCastingSessionStartedOrStopped(bool started) override;
44
45 base::string16 screen_capture_status_;
46 bool is_casting_ = false;
47
48 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem);
49 };
50
51 } // namespace ash
52
53 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698