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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..c82bd9dc5a8e8878e344d8bbadd39ebd4ae0e712
--- /dev/null
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.h
@@ -0,0 +1,57 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#import <Cocoa/Cocoa.h>
+
+#import "base/mac/cocoa_protocols.h"
+#include "base/memory/scoped_nsobject.h"
+#include "googleurl/src/gurl.h"
+
+@class AnimatableView;
+class TabContentsWrapper;
+
+@interface FullscreenExitBubbleController : NSViewController<NSTextViewDelegate> {
+ @private
+ BrowserWindowController* owner_; // weak
+ Browser* browser_; // weak
+
+ @protected
+ IBOutlet NSTextField* exitLabelPlaceholder_;
+ IBOutlet NSTextField* siteInfoLabel_;
+ IBOutlet NSButton* allowButton_;
+ IBOutlet NSButton* denyButton_;
+
+ // Text fields don't work as well with embedded links as text views, but
+ // text views cannot conveniently be created in IB. The xib file contains
+ // a text field |labelPlaceholder_| that's replaced by this text view |label_|
+ // in -awakeFromNib.
+ scoped_nsobject<NSTextView> exitLabel_;
+
+ scoped_nsobject<NSTimer> hideTimer_;
+ NSAnimation* hideAnimation_;
+};
+
+// Initializes a new InfoBarController.
+- (id)initWithOwner:(BrowserWindowController*)owner browser:(Browser*)browser;
+
+// Called when someone clicks on the OK or Cancel buttons. Subclasses
+// must override if they do not hide the buttons.
+- (void)allow:(id)sender;
+- (void)deny:(id)sender;
+
+// Returns a pointer to this controller's view, cast as an AnimatableView.
+- (AnimatableView*)animatableView;
+
+// Open or animate open the infobar.
+- (void)open;
+- (void)animateOpen;
+
+// Close or animate close the infobar.
+- (void)close;
+- (void)animateClosed;
+
+// Sets the info bar message to the specified |message|.
+- (void)setLabelToMessage:(NSString*)message;
+
+@end

Powered by Google App Engine
This is Rietveld 408576698