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