| 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_TRAY_ITEM_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ |
| 6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/common/system/tray/system_tray.h" | 10 #include "ash/common/system/tray/system_tray.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate); | 84 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationDelegate); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace tray | 87 } // namespace tray |
| 88 | 88 |
| 89 // The base tray item for screen capture and screen sharing. The | 89 // The base tray item for screen capture and screen sharing. The |
| 90 // Start method brings up a notification and a tray item, and the user | 90 // Start method brings up a notification and a tray item, and the user |
| 91 // can stop the screen capture/sharing by pressing the stop button. | 91 // can stop the screen capture/sharing by pressing the stop button. |
| 92 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem { | 92 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem { |
| 93 public: | 93 public: |
| 94 explicit ScreenTrayItem(SystemTray* system_tray); | 94 ScreenTrayItem(SystemTray* system_tray, UmaType uma_type); |
| 95 ~ScreenTrayItem() override; | 95 ~ScreenTrayItem() override; |
| 96 | 96 |
| 97 tray::ScreenTrayView* tray_view() { return tray_view_; } | 97 tray::ScreenTrayView* tray_view() { return tray_view_; } |
| 98 void set_tray_view(tray::ScreenTrayView* tray_view) { | 98 void set_tray_view(tray::ScreenTrayView* tray_view) { |
| 99 tray_view_ = tray_view; | 99 tray_view_ = tray_view; |
| 100 } | 100 } |
| 101 | 101 |
| 102 tray::ScreenStatusView* default_view() { return default_view_; } | 102 tray::ScreenStatusView* default_view() { return default_view_; } |
| 103 void set_default_view(tray::ScreenStatusView* default_view) { | 103 void set_default_view(tray::ScreenStatusView* default_view) { |
| 104 default_view_ = default_view; | 104 default_view_ = default_view; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 135 tray::ScreenStatusView* default_view_; | 135 tray::ScreenStatusView* default_view_; |
| 136 bool is_started_; | 136 bool is_started_; |
| 137 base::Closure stop_callback_; | 137 base::Closure stop_callback_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); | 139 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace ash | 142 } // namespace ash |
| 143 | 143 |
| 144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ | 144 #endif // ASH_COMMON_SYSTEM_CHROMEOS_SCREEN_SECURITY_SCREEN_TRAY_ITEM_H_ |
| OLD | NEW |