OLD | NEW |
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 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" | 5 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #import "base/mac/mac_util.h" |
10 #include "base/mac/sdk_forward_declarations.h" | 11 #include "base/mac/sdk_forward_declarations.h" |
11 #import "base/mac/mac_util.h" | |
12 #include "chrome/browser/fullscreen.h" | 12 #include "chrome/browser/fullscreen.h" |
13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 13 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
14 #import "chrome/browser/ui/cocoa/nsview_additions.h" | |
15 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
16 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" | 15 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h
" |
| 16 #import "ui/base/cocoa/nsview_additions.h" |
17 | 17 |
18 NSString* const kWillEnterFullscreenNotification = | 18 NSString* const kWillEnterFullscreenNotification = |
19 @"WillEnterFullscreenNotification"; | 19 @"WillEnterFullscreenNotification"; |
20 NSString* const kWillLeaveFullscreenNotification = | 20 NSString* const kWillLeaveFullscreenNotification = |
21 @"WillLeaveFullscreenNotification"; | 21 @"WillLeaveFullscreenNotification"; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // The activation zone for the main menu is 4 pixels high; if we make it any | 25 // The activation zone for the main menu is 4 pixels high; if we make it any |
26 // smaller, then the menu can be made to appear without the bar sliding down. | 26 // smaller, then the menu can be made to appear without the bar sliding down. |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 [self updateMenuBarAndDockVisibility]; | 742 [self updateMenuBarAndDockVisibility]; |
743 | 743 |
744 // TODO(rohitrao): Remove the Exit Fullscreen button. http://crbug.com/35956 | 744 // TODO(rohitrao): Remove the Exit Fullscreen button. http://crbug.com/35956 |
745 } | 745 } |
746 | 746 |
747 - (BOOL)shouldShowMenubarInImmersiveFullscreen { | 747 - (BOOL)shouldShowMenubarInImmersiveFullscreen { |
748 return toolbarFraction_ >= 1.0; | 748 return toolbarFraction_ >= 1.0; |
749 } | 749 } |
750 | 750 |
751 @end | 751 @end |
OLD | NEW |