root/chrome/browser/ui/views/theme_image_mapper_aura_win.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. MapThemeImage

// 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

/* [<][>][^][v][top][bottom][index][help] */