Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Side by Side Diff: chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.h

Issue 12453019: Copy remoting notification bar to chrome and use it for screen capture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« no previous file with comments | « chrome/app/nibs/ScreenCaptureNotification.xib ('k') | chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698