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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/views/theme_image_mapper.h"
7 #include "grit/theme_resources.h"
11 // On platforms where there is both Ash and a desktop browser, provide DESKTOP
12 // resources for the latter.
13 int MapThemeImage(HostDesktopType desktop_type
, int resource
) {
14 #if !defined(OS_CHROMEOS) && !defined(OS_MACOSX)
15 if (desktop_type
!= HOST_DESKTOP_TYPE_NATIVE
)
19 case IDR_CONTENT_TOP_CENTER
:
20 return IDR_CONTENT_TOP_CENTER_DESKTOP
;
22 return IDR_OTR_ICON_DESKTOP
;
24 return IDR_THEME_FRAME_DESKTOP
;
25 case IDR_THEME_FRAME_INACTIVE
:
26 return IDR_THEME_FRAME_INACTIVE_DESKTOP
;
27 case IDR_THEME_FRAME_INCOGNITO
:
28 return IDR_THEME_FRAME_INCOGNITO_DESKTOP
;
29 case IDR_THEME_FRAME_INCOGNITO_INACTIVE
:
30 return IDR_THEME_FRAME_INCOGNITO_INACTIVE_DESKTOP
;
31 case IDR_THEME_TAB_BACKGROUND
:
32 return IDR_THEME_TAB_BACKGROUND_DESKTOP
;
33 case IDR_THEME_TAB_BACKGROUND_INCOGNITO
:
34 return IDR_THEME_TAB_BACKGROUND_INCOGNITO_DESKTOP
;
35 case IDR_THEME_TOOLBAR
:
36 return IDR_THEME_TOOLBAR_DESKTOP
;
40 #endif // !defined(OS_CHROMEOS)