| OLD | NEW |
| 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 CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
| 9 #include "chrome/browser/ui/screen_capture_notification_ui.h" | 10 #include "chrome/browser/ui/screen_capture_notification_ui.h" |
| 10 | 11 |
| 11 namespace chromeos { | 12 namespace chromeos { |
| 12 | 13 |
| 13 // Chromeos implementation for ScreenCaptureNotificationUI. | 14 // Chromeos implementation for ScreenCaptureNotificationUI. |
| 14 class ScreenCaptureNotificationUIChromeOS : public ScreenCaptureNotificationUI { | 15 class ScreenCaptureNotificationUIChromeOS : public ScreenCaptureNotificationUI { |
| 15 public: | 16 public: |
| 16 // |text| is used to specify the text for the notification. | 17 // |text| is used to specify the text for the notification. |
| 17 explicit ScreenCaptureNotificationUIChromeOS(const base::string16& text); | 18 explicit ScreenCaptureNotificationUIChromeOS(const base::string16& text); |
| 18 ~ScreenCaptureNotificationUIChromeOS() override; | 19 ~ScreenCaptureNotificationUIChromeOS() override; |
| 19 | 20 |
| 20 // ScreenCaptureNotificationUI overrides. | 21 // ScreenCaptureNotificationUI overrides. |
| 21 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override; | 22 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override; |
| 22 | 23 |
| 23 private: | 24 private: |
| 24 const base::string16 text_; | 25 const base::string16 text_; |
| 25 | 26 |
| 26 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUIChromeOS); | 27 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUIChromeOS); |
| 27 }; | 28 }; |
| 28 | 29 |
| 29 } // namespace chromeos | 30 } // namespace chromeos |
| 30 #endif // CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ | 31 #endif // CHROME_BROWSER_CHROMEOS_UI_SCREEN_CAPTURE_NOTIFICATION_UI_CHROMEOS_H_ |
| OLD | NEW |