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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h"
9 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
10 #include "base/sys_string_conversions.h" 9 #include "base/sys_string_conversions.h"
11 #include "chrome/browser/download/download_item.h" 10 #include "chrome/browser/download/download_item.h"
12 #include "chrome/browser/download/download_manager.h" 11 #include "chrome/browser/download/download_manager.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/themes/browser_theme_provider.h" 13 #include "chrome/browser/themes/browser_theme_provider.h"
15 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
16 #import "chrome/browser/ui/cocoa/animatable_view.h" 15 #import "chrome/browser/ui/cocoa/animatable_view.h"
17 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h" 16 #include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
18 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 17 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
19 #include "chrome/browser/ui/cocoa/download/download_item_controller.h" 18 #include "chrome/browser/ui/cocoa/download/download_item_controller.h"
20 #include "chrome/browser/ui/cocoa/download/download_shelf_mac.h" 19 #include "chrome/browser/ui/cocoa/download/download_shelf_mac.h"
21 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h" 20 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h"
22 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h" 21 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h"
23 #include "grit/generated_resources.h" 22 #include "grit/generated_resources.h"
24 #include "grit/theme_resources.h" 23 #include "grit/theme_resources.h"
25 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" 24 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h"
25 #include "ui/base/resource/resource_bundle.h"
26 26
27 // Download shelf autoclose behavior: 27 // Download shelf autoclose behavior:
28 // 28 //
29 // The download shelf autocloses if all of this is true: 29 // The download shelf autocloses if all of this is true:
30 // 1) An item on the shelf has just been opened. 30 // 1) An item on the shelf has just been opened.
31 // 2) All remaining items on the shelf have been opened in the past. 31 // 2) All remaining items on the shelf have been opened in the past.
32 // 3) The mouse leaves the shelf and remains off the shelf for 5 seconds. 32 // 3) The mouse leaves the shelf and remains off the shelf for 5 seconds.
33 // 33 //
34 // If the mouse re-enters the shelf within the 5 second grace period, the 34 // If the mouse re-enters the shelf within the 5 second grace period, the
35 // autoclose is canceled. An autoclose can only be scheduled in response to a 35 // autoclose is canceled. An autoclose can only be scheduled in response to a
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 selector:@selector(hide:) 418 selector:@selector(hide:)
419 object:self]; 419 object:self];
420 420
421 if (trackingArea_.get()) { 421 if (trackingArea_.get()) {
422 [[self view] removeTrackingArea:trackingArea_]; 422 [[self view] removeTrackingArea:trackingArea_];
423 trackingArea_.reset(nil); 423 trackingArea_.reset(nil);
424 } 424 }
425 } 425 }
426 426
427 @end 427 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698