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

Unified Diff: chrome/browser/cocoa/bookmark_bar_controller.h

Issue 126294: Mac fullscreen mode (with pkasting). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/app/nibs/en.lproj/MainMenu.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/bookmark_bar_controller.h
===================================================================
--- chrome/browser/cocoa/bookmark_bar_controller.h (revision 19517)
+++ chrome/browser/cocoa/bookmark_bar_controller.h (working copy)
@@ -16,6 +16,7 @@
class BookmarkNode;
@class BookmarkBarView;
class Profile;
+class PrefService;
// The interface for an object which can open URLs for a bookmark.
@protocol BookmarkURLOpener
@@ -30,13 +31,19 @@
@private
BookmarkModel* bookmarkModel_; // weak; part of the profile owned by the
// top-level Browser object.
+ PrefService* preferences_; // (ditto)
- // Currently these two are always the same, but they mean slightly
- // different things. contentAreaHasOffset_ is an implementation
- // detail of bookmark bar visibility.
+ // Currently these two are always the same when not in fullscreen
+ // mode, but they mean slightly different things.
+ // contentAreaHasOffset_ is an implementation detail of bookmark bar
+ // show state.
BOOL contentViewHasOffset_;
- BOOL barIsVisible_;
+ BOOL barShouldBeShown_;
+ // If the bar is disabled, we hide it and ignore show/hide commands.
+ // Set when using fullscreen mode.
+ BOOL barIsEnabled_;
+
// The view of the bookmark bar itself.
// Not made into a scoped_nsobject since I may move it into a nib.
// (See TODO in initWithProfile: in bookmark_bar_controller.mm).
@@ -70,6 +77,11 @@
// Toggle the state of the bookmark bar.
- (void)toggleBookmarkBar;
+// Turn on or off the bookmark bar and prevent or reallow its
+// appearance. On disable, toggle off if shown. On enable, show only
+// if needed. For fullscreen mode.
+- (void)setBookmarkBarEnabled:(BOOL)enabled;
+
@end
// Redirects from BookmarkBarBridge, the C++ object which glues us to
« no previous file with comments | « chrome/app/nibs/en.lproj/MainMenu.xib ('k') | chrome/browser/cocoa/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698