summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/theme_image_mapper_aura_win.cc
blob: 8ef3bb01a0f8945e8d853449b1334ec1e7342a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/ui/views/theme_image_mapper.h"

#include "grit/theme_resources.h"

namespace chrome {

int MapThemeImage(HostDesktopType desktop_type, int resource) {
  if (desktop_type != HOST_DESKTOP_TYPE_NATIVE)
    return resource;

  switch (resource) {
    case IDR_CONTENT_TOP_CENTER:
      return IDR_CONTENT_TOP_CENTER_WIN;
    case IDR_OTR_ICON:
      return IDR_OTR_ICON_WIN;
    case IDR_THEME_FRAME:
      return IDR_THEME_FRAME_WIN;
    case IDR_THEME_FRAME_INACTIVE:
      return IDR_THEME_FRAME_INACTIVE_WIN;
    case IDR_THEME_FRAME_INCOGNITO:
      return IDR_THEME_FRAME_INCOGNITO_WIN;
    case IDR_THEME_FRAME_INCOGNITO_INACTIVE:
      return IDR_THEME_FRAME_INCOGNITO_INACTIVE_WIN;
    case IDR_THEME_TAB_BACKGROUND:
      return IDR_THEME_TAB_BACKGROUND_WIN;
    case IDR_THEME_TAB_BACKGROUND_INCOGNITO:
      return IDR_THEME_TAB_BACKGROUND_INCOGNITO_WIN;
    case IDR_THEME_TOOLBAR:
      return IDR_THEME_TOOLBAR_WIN;
    default:
      break;
  }
  return resource;
}

}  // namespace chrome