This source file includes following definitions.
- MapThemeImage
#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;
}
}