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

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

Issue 7890056: FullscreenExitBubble temp UI for Mac. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 3 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 (c) 2011 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 #import "base/mac/cocoa_protocols.h"
8 #include "base/memory/scoped_nsobject.h"
9 #include "googleurl/src/gurl.h"
10
11 @class AnimatableView;
12 class TabContentsWrapper;
13
14 @interface FullscreenExitBubbleController : NSViewController<NSTextViewDelegate> {
15 @private
16 BrowserWindowController* owner_; // weak
17 Browser* browser_; // weak
18
19 @protected
20 IBOutlet NSTextField* exitLabelPlaceholder_;
21 IBOutlet NSTextField* siteInfoLabel_;
22 IBOutlet NSButton* allowButton_;
23 IBOutlet NSButton* denyButton_;
24
25 // Text fields don't work as well with embedded links as text views, but
26 // text views cannot conveniently be created in IB. The xib file contains
27 // a text field |labelPlaceholder_| that's replaced by this text view |label_|
28 // in -awakeFromNib.
29 scoped_nsobject<NSTextView> exitLabel_;
30
31 scoped_nsobject<NSTimer> hideTimer_;
32 NSAnimation* hideAnimation_;
33 };
34
35 // Initializes a new InfoBarController.
36 - (id)initWithOwner:(BrowserWindowController*)owner browser:(Browser*)browser;
37
38 // Called when someone clicks on the OK or Cancel buttons. Subclasses
39 // must override if they do not hide the buttons.
40 - (void)allow:(id)sender;
41 - (void)deny:(id)sender;
42
43 // Returns a pointer to this controller's view, cast as an AnimatableView.
44 - (AnimatableView*)animatableView;
45
46 // Open or animate open the infobar.
47 - (void)open;
48 - (void)animateOpen;
49
50 // Close or animate close the infobar.
51 - (void)close;
52 - (void)animateClosed;
53
54 // Sets the info bar message to the specified |message|.
55 - (void)setLabelToMessage:(NSString*)message;
56
57 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698