AccessibilityManager must be deleted after ash Shell, but before InputMethodManager.
[chromium-blink-merge.git] / chrome / browser / ui / views / theme_image_mapper.cc
blob69284a23d5f1b94e03f1f84426e63a4ea6141ca1
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"
9 namespace chrome {
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)
16 return resource;
18 switch (resource) {
19 case IDR_CONTENT_TOP_CENTER:
20 return IDR_CONTENT_TOP_CENTER_DESKTOP;
21 case IDR_OTR_ICON:
22 return IDR_OTR_ICON_DESKTOP;
23 case IDR_THEME_FRAME:
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;
37 default:
38 break;
40 #endif // !defined(OS_CHROMEOS)
42 return resource;
45 } // namespace chrome