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_UI_COCOA_SCREEN_CAPTURE_NOTIFICATION_UI_COCOA_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_SCREEN_CAPTURE_NOTIFICATION_UI_COCOA_H_ |
| 7 |
5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
6 | 9 |
7 #include <string> | 10 #include <string> |
8 | 11 |
9 #include "base/callback.h" | 12 #include "base/callback.h" |
10 #include "base/gtest_prod_util.h" | |
11 #include "base/mac/scoped_nsobject.h" | 13 #include "base/mac/scoped_nsobject.h" |
12 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
13 #include "chrome/browser/ui/screen_capture_notification_ui.h" | 15 #include "chrome/browser/ui/screen_capture_notification_ui.h" |
14 | 16 |
15 // Controller for the screen capture notification window which allows the user | 17 // Controller for the screen capture notification window which allows the user |
16 // to quickly stop screen capturing. | 18 // to quickly stop screen capturing. |
17 @interface ScreenCaptureNotificationController | 19 @interface ScreenCaptureNotificationController |
18 : NSWindowController<NSWindowDelegate> { | 20 : NSWindowController<NSWindowDelegate> { |
19 @private | 21 @private |
20 base::Closure stop_callback_; | 22 base::Closure stop_callback_; |
(...skipping 17 matching lines...) Expand all Loading... |
38 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override; | 40 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override; |
39 | 41 |
40 private: | 42 private: |
41 friend class ScreenCaptureNotificationUICocoaTest; | 43 friend class ScreenCaptureNotificationUICocoaTest; |
42 | 44 |
43 const base::string16 text_; | 45 const base::string16 text_; |
44 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; | 46 base::scoped_nsobject<ScreenCaptureNotificationController> windowController_; |
45 | 47 |
46 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); | 48 DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUICocoa); |
47 }; | 49 }; |
| 50 |
| 51 #endif // CHROME_BROWSER_UI_COCOA_SCREEN_CAPTURE_NOTIFICATION_UI_COCOA_H_ |
OLD | NEW |