| OLD | NEW |
| (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_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ | |
| 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_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/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* CreateTrayView(LoginStatus status) override; | |
| 29 views::View* CreateDefaultView(LoginStatus status) override; | |
| 30 | |
| 31 // Overridden from ScreenTrayItem. | |
| 32 void CreateOrUpdateNotification() override; | |
| 33 std::string GetNotificationId() override; | |
| 34 | |
| 35 // Overridden from ScreenCaptureObserver. | |
| 36 void OnScreenCaptureStart( | |
| 37 const base::Closure& stop_callback, | |
| 38 const base::string16& screen_capture_status) override; | |
| 39 void OnScreenCaptureStop() override; | |
| 40 | |
| 41 // Overridden from ShellObserver. | |
| 42 void OnCastingSessionStartedOrStopped(bool started) override; | |
| 43 | |
| 44 base::string16 screen_capture_status_; | |
| 45 bool is_casting_ = false; | |
| 46 | |
| 47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem); | |
| 48 }; | |
| 49 | |
| 50 } // namespace ash | |
| 51 | |
| 52 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ | |
| OLD | NEW |