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

Side by Side Diff: chrome/browser/ui/cocoa/presentation_mode_controller.mm

Issue 107933006: Get rid of ui_cocoa_third_party_toolkits target from ui.gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mark review Created 7 years 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
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 #import "base/mac/mac_util.h"
11 #include "chrome/browser/fullscreen.h" 11 #include "chrome/browser/fullscreen.h"
12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
13 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
14 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 14 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h "
15 15
16 NSString* const kWillEnterFullscreenNotification = 16 NSString* const kWillEnterFullscreenNotification =
17 @"WillEnterFullscreenNotification"; 17 @"WillEnterFullscreenNotification";
18 NSString* const kWillLeaveFullscreenNotification = 18 NSString* const kWillLeaveFullscreenNotification =
19 @"WillLeaveFullscreenNotification"; 19 @"WillLeaveFullscreenNotification";
20 20
21 namespace { 21 namespace {
22 // The activation zone for the main menu is 4 pixels high; if we make it any 22 // The activation zone for the main menu is 4 pixels high; if we make it any
23 // smaller, then the menu can be made to appear without the bar sliding down. 23 // smaller, then the menu can be made to appear without the bar sliding down.
24 const CGFloat kDropdownActivationZoneHeight = 4; 24 const CGFloat kDropdownActivationZoneHeight = 4;
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 - (void)hideActiveWindowUI { 646 - (void)hideActiveWindowUI {
647 if (systemFullscreenMode_ != base::mac::kFullScreenModeNormal) { 647 if (systemFullscreenMode_ != base::mac::kFullScreenModeNormal) {
648 base::mac::ReleaseFullScreen(systemFullscreenMode_); 648 base::mac::ReleaseFullScreen(systemFullscreenMode_);
649 systemFullscreenMode_ = base::mac::kFullScreenModeNormal; 649 systemFullscreenMode_ = base::mac::kFullScreenModeNormal;
650 } 650 }
651 651
652 // TODO(rohitrao): Remove the Exit Fullscreen button. http://crbug.com/35956 652 // TODO(rohitrao): Remove the Exit Fullscreen button. http://crbug.com/35956
653 } 653 }
654 654
655 @end 655 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698