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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 @end | 30 @end |
31 | 31 |
32 class ScreenCaptureNotificationUICocoa : public ScreenCaptureNotificationUI { | 32 class ScreenCaptureNotificationUICocoa : public ScreenCaptureNotificationUI { |
33 public: | 33 public: |
34 explicit ScreenCaptureNotificationUICocoa(const base::string16& text); | 34 explicit ScreenCaptureNotificationUICocoa(const base::string16& text); |
35 virtual ~ScreenCaptureNotificationUICocoa(); | 35 virtual ~ScreenCaptureNotificationUICocoa(); |
36 | 36 |
37 // ScreenCaptureNotificationUI interface. | 37 // ScreenCaptureNotificationUI interface. |
38 virtual gfx::NativeViewId OnStarted(const base::Closure& stop_callback) | 38 virtual gfx::NativeViewId OnStarted(const base::Closure& stop_callback) |
39 OVERRIDE; | 39 override; |
40 | 40 |
41 private: | 41 private: |
42 friend class ScreenCaptureNotificationUICocoaTest; | 42 friend class ScreenCaptureNotificationUICocoaTest; |
43 | 43 |
44 const base::string16 text_; | 44 const base::string16 text_; |
45 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; | 45 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); | 47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); |
48 }; | 48 }; |
OLD | NEW |