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