OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H_ | 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_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/common/shell_observer.h" | 8 #include "ash/common/shell_observer.h" |
9 #include "ash/common/system/chromeos/screen_security/screen_capture_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" | 10 #include "ash/common/system/chromeos/screen_security/screen_tray_item.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 ~ScreenCaptureTrayItem() override; | 24 ~ScreenCaptureTrayItem() override; |
25 | 25 |
26 private: | 26 private: |
27 // Overridden from SystemTrayItem. | 27 // Overridden from SystemTrayItem. |
28 views::View* CreateTrayView(LoginStatus status) override; | 28 views::View* CreateTrayView(LoginStatus status) override; |
29 views::View* CreateDefaultView(LoginStatus status) override; | 29 views::View* CreateDefaultView(LoginStatus status) override; |
30 | 30 |
31 // Overridden from ScreenTrayItem. | 31 // Overridden from ScreenTrayItem. |
32 void CreateOrUpdateNotification() override; | 32 void CreateOrUpdateNotification() override; |
33 std::string GetNotificationId() override; | 33 std::string GetNotificationId() override; |
| 34 void RecordStoppedFromDefaultViewMetric() override; |
| 35 void RecordStoppedFromNotificationViewMetric() override; |
34 | 36 |
35 // Overridden from ScreenCaptureObserver. | 37 // Overridden from ScreenCaptureObserver. |
36 void OnScreenCaptureStart( | 38 void OnScreenCaptureStart( |
37 const base::Closure& stop_callback, | 39 const base::Closure& stop_callback, |
38 const base::string16& screen_capture_status) override; | 40 const base::string16& screen_capture_status) override; |
39 void OnScreenCaptureStop() override; | 41 void OnScreenCaptureStop() override; |
40 | 42 |
41 // Overridden from ShellObserver. | 43 // Overridden from ShellObserver. |
42 void OnCastingSessionStartedOrStopped(bool started) override; | 44 void OnCastingSessionStartedOrStopped(bool started) override; |
43 | 45 |
44 base::string16 screen_capture_status_; | 46 base::string16 screen_capture_status_; |
45 bool is_casting_ = false; | 47 bool is_casting_ = false; |
46 | 48 |
47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem); | 49 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem); |
48 }; | 50 }; |
49 | 51 |
50 } // namespace ash | 52 } // namespace ash |
51 | 53 |
52 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H
_ | 54 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_CAPTURE_TRAY_ITEM_H
_ |
OLD | NEW |