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

Side by Side Diff: chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.cc

Issue 2732813002: chromeos: Move files in //ash/common to //ash, part 1 (Closed)
Patch Set: rebase Created 3 years, 9 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 #include "chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.h" 5 #include "chrome/browser/chromeos/ui/screen_capture_notification_ui_chromeos.h"
6 6
7 #include "ash/common/system/tray/system_tray_notifier.h"
8 #include "ash/common/wm_shell.h" 7 #include "ash/common/wm_shell.h"
8 #include "ash/system/tray/system_tray_notifier.h"
9 9
10 namespace chromeos { 10 namespace chromeos {
11 11
12 ScreenCaptureNotificationUIChromeOS::ScreenCaptureNotificationUIChromeOS( 12 ScreenCaptureNotificationUIChromeOS::ScreenCaptureNotificationUIChromeOS(
13 const base::string16& text) 13 const base::string16& text)
14 : text_(text) { 14 : text_(text) {
15 } 15 }
16 16
17 ScreenCaptureNotificationUIChromeOS::~ScreenCaptureNotificationUIChromeOS() { 17 ScreenCaptureNotificationUIChromeOS::~ScreenCaptureNotificationUIChromeOS() {
18 // MediaStreamCaptureIndicator will delete ScreenCaptureNotificationUI object 18 // MediaStreamCaptureIndicator will delete ScreenCaptureNotificationUI object
19 // after it stops screen capture. 19 // after it stops screen capture.
20 ash::WmShell::Get()->system_tray_notifier()->NotifyScreenCaptureStop(); 20 ash::WmShell::Get()->system_tray_notifier()->NotifyScreenCaptureStop();
21 } 21 }
22 22
23 gfx::NativeViewId ScreenCaptureNotificationUIChromeOS::OnStarted( 23 gfx::NativeViewId ScreenCaptureNotificationUIChromeOS::OnStarted(
24 const base::Closure& stop_callback) { 24 const base::Closure& stop_callback) {
25 ash::WmShell::Get()->system_tray_notifier()->NotifyScreenCaptureStart( 25 ash::WmShell::Get()->system_tray_notifier()->NotifyScreenCaptureStart(
26 stop_callback, text_); 26 stop_callback, text_);
27 return 0; 27 return 0;
28 } 28 }
29 29
30 } // namespace chromeos 30 } // namespace chromeos
31 31
32 // static 32 // static
33 std::unique_ptr<ScreenCaptureNotificationUI> 33 std::unique_ptr<ScreenCaptureNotificationUI>
34 ScreenCaptureNotificationUI::Create(const base::string16& text) { 34 ScreenCaptureNotificationUI::Create(const base::string16& text) {
35 return std::unique_ptr<ScreenCaptureNotificationUI>( 35 return std::unique_ptr<ScreenCaptureNotificationUI>(
36 new chromeos::ScreenCaptureNotificationUIChromeOS(text)); 36 new chromeos::ScreenCaptureNotificationUIChromeOS(text));
37 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698