NaCl docs: add sanitizers to GSoC ideas
[chromium-blink-merge.git] / chrome / browser / ui / views / theme_image_mapper.cc
blobbc947e7dc4d1a3403baaee152422a58d41f53b9b
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 int MapThemeImage(HostDesktopType desktop_type, int resource) {
12 #if !defined(OS_CHROMEOS)
13 if (desktop_type != HOST_DESKTOP_TYPE_NATIVE)
14 return resource;
16 switch (resource) {
17 case IDR_CONTENT_TOP_CENTER:
18 return IDR_CONTENT_TOP_CENTER_DESKTOP;
19 case IDR_OTR_ICON:
20 return IDR_OTR_ICON_DESKTOP;
21 case IDR_THEME_FRAME:
22 return IDR_THEME_FRAME_DESKTOP;
23 case IDR_THEME_FRAME_INACTIVE:
24 return IDR_THEME_FRAME_INACTIVE_DESKTOP;
25 case IDR_THEME_FRAME_INCOGNITO:
26 return IDR_THEME_FRAME_INCOGNITO_DESKTOP;
27 case IDR_THEME_FRAME_INCOGNITO_INACTIVE:
28 return IDR_THEME_FRAME_INCOGNITO_INACTIVE_DESKTOP;
29 case IDR_THEME_TAB_BACKGROUND:
30 return IDR_THEME_TAB_BACKGROUND_DESKTOP;
31 case IDR_THEME_TAB_BACKGROUND_INCOGNITO:
32 return IDR_THEME_TAB_BACKGROUND_INCOGNITO_DESKTOP;
33 case IDR_THEME_TOOLBAR:
34 return IDR_THEME_TOOLBAR_DESKTOP;
35 default:
36 break;
38 #endif // !defined(OS_CHROMEOS)
40 return resource;
43 } // namespace chrome