OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 (desktop_type != HOST_DESKTOP_TYPE_NATIVE) | 12 if (desktop_type != HOST_DESKTOP_TYPE_NATIVE) |
13 return resource; | 13 return resource; |
14 | 14 |
15 switch (resource) { | 15 switch (resource) { |
16 case IDR_CONTENT_TOP_CENTER: | 16 case IDR_CONTENT_TOP_CENTER: |
17 return IDR_CONTENT_TOP_CENTER_WIN; | 17 return IDR_CONTENT_TOP_CENTER_DESKTOP; |
18 case IDR_OTR_ICON: | 18 case IDR_OTR_ICON: |
19 return IDR_OTR_ICON_WIN; | 19 return IDR_OTR_ICON_DESKTOP; |
20 case IDR_THEME_FRAME: | 20 case IDR_THEME_FRAME: |
21 return IDR_THEME_FRAME_WIN; | 21 return IDR_THEME_FRAME_DESKTOP; |
22 case IDR_THEME_FRAME_INACTIVE: | 22 case IDR_THEME_FRAME_INACTIVE: |
23 return IDR_THEME_FRAME_INACTIVE_WIN; | 23 return IDR_THEME_FRAME_INACTIVE_DESKTOP; |
24 case IDR_THEME_FRAME_INCOGNITO: | 24 case IDR_THEME_FRAME_INCOGNITO: |
25 return IDR_THEME_FRAME_INCOGNITO_WIN; | 25 return IDR_THEME_FRAME_INCOGNITO_DESKTOP; |
26 case IDR_THEME_FRAME_INCOGNITO_INACTIVE: | 26 case IDR_THEME_FRAME_INCOGNITO_INACTIVE: |
27 return IDR_THEME_FRAME_INCOGNITO_INACTIVE_WIN; | 27 return IDR_THEME_FRAME_INCOGNITO_INACTIVE_DESKTOP; |
28 case IDR_THEME_TAB_BACKGROUND: | 28 case IDR_THEME_TAB_BACKGROUND: |
29 return IDR_THEME_TAB_BACKGROUND_WIN; | 29 return IDR_THEME_TAB_BACKGROUND_DESKTOP; |
30 case IDR_THEME_TAB_BACKGROUND_INCOGNITO: | 30 case IDR_THEME_TAB_BACKGROUND_INCOGNITO: |
31 return IDR_THEME_TAB_BACKGROUND_INCOGNITO_WIN; | 31 return IDR_THEME_TAB_BACKGROUND_INCOGNITO_DESKTOP; |
32 case IDR_THEME_TOOLBAR: | 32 case IDR_THEME_TOOLBAR: |
33 return IDR_THEME_TOOLBAR_WIN; | 33 return IDR_THEME_TOOLBAR_DESKTOP; |
34 default: | 34 default: |
35 break; | 35 break; |
36 } | 36 } |
37 return resource; | 37 return resource; |
38 } | 38 } |
39 | 39 |
40 } // namespace chrome | 40 } // namespace chrome |
OLD | NEW |