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

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

Issue 1737413002: Modified the behavior of "Hide Toolbar in Full Screen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // When the window is in the process of entering AppKit Fullscreen, this 154 // When the window is in the process of entering AppKit Fullscreen, this
155 // property indicates whether the window is being fullscreened on the 155 // property indicates whether the window is being fullscreened on the
156 // primary screen. 156 // primary screen.
157 BOOL enteringAppKitFullscreenOnPrimaryScreen_; 157 BOOL enteringAppKitFullscreenOnPrimaryScreen_;
158 158
159 // This flag is set to true when |customWindowsToEnterFullScreenForWindow:| 159 // This flag is set to true when |customWindowsToEnterFullScreenForWindow:|
160 // and |customWindowsToExitFullScreenForWindow:| are called and did not 160 // and |customWindowsToExitFullScreenForWindow:| are called and did not
161 // return nil. 161 // return nil.
162 BOOL isUsingCustomAnimation_; 162 BOOL isUsingCustomAnimation_;
163 163
164 // True if the toolbar needs to be hidden in fullscreen. 164 // True if the toolbar needs to be shown in fullscreen.
165 BOOL shouldHideFullscreenToolbar_; 165 BOOL shouldShowFullscreenToolbar_;
166 166
167 // The size of the original (non-fullscreen) window. This is saved just 167 // The size of the original (non-fullscreen) window. This is saved just
168 // before entering fullscreen mode and is only valid when |-isFullscreen| 168 // before entering fullscreen mode and is only valid when |-isFullscreen|
169 // returns YES. 169 // returns YES.
170 NSRect savedRegularWindowFrame_; 170 NSRect savedRegularWindowFrame_;
171 171
172 // The proportion of the floating bar which is shown (in presentation mode). 172 // The proportion of the floating bar which is shown (in presentation mode).
173 CGFloat floatingBarShownFraction_; 173 CGFloat floatingBarShownFraction_;
174 174
175 // Various UI elements/events may want to ensure that the floating bar is 175 // Various UI elements/events may want to ensure that the floating bar is
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 - (void)updateFullscreenWithToolbar:(BOOL)withToolbar; 527 - (void)updateFullscreenWithToolbar:(BOOL)withToolbar;
528 528
529 // Exits extension fullscreen if we're currently in the mode. Returns YES 529 // Exits extension fullscreen if we're currently in the mode. Returns YES
530 // if we exited fullscreen. 530 // if we exited fullscreen.
531 - (BOOL)exitExtensionFullscreenIfPossible; 531 - (BOOL)exitExtensionFullscreenIfPossible;
532 532
533 // Updates the contents of the fullscreen exit bubble with |url| and 533 // Updates the contents of the fullscreen exit bubble with |url| and
534 // |bubbleType|. 534 // |bubbleType|.
535 - (void)updateFullscreenExitBubble; 535 - (void)updateFullscreenExitBubble;
536 536
537 // Toggles and updates the toolbar's visibility in fullscreen mode. This 537 // Set toolbar's visibility in fullscreen mode.
msw 2016/03/01 19:23:02 nit: "Set the toolbar's"
spqchan 2016/03/01 23:41:31 Done.
538 // function toggles between the sliding styles: OMNIBOX_TABS_PRESENT and 538 - (void)setFullscreenToolbarVisible:(BOOL)visible;
539 // OMNIBOX_TABS_HIDDEN.
540 - (void)setFullscreenToolbarHidden:(BOOL)isHidden;
541 539
542 // Returns YES if the browser window is in or entering any fullscreen mode. 540 // Returns YES if the browser window is in or entering any fullscreen mode.
543 - (BOOL)isInAnyFullscreenMode; 541 - (BOOL)isInAnyFullscreenMode;
544 542
545 // Returns YES if the browser window is currently in or entering fullscreen via 543 // Returns YES if the browser window is currently in or entering fullscreen via
546 // the built-in immersive mechanism. 544 // the built-in immersive mechanism.
547 - (BOOL)isInImmersiveFullscreen; 545 - (BOOL)isInImmersiveFullscreen;
548 546
549 // Returns YES if the browser window is currently in or entering fullscreen via 547 // Returns YES if the browser window is currently in or entering fullscreen via
550 // the AppKit Fullscreen API. 548 // the AppKit Fullscreen API.
551 - (BOOL)isInAppKitFullscreen; 549 - (BOOL)isInAppKitFullscreen;
552 550
553 // Enter fullscreen for an extension. 551 // Enter fullscreen for an extension.
554 - (void)enterExtensionFullscreen; 552 - (void)enterExtensionFullscreen;
555 553
556 // Enters Immersive Fullscreen for the given URL. 554 // Enters Immersive Fullscreen for the given URL.
557 - (void)enterWebContentFullscreen; 555 - (void)enterWebContentFullscreen;
558 556
559 // Exits the current fullscreen mode. 557 // Exits the current fullscreen mode.
560 - (void)exitAnyFullscreen; 558 - (void)exitAnyFullscreen;
561 559
562 // Whether the system is in the very specific fullscreen mode: Presentation 560 // Whether the system is in the very specific fullscreen mode: Presentation
563 // Mode. 561 // Mode.
564 - (BOOL)inPresentationMode; 562 - (BOOL)inPresentationMode;
565 563
566 // Whether if the toolbar should be hidden in fullscreen. 564 // Whether if the toolbar should be shown in fullscreen.
msw 2016/03/01 19:23:02 nit: remove 'if'
spqchan 2016/03/01 23:41:31 Done.
567 - (BOOL)shouldHideFullscreenToolbar; 565 - (BOOL)shouldShowFullscreenToolbar;
568 566
569 // Resizes the fullscreen window to fit the screen it's currently on. Called by 567 // Resizes the fullscreen window to fit the screen it's currently on. Called by
570 // the PresentationModeController when there is a change in monitor placement or 568 // the PresentationModeController when there is a change in monitor placement or
571 // resolution. 569 // resolution.
572 - (void)resizeFullscreenWindow; 570 - (void)resizeFullscreenWindow;
573 571
574 // Query/lock/release the requirement that the tab strip/toolbar/attached 572 // Query/lock/release the requirement that the tab strip/toolbar/attached
575 // bookmark bar bar cluster is visible (e.g., when one of its elements has 573 // bookmark bar bar cluster is visible (e.g., when one of its elements has
576 // focus). This is required for the floating bar in presentation mode, but 574 // focus). This is required for the floating bar in presentation mode, but
577 // should also be called when not in presentation mode; see the comments for 575 // should also be called when not in presentation mode; see the comments for
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // Returns the active tab contents controller's |blockFullscreenResize_| flag. 639 // Returns the active tab contents controller's |blockFullscreenResize_| flag.
642 - (BOOL)isActiveTabContentsControllerResizeBlocked; 640 - (BOOL)isActiveTabContentsControllerResizeBlocked;
643 641
644 // Returns the presentation mode controller. 642 // Returns the presentation mode controller.
645 - (PresentationModeController*)presentationModeController; 643 - (PresentationModeController*)presentationModeController;
646 644
647 @end // @interface BrowserWindowController (TestingAPI) 645 @end // @interface BrowserWindowController (TestingAPI)
648 646
649 647
650 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 648 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698