Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 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/system/chromeos/screen_security/screen_capture_observer.h" |
| 9 | #include "ash/system/chromeos/screen_security/screen_tray_item.h" |
| 10 | |
| 11 | namespace views { |
| 12 | class View; |
| 13 | } |
| 14 | |
| 15 | namespace ash { |
| 16 | namespace internal { |
| 17 | |
Ben Murdoch | eb525c5 | 2013-07-10 11:40:50 +0100 | [diff] [blame] | 18 | class ASH_EXPORT ScreenCaptureTrayItem : public ScreenTrayItem, |
| 19 | public ScreenCaptureObserver { |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 20 | public: |
| 21 | explicit ScreenCaptureTrayItem(SystemTray* system_tray); |
| 22 | virtual ~ScreenCaptureTrayItem(); |
| 23 | |
| 24 | private: |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 25 | // Overridden from SystemTrayItem. |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 26 | virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; |
| 27 | virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
Ben Murdoch | bb1529c | 2013-08-08 10:24:53 +0100 | [diff] [blame^] | 28 | |
| 29 | // Overridden from ScreenTrayItem. |
| 30 | virtual void CreateOrUpdateNotification() OVERRIDE; |
| 31 | virtual std::string GetNotificationId() OVERRIDE; |
Torne (Richard Coles) | 868fa2f | 2013-06-11 10:57:03 +0100 | [diff] [blame] | 32 | |
| 33 | // Overridden from ScreenCaptureObserver. |
| 34 | virtual void OnScreenCaptureStart( |
| 35 | const base::Closure& stop_callback, |
| 36 | const base::string16& screen_capture_status) OVERRIDE; |
| 37 | virtual void OnScreenCaptureStop() OVERRIDE; |
| 38 | |
| 39 | base::string16 screen_capture_status_; |
| 40 | |
| 41 | DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem); |
| 42 | }; |
| 43 | |
| 44 | } // namespace internal |
| 45 | } // namespace ash |
| 46 | |
| 47 | #endif // ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ |