Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add resources files for browser toolbar button.

  • Loading branch information...
commit 901352c9135ac24caf7d0c16bba3e87226a51b26 1 parent b1e80c2
@zcbenz zcbenz authored
Showing with 51 additions and 28 deletions.
  1. +2 −1  nw.gypi
  2. +1 −1  src/browser/shell_devtools_delegate.cc
  3. +0 −26 src/nw_resources.grd
  4. BIN  src/resources/default_100_percent/browser_back_disabled.png
  5. BIN  src/resources/default_100_percent/browser_back_hover.png
  6. BIN  src/resources/default_100_percent/browser_back_normal.png
  7. BIN  src/resources/default_100_percent/browser_back_pressed.png
  8. BIN  src/resources/default_100_percent/browser_forward_disabled.png
  9. BIN  src/resources/default_100_percent/browser_forward_hover.png
  10. BIN  src/resources/default_100_percent/browser_forward_normal.png
  11. BIN  src/resources/default_100_percent/browser_forward_pressed.png
  12. BIN  src/resources/default_100_percent/browser_reload_disabled.png
  13. BIN  src/resources/default_100_percent/browser_reload_hover.png
  14. BIN  src/resources/default_100_percent/browser_reload_normal.png
  15. BIN  src/resources/default_100_percent/browser_reload_pressed.png
  16. BIN  src/resources/default_100_percent/browser_stop_disabled.png
  17. BIN  src/resources/default_100_percent/browser_stop_hover.png
  18. BIN  src/resources/default_100_percent/browser_stop_normal.png
  19. BIN  src/resources/default_100_percent/browser_stop_pressed.png
  20. BIN  src/resources/default_100_percent/browser_tools_hover.png
  21. BIN  src/resources/default_100_percent/browser_tools_normal.png
  22. BIN  src/resources/default_100_percent/browser_tools_pressed.png
  23. +48 −0 src/resources/nw_resources.grd
  24. 0  src/resources/{ → pages}/nw_blank.html
  25. 0  src/resources/{ → pages}/nw_version.html
  26. 0  src/resources/{ → pages}/shell_devtools_discovery_page.html
