OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import <Cocoa/Cocoa.h> |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "base/callback.h" |
| 10 #include "base/string16.h" |
| 11 #include "chrome/browser/ui/screen_capture_notification_ui.h" |
| 12 |
| 13 // Controller for the screen capture notification window which allows the user |
| 14 // to quickly stop screen capturing. |
| 15 @interface ScreenCaptureNotificationController : NSWindowController { |
| 16 @private |
| 17 base::Closure stop_callback_; |
| 18 string16 title_; |
| 19 IBOutlet NSTextField* statusField_; |
| 20 IBOutlet NSButton* stopButton_; |
| 21 } |
| 22 |
| 23 - (id)initWithCallback:(const base::Closure&)stop_callback |
| 24 title:(const string16&)title; |
| 25 - (IBAction)stopSharing:(id)sender; |
| 26 @end |
| 27 |
| 28 // A floating window with a custom border. The custom border and background |
| 29 // content is defined by DisconnectView. Declared here so that it can be |
| 30 // instantiated via a xib. |
| 31 @interface ScreenCaptureNotificationWindow : NSWindow |
| 32 @end |
| 33 |
| 34 // The custom background/border for the ScreenCaptureNotificationWindow. |
| 35 // Declared here so that it can be instantiated via a xib. |
| 36 @interface ScreenCaptureNotificationView : NSView |
| 37 @end |
OLD | NEW |