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 14 matching lines...) Expand all Loading... |
25 - (id)initWithCallback:(const base::Closure&)stop_callback | 25 - (id)initWithCallback:(const base::Closure&)stop_callback |
26 text:(const base::string16&)text; | 26 text:(const base::string16&)text; |
27 - (void)stopSharing:(id)sender; | 27 - (void)stopSharing:(id)sender; |
28 - (void)minimize:(id)sender; | 28 - (void)minimize:(id)sender; |
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 ~ScreenCaptureNotificationUICocoa() override; |
36 | 36 |
37 // ScreenCaptureNotificationUI interface. | 37 // ScreenCaptureNotificationUI interface. |
38 virtual gfx::NativeViewId OnStarted(const base::Closure& stop_callback) | 38 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override; |
39 override; | |
40 | 39 |
41 private: | 40 private: |
42 friend class ScreenCaptureNotificationUICocoaTest; | 41 friend class ScreenCaptureNotificationUICocoaTest; |
43 | 42 |
44 const base::string16 text_; | 43 const base::string16 text_; |
45 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; | 44 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; |
46 | 45 |
47 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); | 46 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); |
48 }; | 47 }; |
OLD | NEW |