View
3  nw.gypi
@@ -45,6 +45,7 @@
],
'sources': [
'<(DEPTH)/chrome/browser/platform_util_common_linux.cc',
+ '<(DEPTH)/chrome/browser/platform_util_linux.cc',
'<(DEPTH)/chrome/browser/platform_util_mac.mm',
'<(DEPTH)/chrome/browser/platform_util_win.cc',
'<(DEPTH)/chrome/browser/platform_util.h',
@@ -241,7 +242,7 @@
{
'action_name': 'nw_resources',
'variables': {
- 'grit_grd_file': 'src/nw_resources.grd',
+ 'grit_grd_file': 'src/resources/nw_resources.grd',
},
'includes': [ '../../build/grit_action.gypi' ],
},
View
2  src/browser/shell_devtools_delegate.cc
@@ -46,7 +46,7 @@ void ShellDevToolsDelegate::Stop() {
std::string ShellDevToolsDelegate::GetDiscoveryPageHTML() {
return ResourceBundle::GetSharedInstance().GetRawDataResource(
- IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE,
+ IDR_NW_DEVTOOLS_DISCOVERY_PAGE,
ui::SCALE_FACTOR_NONE).as_string();
}
View
26 src/nw_resources.grd
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<grit latest_public_release="0" current_release="1">
- <outputs>
- <output filename="grit/nw_resources.h" type="rc_header">
- <emit emit_type='prepend'></emit>
- </output>
- <output filename="nw_resources.pak" type="data_package" />
- <output filename="nw_resources.rc" type="rc_all" />
- </outputs>
- <translations />
- <release seq="1">
- <includes>
- <include name="IDR_NW_VERSION" file="resources/nw_version.html" type="BINDATA" />
- <include name="IDR_NW_BLANK" file="resources/nw_blank.html" type="BINDATA" />
- <include name="IDR_NW_API_DISPATCHER_BINDINGS_JS" file="api/dispatcher_bindings.js" type="BINDATA" />
- <include name="IDR_NW_API_BASE_JS" file="api/base/base.js" type="BINDATA" />
- <include name="IDR_NW_API_MENUITEM_JS" file="api/menuitem/menuitem.js" type="BINDATA" />
- <include name="IDR_NW_API_MENU_JS" file="api/menu/menu.js" type="BINDATA" />
- <include name="IDR_NW_API_TRAY_JS" file="api/tray/tray.js" type="BINDATA" />
- <include name="IDR_NW_API_CLIPBOARD_JS" file="api/clipboard/clipboard.js" type="BINDATA" />
- <include name="IDR_NW_API_WINDOW_JS" file="api/window/window.js" type="BINDATA" />
- <include name="IDR_NW_API_SHELL_JS" file="api/shell/shell.js" type="BINDATA" />
- <include name="IDR_CONTENT_SHELL_DEVTOOLS_DISCOVERY_PAGE" file="resources/shell_devtools_discovery_page.html" type="BINDATA" />
- </includes>
- </release>
-</grit>
View
BIN  src/resources/default_100_percent/browser_back_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_back_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_back_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_back_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_forward_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_forward_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_forward_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_forward_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_reload_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_reload_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_reload_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_reload_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_stop_disabled.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_stop_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_stop_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_stop_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_tools_hover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_tools_normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  src/resources/default_100_percent/browser_tools_pressed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
48 src/resources/nw_resources.grd
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grit latest_public_release="0" current_release="1">
+ <outputs>
+ <output filename="grit/nw_resources.h" type="rc_header" context="default_100_percent" >
+ <emit emit_type='prepend'></emit>
+ </output>
+ <output filename="grit/nw_resources_map.cc" type="resource_map_source" context="default_100_percent" />
+ <output filename="grit/nw_resources_map.h" type="resource_map_header" context="default_100_percent" />
+ <output filename="nw_resources.pak" type="data_package" context="default_100_percent" />
+ </outputs>
+ <translations />
+ <release seq="1">
+ <structures fallback_to_low_resolution="true">
+ <structure type="chrome_scaled_image" name="IDR_NW_BACK" file="browser_back_normal.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_BACK_D" file="browser_back_disabled.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_BACK_H" file="browser_back_hover.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_BACK_P" file="browser_back_pressed.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_FORWARD" file="browser_forward_normal.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_FORWARD_D" file="browser_forward_disabled.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_FORWARD_H" file="browser_forward_hover.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_FORWARD_P" file="browser_forward_pressed.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_STOP" file="browser_stop_normal.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_STOP_D" file="browser_stop_disabled.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_STOP_H" file="browser_stop_hover.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_STOP_P" file="browser_stop_pressed.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_RELOAD" file="browser_reload_normal.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_RELOAD_D" file="browser_reload_disabled.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_RELOAD_H" file="browser_reload_hover.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_RELOAD_P" file="browser_reload_pressed.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_TOOLS" file="browser_tools_normal.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_TOOLS_H" file="browser_tools_hover.png" />
+ <structure type="chrome_scaled_image" name="IDR_NW_TOOLS_P" file="browser_tools_pressed.png" />
+ </structures>
+ <includes>
+ <include name="IDR_NW_VERSION" file="pages/nw_version.html" type="BINDATA" />
+ <include name="IDR_NW_BLANK" file="pages/nw_blank.html" type="BINDATA" />
+ <include name="IDR_NW_DEVTOOLS_DISCOVERY_PAGE" file="pages/shell_devtools_discovery_page.html" type="BINDATA" />
+ <include name="IDR_NW_API_DISPATCHER_BINDINGS_JS" file="../api/dispatcher_bindings.js" type="BINDATA" />
+ <include name="IDR_NW_API_BASE_JS" file="../api/base/base.js" type="BINDATA" />
+ <include name="IDR_NW_API_MENUITEM_JS" file="../api/menuitem/menuitem.js" type="BINDATA" />
+ <include name="IDR_NW_API_MENU_JS" file="../api/menu/menu.js" type="BINDATA" />
+ <include name="IDR_NW_API_TRAY_JS" file="../api/tray/tray.js" type="BINDATA" />
+ <include name="IDR_NW_API_CLIPBOARD_JS" file="../api/clipboard/clipboard.js" type="BINDATA" />
+ <include name="IDR_NW_API_WINDOW_JS" file="../api/window/window.js" type="BINDATA" />
+ <include name="IDR_NW_API_SHELL_JS" file="../api/shell/shell.js" type="BINDATA" />
+ </includes>
+ </release>
+</grit>
View
0  src/resources/nw_blank.html → src/resources/pages/nw_blank.html
File renamed without changes
View
0  src/resources/nw_version.html → src/resources/pages/nw_version.html
File renamed without changes
View
0  src/resources/shell_devtools_discovery_page.html → ...esources/pages/shell_devtools_discovery_page.html
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.