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

Side by Side Diff: ash/system/chromeos/screen_security/screen_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
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_TRAY_ITEM_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ 6 #define ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
7 7
8 #include "ash/system/tray/system_tray.h" 8 #include "ash/system/tray/system_tray.h"
9 #include "ash/system/tray/system_tray_item.h" 9 #include "ash/system/tray/system_tray_item.h"
10 #include "ash/system/tray/system_tray_notifier.h" 10 #include "ash/system/tray/system_tray_notifier.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationView); 93 DISALLOW_COPY_AND_ASSIGN(ScreenNotificationView);
94 }; 94 };
95 95
96 } // namespace tray 96 } // namespace tray
97 97
98 98
99 // The base tray item for screen capture and screen sharing. The 99 // The base tray item for screen capture and screen sharing. The
100 // Start method brings up a notification and a tray item, and the user 100 // Start method brings up a notification and a tray item, and the user
101 // can stop the screen capture/sharing by pressing the stop button. 101 // can stop the screen capture/sharing by pressing the stop button.
102 class ScreenTrayItem : public SystemTrayItem { 102 class ASH_EXPORT ScreenTrayItem : public SystemTrayItem {
103 public: 103 public:
104 explicit ScreenTrayItem(SystemTray* system_tray); 104 explicit ScreenTrayItem(SystemTray* system_tray);
105 virtual ~ScreenTrayItem(); 105 virtual ~ScreenTrayItem();
106 106
107 tray::ScreenTrayView* tray_view() { return tray_view_; } 107 tray::ScreenTrayView* tray_view() { return tray_view_; }
108 void set_tray_view(tray::ScreenTrayView* tray_view) { 108 void set_tray_view(tray::ScreenTrayView* tray_view) {
109 tray_view_ = tray_view; 109 tray_view_ = tray_view;
110 } 110 }
111 111
112 tray::ScreenStatusView* default_view() { return default_view_; } 112 tray::ScreenStatusView* default_view() { return default_view_; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 bool is_started_; 145 bool is_started_;
146 base::Closure stop_callback_; 146 base::Closure stop_callback_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem); 148 DISALLOW_COPY_AND_ASSIGN(ScreenTrayItem);
149 }; 149 };
150 150
151 } // namespace internal 151 } // namespace internal
152 } // namespace ash 152 } // namespace ash
153 153
154 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_ 154 #endif // ASH_SYSTEM_CHROMEOS_SCREEN_TRAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698