OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/views/theme_image_mapper.h" | 5 #include "chrome/browser/ui/views/theme_image_mapper.h" |
6 | 6 |
7 #include "grit/theme_resources.h" | 7 #include "grit/theme_resources.h" |
8 | 8 |
9 namespace chrome { | 9 namespace chrome { |
10 | 10 |
11 int MapThemeImage(HostDesktopType desktop_type, int resource) { | 11 int MapThemeImage(HostDesktopType desktop_type, int resource) { |
12 #if !defined(OS_CHROMEOS) | 12 #if !defined(OS_CHROMEOS) && !defined(OS_MACOSX) |
tapted
2015/03/12 18:16:46
Perhaps a comment here, since we were a bit confus
Andre
2015/03/12 21:16:41
Done.
| |
13 if (desktop_type != HOST_DESKTOP_TYPE_NATIVE) | 13 if (desktop_type != HOST_DESKTOP_TYPE_NATIVE) |
14 return resource; | 14 return resource; |
15 | 15 |
16 switch (resource) { | 16 switch (resource) { |
17 case IDR_CONTENT_TOP_CENTER: | 17 case IDR_CONTENT_TOP_CENTER: |
18 return IDR_CONTENT_TOP_CENTER_DESKTOP; | 18 return IDR_CONTENT_TOP_CENTER_DESKTOP; |
19 case IDR_OTR_ICON: | 19 case IDR_OTR_ICON: |
20 return IDR_OTR_ICON_DESKTOP; | 20 return IDR_OTR_ICON_DESKTOP; |
21 case IDR_THEME_FRAME: | 21 case IDR_THEME_FRAME: |
22 return IDR_THEME_FRAME_DESKTOP; | 22 return IDR_THEME_FRAME_DESKTOP; |
(...skipping 11 matching lines...) Expand all Loading... | |
34 return IDR_THEME_TOOLBAR_DESKTOP; | 34 return IDR_THEME_TOOLBAR_DESKTOP; |
35 default: | 35 default: |
36 break; | 36 break; |
37 } | 37 } |
38 #endif // !defined(OS_CHROMEOS) | 38 #endif // !defined(OS_CHROMEOS) |
39 | 39 |
40 return resource; | 40 return resource; |
41 } | 41 } |
42 | 42 |
43 } // namespace chrome | 43 } // namespace chrome |
OLD | NEW |