Don't preload rarely seen large images
[chromium-blink-merge.git] / components / html_viewer / blink_resource_constants.h
blobe4c3951e439e319b60028282a3b373f335d027bf
1 // Copyright 2015 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 #ifndef COMPONENTS_HTML_VIEWER_BLINK_RESOURCE_CONSTANTS_H_
6 #define COMPONENTS_HTML_VIEWER_BLINK_RESOURCE_CONSTANTS_H_
8 #include "blink/public/resources/grit/blink_image_resources.h"
9 #include "blink/public/resources/grit/blink_resources.h"
11 namespace html_viewer {
13 struct DataResource {
14 const char* name;
15 int id;
18 const DataResource kDataResources[] = {
19 {"missingImage", IDR_BROKENIMAGE},
20 // Skipping missingImage@2x
21 {"mediaplayerPause", IDR_MEDIAPLAYER_PAUSE_BUTTON},
22 {"mediaplayerPauseNew", IDR_MEDIAPLAYER_PAUSE_BUTTON_NEW},
23 {"mediaplayerPauseHover", IDR_MEDIAPLAYER_PAUSE_BUTTON_HOVER},
24 {"mediaplayerPauseDown", IDR_MEDIAPLAYER_PAUSE_BUTTON_DOWN},
25 {"mediaplayerPlay", IDR_MEDIAPLAYER_PLAY_BUTTON},
26 {"mediaplayerPlayNew", IDR_MEDIAPLAYER_PLAY_BUTTON_NEW},
27 {"mediaplayerPlayHover", IDR_MEDIAPLAYER_PLAY_BUTTON_HOVER},
28 {"mediaplayerPlayDown", IDR_MEDIAPLAYER_PLAY_BUTTON_DOWN},
29 {"mediaplayerPlayDisabled", IDR_MEDIAPLAYER_PLAY_BUTTON_DISABLED},
30 {"mediaplayerSoundLevel3", IDR_MEDIAPLAYER_SOUND_LEVEL3_BUTTON},
31 {"mediaplayerSoundLevel3New", IDR_MEDIAPLAYER_SOUND_LEVEL3_BUTTON_NEW},
32 {"mediaplayerSoundLevel3Hover", IDR_MEDIAPLAYER_SOUND_LEVEL3_BUTTON_HOVER},
33 {"mediaplayerSoundLevel3Down", IDR_MEDIAPLAYER_SOUND_LEVEL3_BUTTON_DOWN},
34 {"mediaplayerSoundLevel2", IDR_MEDIAPLAYER_SOUND_LEVEL2_BUTTON},
35 {"mediaplayerSoundLevel2Hover", IDR_MEDIAPLAYER_SOUND_LEVEL2_BUTTON_HOVER},
36 {"mediaplayerSoundLevel2Down", IDR_MEDIAPLAYER_SOUND_LEVEL2_BUTTON_DOWN},
37 {"mediaplayerSoundLevel1", IDR_MEDIAPLAYER_SOUND_LEVEL1_BUTTON},
38 {"mediaplayerSoundLevel1Hover", IDR_MEDIAPLAYER_SOUND_LEVEL1_BUTTON_HOVER},
39 {"mediaplayerSoundLevel1Down", IDR_MEDIAPLAYER_SOUND_LEVEL1_BUTTON_DOWN},
40 {"mediaplayerSoundLevel0", IDR_MEDIAPLAYER_SOUND_LEVEL0_BUTTON},
41 {"mediaplayerSoundLevel0New", IDR_MEDIAPLAYER_SOUND_LEVEL0_BUTTON_NEW},
42 {"mediaplayerSoundLevel0Hover", IDR_MEDIAPLAYER_SOUND_LEVEL0_BUTTON_HOVER},
43 {"mediaplayerSoundLevel0Down", IDR_MEDIAPLAYER_SOUND_LEVEL0_BUTTON_DOWN},
44 {"mediaplayerSoundDisabled", IDR_MEDIAPLAYER_SOUND_DISABLED},
45 {"mediaplayerSliderThumb", IDR_MEDIAPLAYER_SLIDER_THUMB},
46 {"mediaplayerSliderThumbNew", IDR_MEDIAPLAYER_SLIDER_THUMB_NEW},
47 {"mediaplayerSliderThumbHover", IDR_MEDIAPLAYER_SLIDER_THUMB_HOVER},
48 {"mediaplayerSliderThumbDown", IDR_MEDIAPLAYER_SLIDER_THUMB_DOWN},
49 {"mediaplayerVolumeSliderThumb", IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB},
50 {"mediaplayerVolumeSliderThumbNew",
51 IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_NEW},
52 {"mediaplayerVolumeSliderThumbHover",
53 IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_HOVER},
54 {"mediaplayerVolumeSliderThumbDown",
55 IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_DOWN},
56 {"mediaplayerVolumeSliderThumbDisabled",
57 IDR_MEDIAPLAYER_VOLUME_SLIDER_THUMB_DISABLED},
58 {"mediaplayerClosedCaption", IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON},
59 {"mediaplayerClosedCaptionNew", IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON_NEW},
60 {"mediaplayerClosedCaptionHover",
61 IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON_HOVER},
62 {"mediaplayerClosedCaptionDown",
63 IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON_DOWN},
64 {"mediaplayerClosedCaptionDisabled",
65 IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON_DISABLED},
66 {"mediaplayerClosedCaptionDisabledNew",
67 IDR_MEDIAPLAYER_CLOSEDCAPTION_BUTTON_DISABLED_NEW},
68 {"mediaplayerEnterFullscreen", IDR_MEDIAPLAYER_ENTER_FULLSCREEN_BUTTON},
69 {"mediaplayerFullscreen", IDR_MEDIAPLAYER_FULLSCREEN_BUTTON},
70 {"mediaplayerFullscreenHover", IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_HOVER},
71 {"mediaplayerFullscreenDown", IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DOWN},
72 {"mediaplayerExitEnterFullscreen", IDR_MEDIAPLAYER_EXIT_FULLSCREEN_BUTTON},
73 {"mediaplayerCastOff", IDR_MEDIAPLAYER_CAST_BUTTON_OFF},
74 {"mediaplayerCastOffNew", IDR_MEDIAPLAYER_CAST_BUTTON_OFF_NEW},
75 {"mediaplayerCastOn", IDR_MEDIAPLAYER_CAST_BUTTON_ON},
76 {"mediaplayerCastOnNew", IDR_MEDIAPLAYER_CAST_BUTTON_ON_NEW},
77 {"mediaplayerFullscreenDisabled",
78 IDR_MEDIAPLAYER_FULLSCREEN_BUTTON_DISABLED},
79 {"mediaplayerOverlayCastOff", IDR_MEDIAPLAYER_OVERLAY_CAST_BUTTON_OFF},
80 {"mediaplayerOverlayCastOffNew",
81 IDR_MEDIAPLAYER_OVERLAY_CAST_BUTTON_OFF_NEW},
82 {"mediaplayerOverlayPlay", IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON},
83 {"mediaplayerOverlayPlayNew", IDR_MEDIAPLAYER_OVERLAY_PLAY_BUTTON_NEW},
84 {"panIcon", IDR_PAN_SCROLL_ICON},
85 {"searchCancel", IDR_SEARCH_CANCEL},
86 {"searchCancelPressed", IDR_SEARCH_CANCEL_PRESSED},
87 {"searchMagnifier", IDR_SEARCH_MAGNIFIER},
88 {"searchMagnifierResults", IDR_SEARCH_MAGNIFIER_RESULTS},
89 {"textAreaResizeCorner", IDR_TEXTAREA_RESIZER},
90 // Skipping "textAreaResizeCorner@2x"
91 {"generatePassword", IDR_PASSWORD_GENERATION_ICON},
92 {"generatePasswordHover", IDR_PASSWORD_GENERATION_ICON_HOVER},
93 {"html.css", IDR_UASTYLE_HTML_CSS},
94 {"quirks.css", IDR_UASTYLE_QUIRKS_CSS},
95 {"view-source.css", IDR_UASTYLE_VIEW_SOURCE_CSS},
96 {"themeChromium.css", IDR_UASTYLE_THEME_CHROMIUM_CSS},
97 #if defined(OS_ANDROID)
98 {"themeChromiumAndroid.css", IDR_UASTYLE_THEME_CHROMIUM_ANDROID_CSS},
99 {"mediaControlsAndroid.css", IDR_UASTYLE_MEDIA_CONTROLS_ANDROID_CSS},
100 #endif
101 #if !defined(OS_WIN)
102 {"themeChromiumLinux.css", IDR_UASTYLE_THEME_CHROMIUM_LINUX_CSS},
103 #endif
104 {"themeChromiumSkia.css", IDR_UASTYLE_THEME_CHROMIUM_SKIA_CSS},
105 {"themeInputMultipleFields.css",
106 IDR_UASTYLE_THEME_INPUT_MULTIPLE_FIELDS_CSS},
107 #if defined(OS_MACOSX)
108 {"themeMac.css", IDR_UASTYLE_THEME_MAC_CSS},
109 #endif
110 {"themeWin.css", IDR_UASTYLE_THEME_WIN_CSS},
111 {"themeWinQuirks.css", IDR_UASTYLE_THEME_WIN_QUIRKS_CSS},
112 {"svg.css", IDR_UASTYLE_SVG_CSS},
113 {"mathml.css", IDR_UASTYLE_MATHML_CSS},
114 {"mediaControls.css", IDR_UASTYLE_MEDIA_CONTROLS_CSS},
115 {"fullscreen.css", IDR_UASTYLE_FULLSCREEN_CSS},
116 {"xhtmlmp.css", IDR_UASTYLE_XHTMLMP_CSS},
117 {"viewportAndroid.css", IDR_UASTYLE_VIEWPORT_ANDROID_CSS},
118 {"InspectorOverlayPage.html", IDR_INSPECTOR_OVERLAY_PAGE_HTML},
119 {"InjectedScriptSource.js", IDR_INSPECTOR_INJECTED_SCRIPT_SOURCE_JS},
120 {"DebuggerScriptSource.js", IDR_INSPECTOR_DEBUGGER_SCRIPT_SOURCE_JS},
121 {"DocumentExecCommand.js", IDR_PRIVATE_SCRIPT_DOCUMENTEXECCOMMAND_JS},
122 {"DocumentXMLTreeViewer.css", IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_CSS},
123 {"DocumentXMLTreeViewer.js", IDR_PRIVATE_SCRIPT_DOCUMENTXMLTREEVIEWER_JS},
124 {"HTMLMarqueeElement.js", IDR_PRIVATE_SCRIPT_HTMLMARQUEEELEMENT_JS},
125 {"PluginPlaceholderElement.js",
126 IDR_PRIVATE_SCRIPT_PLUGINPLACEHOLDERELEMENT_JS},
127 {"PrivateScriptRunner.js", IDR_PRIVATE_SCRIPT_PRIVATESCRIPTRUNNER_JS},
128 #ifdef IDR_PICKER_COMMON_JS
129 {"pickerCommon.js", IDR_PICKER_COMMON_JS},
130 {"pickerCommon.css", IDR_PICKER_COMMON_CSS},
131 {"calendarPicker.js", IDR_CALENDAR_PICKER_JS},
132 {"calendarPicker.css", IDR_CALENDAR_PICKER_CSS},
133 {"pickerButton.css", IDR_PICKER_BUTTON_CSS},
134 {"suggestionPicker.js", IDR_SUGGESTION_PICKER_JS},
135 {"suggestionPicker.css", IDR_SUGGESTION_PICKER_CSS},
136 {"colorSuggestionPicker.js", IDR_COLOR_SUGGESTION_PICKER_JS},
137 {"colorSuggestionPicker.css", IDR_COLOR_SUGGESTION_PICKER_CSS}
138 #endif
141 } // namespace html_viewer
143 #endif // COMPONENTS_HTML_VIEWER_BLINK_RESOURCE_CONSTANTS_H_