summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-04 18:12:15 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-04 18:12:15 +0000
commitd347cff66b930ecc034d8a7688674bf517cd5c06 (patch)
tree609659ed575eb441ea6d78d0964cd7cdb750c789
parent7cb77fff260e91e24a8bc53159eaa78e2e907eeb (diff)
downloadchromium_src-d347cff66b930ecc034d8a7688674bf517cd5c06.zip
chromium_src-d347cff66b930ecc034d8a7688674bf517cd5c06.tar.gz
chromium_src-d347cff66b930ecc034d8a7688674bf517cd5c06.tar.bz2
HiDPI assets for product_logo_16 / _32
Use the new logo on about:chrome BUG=134372,135179 TEST=none Review URL: https://chromiumcodereview.appspot.com/10692069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145475 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/theme/chromium/product_logo_16.pngbin725 -> 0 bytes
-rw-r--r--chrome/app/theme/chromium/product_logo_26.pngbin1614 -> 0 bytes
-rw-r--r--chrome/app/theme/chromium/product_logo_32.pngbin1880 -> 0 bytes
-rw-r--r--chrome/app/theme/theme_resources.grd6
-rw-r--r--chrome/app/theme/theme_resources_standard.grd6
-rw-r--r--chrome/browser/browser_resources.grd4
-rw-r--r--chrome/browser/first_run/try_chrome_dialog_view.cc1
-rw-r--r--chrome/browser/resources/chromeos/login/oobe.css4
-rw-r--r--chrome/browser/resources/help/help.css5
-rw-r--r--chrome/browser/resources/help/help.html3
-rw-r--r--chrome/browser/tab_contents/spelling_bubble_model.cc2
-rw-r--r--chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm2
-rw-r--r--chrome/browser/ui/cocoa/keystone_infobar_delegate.mm2
-rw-r--r--chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc2
-rw-r--r--chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc2
-rw-r--r--chrome/browser/ui/views/tab_icon_view.cc1
-rw-r--r--chrome/browser/web_applications/web_app_mac_unittest.mm2
-rw-r--r--chrome/chrome_dll.gypi2
-rw-r--r--chrome/chrome_installer.gypi4
19 files changed, 29 insertions, 19 deletions
diff --git a/chrome/app/theme/chromium/product_logo_16.png b/chrome/app/theme/chromium/product_logo_16.png
deleted file mode 100644
index c9f8c26..0000000
--- a/chrome/app/theme/chromium/product_logo_16.png
+++ /dev/null
Binary files differ
diff --git a/chrome/app/theme/chromium/product_logo_26.png b/chrome/app/theme/chromium/product_logo_26.png
deleted file mode 100644
index 64c5c0c..0000000
--- a/chrome/app/theme/chromium/product_logo_26.png
+++ /dev/null
Binary files differ
diff --git a/chrome/app/theme/chromium/product_logo_32.png b/chrome/app/theme/chromium/product_logo_32.png
deleted file mode 100644
index 8e531c8..0000000
--- a/chrome/app/theme/chromium/product_logo_32.png
+++ /dev/null
Binary files differ
diff --git a/chrome/app/theme/theme_resources.grd b/chrome/app/theme/theme_resources.grd
index 0ac925c..8d61140 100644
--- a/chrome/app/theme/theme_resources.grd
+++ b/chrome/app/theme/theme_resources.grd
@@ -130,16 +130,10 @@
<include name="IDR_PRERENDER_FAIL_ICON" file="default_100_percent/prerender_fail_icon.png" type="BINDATA"/>
<include name="IDR_PRERENDER_SUCCEED_ICON" file="default_100_percent/prerender_succeed_icon.png" type="BINDATA"/>
<if expr="pp_ifdef('_google_chrome')">
- <include name="IDR_PRODUCT_LOGO_16" file="google_chrome/product_logo_16.png" type="BINDATA" />
- <include name="IDR_PRODUCT_LOGO_26" file="google_chrome/product_logo_26.png" type="BINDATA" />
- <include name="IDR_PRODUCT_LOGO_32" file="google_chrome/product_logo_32.png" type="BINDATA" />
<include name="IDR_PRODUCT_LOGO_64" file="google_chrome/product_logo_64.png" type="BINDATA" />
<include name="IDR_PRODUCT_LOGO_128" file="google_chrome/product_logo_128.png" type="BINDATA" />
</if>
<if expr="not pp_ifdef('_google_chrome')">
- <include name="IDR_PRODUCT_LOGO_16" file="chromium/product_logo_16.png" type="BINDATA" />
- <include name="IDR_PRODUCT_LOGO_26" file="chromium/product_logo_26.png" type="BINDATA" />
- <include name="IDR_PRODUCT_LOGO_32" file="chromium/product_logo_32.png" type="BINDATA" />
<include name="IDR_PRODUCT_LOGO_64" file="chromium/product_logo_64.png" type="BINDATA" />
<include name="IDR_PRODUCT_LOGO_128" file="chromium/product_logo_128.png" type="BINDATA" />
</if>
diff --git a/chrome/app/theme/theme_resources_standard.grd b/chrome/app/theme/theme_resources_standard.grd
index 957265a..1f73ffa 100644
--- a/chrome/app/theme/theme_resources_standard.grd
+++ b/chrome/app/theme/theme_resources_standard.grd
@@ -278,10 +278,16 @@
<if expr="pp_ifdef('_google_chrome')">
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO" file="google_chrome/product_logo.png" />
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_WHITE" file="google_chrome/product_logo_white.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_16" file="google_chrome/product_logo_16.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_26" file="google_chrome/product_logo_26.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_32" file="google_chrome/product_logo_32.png" />
</if>
<if expr="not pp_ifdef('_google_chrome')">
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO" file="chromium/product_logo.png" />
<structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_WHITE" file="chromium/product_logo_white.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_16" file="chromium/product_logo_16.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_26" file="chromium/product_logo_26.png" />
+ <structure type="chrome_scaled_image" name="IDR_PRODUCT_LOGO_32" file="chromium/product_logo_32.png" />
</if>
<if expr="not is_macosx">
<structure type="chrome_scaled_image" name="IDR_PROFILE_AVATAR_0" file="profile_avatar_generic.png" />
diff --git a/chrome/browser/browser_resources.grd b/chrome/browser/browser_resources.grd
index bdaba75..a6e614f 100644
--- a/chrome/browser/browser_resources.grd
+++ b/chrome/browser/browser_resources.grd
@@ -18,6 +18,8 @@
<if expr="is_win">
<structure name="IDR_ABOUT_MEMORY_HTML" file="resources\about_memory.html" flattenhtml="true" type="chrome_html" />
</if>
+ <structure name="IDR_HELP_CSS" file="resources\help\help.css" flattenhtml="true" type="chrome_html" />
+ <structure name="IDR_HELP_HTML" file="resources\help\help.html" flattenhtml="true" type="chrome_html" />
<structure name="IDR_EXTENSIONS_HTML" file="resources\extensions\extensions.html" flattenhtml="true" type="chrome_html" />
<structure name="IDR_NEW_TAB_4_HTML" file="resources\ntp4\new_tab.html" flattenhtml="true" type="chrome_html" />
<structure name="IDR_NEW_TAB_4_THEME_CSS" file="resources\ntp4\new_tab_theme.css" flattenhtml="true" type="chrome_html" />
@@ -73,8 +75,6 @@
<include name="IDR_FLAGS_HTML_WARNING" file="resources\flags_warning.html" flattenhtml="true" type="BINDATA" />
<include name="IDR_FLAGS_JS" file="resources\flags.js" type="BINDATA" />
<include name="IDR_GAIA_LOGIN_HTML" file="sync\resources\gaia_login.html" flattenhtml="true" type="BINDATA" />
- <include name="IDR_HELP_CSS" file="resources\help\help.css" flattenhtml="true" type="BINDATA" />
- <include name="IDR_HELP_HTML" file="resources\help\help.html" flattenhtml="true" type="BINDATA" />
<include name="IDR_HELP_JS" file="resources\help\help.js" flattenhtml="true" type="BINDATA" />
<include name="IDR_GPU_BLACKLIST" file="resources\software_rendering_list.json" type="BINDATA" />
<include name="IDR_GPU_INTERNALS_HTML" file="resources\gpu_internals\gpu_internals.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
diff --git a/chrome/browser/first_run/try_chrome_dialog_view.cc b/chrome/browser/first_run/try_chrome_dialog_view.cc
index 082d7d0..8cfc008 100644
--- a/chrome/browser/first_run/try_chrome_dialog_view.cc
+++ b/chrome/browser/first_run/try_chrome_dialog_view.cc
@@ -14,6 +14,7 @@
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "grit/ui_resources_standard.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
diff --git a/chrome/browser/resources/chromeos/login/oobe.css b/chrome/browser/resources/chromeos/login/oobe.css
index ca5bac3..fe535c3 100644
--- a/chrome/browser/resources/chromeos/login/oobe.css
+++ b/chrome/browser/resources/chromeos/login/oobe.css
@@ -130,9 +130,11 @@ hr.bottom {
#header {
-webkit-padding-start: 45px;
+ /* TODO(thakis): Move oobe.html to a structure element, then the
+ * image set should be inserted automatically. */
background-image: -webkit-image-set(
url('chrome://theme/IDR_PRODUCT_LOGO_32') 1x,
- url('chrome://theme/IDR_PRODUCT_LOGO_64') 2x);
+ url('chrome://theme/IDR_PRODUCT_LOGO_32@2x') 2x);
background-position: left center;
background-repeat: no-repeat;
background-size: 32px;
diff --git a/chrome/browser/resources/help/help.css b/chrome/browser/resources/help/help.css
index ca482da..0e04e24 100644
--- a/chrome/browser/resources/help/help.css
+++ b/chrome/browser/resources/help/help.css
@@ -13,6 +13,11 @@ body {
margin-top: 10px;
}
+#help-product-logo {
+ /* TODO: Remove once http://crbug.com/135179 is fixed */
+ content: url('chrome://theme/IDR_PRODUCT_LOGO_32');
+}
+
#product-description {
-webkit-margin-start: 10px;
}
diff --git a/chrome/browser/resources/help/help.html b/chrome/browser/resources/help/help.html
index 762f59a..520589c 100644
--- a/chrome/browser/resources/help/help.html
+++ b/chrome/browser/resources/help/help.html
@@ -18,7 +18,8 @@
<h1 i18n-content="aboutTitle"></h1>
</header>
<div id="about-container">
- <img src="chrome://theme/IDR_PRODUCT_LOGO_32">
+ <!-- TODO: Revert back to src= once http://crbug.com/135179 is fixed -->
+ <img id="help-product-logo">
<div id="product-description">
<h2 i18n-content="aboutProductTitle"></h2>
<span i18n-content="aboutProductDescription"></span>
diff --git a/chrome/browser/tab_contents/spelling_bubble_model.cc b/chrome/browser/tab_contents/spelling_bubble_model.cc
index 7760d5b..5d96021 100644
--- a/chrome/browser/tab_contents/spelling_bubble_model.cc
+++ b/chrome/browser/tab_contents/spelling_bubble_model.cc
@@ -11,7 +11,7 @@
#include "chrome/common/url_constants.h"
#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image.h"
diff --git a/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm b/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
index 5e64744..23202dc 100644
--- a/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/confirm_bubble_controller_unittest.mm
@@ -11,7 +11,7 @@
#import "chrome/browser/ui/cocoa/confirm_bubble_cocoa.h"
#import "chrome/browser/ui/cocoa/confirm_bubble_controller.h"
#include "chrome/browser/ui/confirm_bubble_model.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#import "testing/gtest_mac.h"
#include "ui/base/resource/resource_bundle.h"
#import "ui/gfx/point.h"
diff --git a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
index 7e6f1dc..3946685 100644
--- a/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
+++ b/chrome/browser/ui/cocoa/keystone_infobar_delegate.mm
@@ -27,7 +27,7 @@
#include "content/public/browser/navigation_details.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
diff --git a/chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc b/chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc
index d225add..68efb3c 100644
--- a/chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc
+++ b/chrome/browser/ui/gtk/confirm_bubble_gtk_browsertest.cc
@@ -12,7 +12,7 @@
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/confirm_bubble_model.h"
#include "chrome/test/base/in_process_browser_test.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "ui/base/resource/resource_bundle.h"
namespace {
diff --git a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc
index 342e828..29e52c92 100644
--- a/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/views/ash/launcher/chrome_launcher_controller.cc
@@ -40,7 +40,7 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/web_contents.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "ui/aura/client/activation_client.h"
#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 7f0e6a1..edc3e55 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/app/chrome_command_ids.h"
#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "grit/ui_resources.h"
#include "grit/ui_resources_standard.h"
#include "ui/base/resource/resource_bundle.h"
diff --git a/chrome/browser/web_applications/web_app_mac_unittest.mm b/chrome/browser/web_applications/web_app_mac_unittest.mm
index 73ca8a7..ef73be5 100644
--- a/chrome/browser/web_applications/web_app_mac_unittest.mm
+++ b/chrome/browser/web_applications/web_app_mac_unittest.mm
@@ -13,7 +13,7 @@
#include "base/sys_string_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/mac/app_mode_common.h"
-#include "grit/theme_resources.h"
+#include "grit/theme_resources_standard.h"
#include "third_party/skia/include/core/SKBitmap.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
diff --git a/chrome/chrome_dll.gypi b/chrome/chrome_dll.gypi
index 38e1b42..69c2171 100644
--- a/chrome/chrome_dll.gypi
+++ b/chrome/chrome_dll.gypi
@@ -228,7 +228,7 @@
# resource bundle because that's the interface that
# Authorization Services uses. Also, Authorization Services
# can't deal with .icns files.
- 'app/theme/<(theme_dir_name)/product_logo_32.png',
+ 'app/theme/default_100_percent/<(theme_dir_name)/product_logo_32.png',
'app/framework-Info.plist',
'app/nibs/AboutIPC.xib',
diff --git a/chrome/chrome_installer.gypi b/chrome/chrome_installer.gypi
index 4e29039..39c94fd 100644
--- a/chrome/chrome_installer.gypi
+++ b/chrome/chrome_installer.gypi
@@ -581,10 +581,10 @@
{
'destination': '<(PRODUCT_DIR)/installer/theme/',
'files': [
- '<(branding_dir)/product_logo_16.png',
+ 'default_100_percent/<(branding_dir)/product_logo_16.png',
'<(branding_dir)/product_logo_22.png',
'<(branding_dir)/product_logo_24.png',
- '<(branding_dir)/product_logo_32.png',
+ 'default_100_percent/<(branding_dir)/product_logo_32.png',
'<(branding_dir)/product_logo_48.png',
'<(branding_dir)/product_logo_64.png',
'<(branding_dir)/product_logo_128.png',