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

Side by Side Diff: chrome/browser/ui/cocoa/download/download_shelf_controller.mm

Issue 7566016: Fullscreen support for Lion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/download/download_shelf_controller.h" 5 #import "chrome/browser/ui/cocoa/download/download_shelf_controller.h"
6 6
7 #include "base/mac/mac_util.h" 7 #include "base/mac/mac_util.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "chrome/browser/download/download_item.h" 9 #include "chrome/browser/download/download_item.h"
10 #include "chrome/browser/download/download_manager.h" 10 #include "chrome/browser/download/download_manager.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/themes/theme_service.h" 12 #include "chrome/browser/themes/theme_service.h"
13 #include "chrome/browser/themes/theme_service_factory.h" 13 #include "chrome/browser/themes/theme_service_factory.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #import "chrome/browser/ui/cocoa/animatable_view.h" 15 #import "chrome/browser/ui/cocoa/animatable_view.h"
16 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" 16 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
17 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
18 #include "chrome/browser/ui/cocoa/download/download_item_controller.h" 18 #include "chrome/browser/ui/cocoa/download/download_item_controller.h"
19 #include "chrome/browser/ui/cocoa/download/download_shelf_mac.h" 19 #include "chrome/browser/ui/cocoa/download/download_shelf_mac.h"
20 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h" 20 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h"
21 #import "chrome/browser/ui/cocoa/fullscreen_controller.h"
22 #import "chrome/browser/ui/cocoa/hover_button.h" 21 #import "chrome/browser/ui/cocoa/hover_button.h"
22 #import "chrome/browser/ui/cocoa/presentation_mode_controller.h"
23 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 23 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 // Download shelf autoclose behavior: 26 // Download shelf autoclose behavior:
27 // 27 //
28 // The download shelf autocloses if all of this is true: 28 // The download shelf autocloses if all of this is true:
29 // 1) An item on the shelf has just been opened. 29 // 1) An item on the shelf has just been opened.
30 // 2) All remaining items on the shelf have been opened in the past. 30 // 2) All remaining items on the shelf have been opened in the past.
31 // 3) The mouse leaves the shelf and remains off the shelf for 5 seconds. 31 // 3) The mouse leaves the shelf and remains off the shelf for 5 seconds.
32 // 32 //
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 } 439 }
440 440
441 // Set the tracking off to create a new tracking area for the control. 441 // Set the tracking off to create a new tracking area for the control.
442 // When changing the bounds/frame on a HoverButton, the tracking isn't updated 442 // When changing the bounds/frame on a HoverButton, the tracking isn't updated
443 // correctly, it needs to be turned off and back on. 443 // correctly, it needs to be turned off and back on.
444 [hoverCloseButton_ setTrackingEnabled:NO]; 444 [hoverCloseButton_ setTrackingEnabled:NO];
445 [hoverCloseButton_ setFrame:bounds]; 445 [hoverCloseButton_ setFrame:bounds];
446 [hoverCloseButton_ setTrackingEnabled:YES]; 446 [hoverCloseButton_ setTrackingEnabled:YES];
447 } 447 }
448 @end 448 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_unittest.mm ('k') | chrome/browser/ui/cocoa/framed_browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698