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

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: fix url? 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 @class BrowserWindowController;
14 class Browser;
15
16 // The FullscreenExitBubbleController manages the bubble that tells the user
17 // how to escape fullscreen mode. The bubble only appears when a tab requests
18 // fullscreen mode via webkitRequestFullScreen().
19 @interface FullscreenExitBubbleController :
20 NSViewController<NSTextViewDelegate> {
21 @private
22 BrowserWindowController* owner_; // weak
23 Browser* browser_; // weak
24
25 @protected
26 IBOutlet NSTextField* exitLabelPlaceholder_;
27
28 // Text fields don't work as well with embedded links as text views, but
29 // text views cannot conveniently be created in IB. The xib file contains
30 // a text field |exitLabelPlaceholder_| that's replaced by this text view
31 // |exitLabel_| in -awakeFromNib.
32 scoped_nsobject<NSTextView> exitLabel_;
33
34 scoped_nsobject<NSTimer> hideTimer_;
35 scoped_nsobject<NSAnimation> hideAnimation_;
36 };
37
38 - (id)initWithOwner:(BrowserWindowController*)owner browser:(Browser*)browser;
39
40 // Positions the fullscreen exit bubble in the top-center of the window.
41 - (void)positionInWindowAtTop:(CGFloat)maxY width:(CGFloat)maxWidth;
42
43 // Returns a pointer to this controller's view, cast as an AnimatableView.
44 - (AnimatableView*)animatableView;
45
46 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698