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/download/download_shelf_view.h" | 5 #import "chrome/browser/ui/cocoa/download/download_shelf_view.h" |
6 | 6 |
7 #include "chrome/browser/themes/theme_properties.h" | 7 #include "chrome/browser/themes/theme_properties.h" |
8 #include "chrome/browser/themes/theme_service.h" | 8 #include "chrome/browser/themes/theme_service.h" |
9 #import "chrome/browser/ui/cocoa/nsview_additions.h" | |
10 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 9 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" |
11 #import "chrome/browser/ui/cocoa/themed_window.h" | 10 #import "chrome/browser/ui/cocoa/themed_window.h" |
12 #import "chrome/browser/ui/cocoa/view_id_util.h" | 11 #import "chrome/browser/ui/cocoa/view_id_util.h" |
13 #import "ui/base/cocoa/nsgraphics_context_additions.h" | 12 #import "ui/base/cocoa/nsgraphics_context_additions.h" |
| 13 #import "ui/base/cocoa/nsview_additions.h" |
14 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 14 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
15 | 15 |
16 @implementation DownloadShelfView | 16 @implementation DownloadShelfView |
17 | 17 |
18 // For programmatic instantiations in unit tests. | 18 // For programmatic instantiations in unit tests. |
19 - (id)initWithFrame:(NSRect)frameRect { | 19 - (id)initWithFrame:(NSRect)frameRect { |
20 if ((self = [super initWithFrame:frameRect])) { | 20 if ((self = [super initWithFrame:frameRect])) { |
21 [self setShowsDivider:NO]; | 21 [self setShowsDivider:NO]; |
22 } | 22 } |
23 return self; | 23 return self; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 - (ViewID)viewID { | 83 - (ViewID)viewID { |
84 return VIEW_ID_DOWNLOAD_SHELF; | 84 return VIEW_ID_DOWNLOAD_SHELF; |
85 } | 85 } |
86 | 86 |
87 - (BOOL)isOpaque { | 87 - (BOOL)isOpaque { |
88 return YES; | 88 return YES; |
89 } | 89 } |
90 | 90 |
91 @end | 91 @end |
OLD | NEW |