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

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

Issue 16472006: Add unit tests for screen capture and share notification UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test for system tray interaction Created 7 years, 6 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/system/chromeos/screen_security/screen_share_tray_item.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_
7 7
8 #include "ash/system/chromeos/screen_security/screen_capture_observer.h" 8 #include "ash/system/chromeos/screen_security/screen_capture_observer.h"
9 #include "ash/system/chromeos/screen_security/screen_tray_item.h" 9 #include "ash/system/chromeos/screen_security/screen_tray_item.h"
10 10
11 namespace views { 11 namespace views {
12 class View; 12 class View;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 namespace internal { 16 namespace internal {
17 17
18 class ScreenCaptureTrayItem : public ScreenTrayItem, 18 class ASH_EXPORT ScreenCaptureTrayItem : public ScreenTrayItem,
19 public ScreenCaptureObserver { 19 public ScreenCaptureObserver {
20 public: 20 public:
21 explicit ScreenCaptureTrayItem(SystemTray* system_tray); 21 explicit ScreenCaptureTrayItem(SystemTray* system_tray);
22 virtual ~ScreenCaptureTrayItem(); 22 virtual ~ScreenCaptureTrayItem();
23 23
24 private: 24 private:
25 // Overridden from ScreenTrayItem. 25 // Overridden from ScreenTrayItem.
26 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE; 26 virtual views::View* CreateTrayView(user::LoginStatus status) OVERRIDE;
27 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 27 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
28 virtual views::View* CreateNotificationView( 28 virtual views::View* CreateNotificationView(
29 user::LoginStatus status) OVERRIDE; 29 user::LoginStatus status) OVERRIDE;
30 30
31 // Overridden from ScreenCaptureObserver. 31 // Overridden from ScreenCaptureObserver.
32 virtual void OnScreenCaptureStart( 32 virtual void OnScreenCaptureStart(
33 const base::Closure& stop_callback, 33 const base::Closure& stop_callback,
34 const base::string16& screen_capture_status) OVERRIDE; 34 const base::string16& screen_capture_status) OVERRIDE;
35 virtual void OnScreenCaptureStop() OVERRIDE; 35 virtual void OnScreenCaptureStop() OVERRIDE;
36 36
37 base::string16 screen_capture_status_; 37 base::string16 screen_capture_status_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem); 39 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureTrayItem);
40 }; 40 };
41 41
42 } // namespace internal 42 } // namespace internal
43 } // namespace ash 43 } // namespace ash
44 44
45 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_ 45 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_CAPTURE_SCREEN_CAPTURE_TRAY_ITEM_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/system/chromeos/screen_security/screen_share_tray_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698