Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Issue 10151025: Add scale factor tag to data packs (Closed)

Created:
8 years, 8 months ago by sail
Modified:
8 years, 7 months ago
CC:
chromium-reviews, Jói, oshima
Visibility:
Public.

Description

Add scale factor tag to data packs This CL sets the image scale factor for data packs. This will be used by the DOM UI code to look up encoded PNG data for images with a specific scale factor. BUG=114311 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134682

Patch Set 1 #

Patch Set 2 : fix build #

Total comments: 10

Patch Set 3 : address review comments #

Patch Set 4 : address review comments #

Patch Set 5 : fix build #

Patch Set 6 : fix build #

Total comments: 6

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -48 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_mac.mm View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M chrome/tools/mac_helpers/infoplist_strings_util.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/simple_resource_loader.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/test/test_content_client.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ui/base/resource/data_pack.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M ui/base/resource/data_pack.cc View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M ui/base/resource/data_pack_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 4 5 6 3 chunks +8 lines, -5 lines 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_aurax11.cc View 1 2 3 4 5 6 2 chunks +9 lines, -4 lines 0 comments Download
M ui/base/resource/resource_bundle_gtk.cc View 1 2 3 4 5 6 2 chunks +7 lines, -3 lines 0 comments Download
M ui/base/resource/resource_bundle_mac.mm View 1 2 3 4 5 6 1 chunk +12 lines, -6 lines 0 comments Download
M ui/base/resource/resource_bundle_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/base/resource/resource_bundle_win.cc View 1 2 3 4 5 6 1 chunk +12 lines, -6 lines 0 comments Download
M ui/base/resource/resource_data_dll_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/resource/resource_data_dll_win.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/resource/resource_handle.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
A ui/base/resource/resource_handle.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M ui/test/test_suite.cc View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/support/platform_support_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell_mac.mm View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
sail
Hi Robert, let me know if this seems useful.
8 years, 8 months ago (2012-04-25 19:56:32 UTC) #1
flackr
LGTM, this is exactly what I need for WebUI asset fetching.
8 years, 8 months ago (2012-04-25 20:16:07 UTC) #2
sail
On 2012/04/25 20:16:07, flackr wrote: > LGTM, this is exactly what I need for WebUI ...
8 years, 8 months ago (2012-04-25 20:17:02 UTC) #3
sail
+sky: ui OWNERS approval +jhawkins: webui OWNERS approval
8 years, 8 months ago (2012-04-25 20:17:46 UTC) #4
James Hawkins
https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc File chrome/browser/ui/webui/web_ui_browsertest.cc (right): https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc#newcode324 chrome/browser/ui/webui/web_ui_browsertest.cc:324: ResourceBundle::GetSharedInstance().AddDataPack(resources_pack_path, 1.0); This 1.0 should really be in a ...
8 years, 8 months ago (2012-04-25 20:24:36 UTC) #5
sail
On 2012/04/25 20:24:36, James Hawkins wrote: > https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc > File chrome/browser/ui/webui/web_ui_browsertest.cc (right): > > https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc#newcode324 ...
8 years, 8 months ago (2012-04-25 20:51:26 UTC) #6
James Hawkins
On 2012/04/25 20:51:26, sail wrote: > On 2012/04/25 20:24:36, James Hawkins wrote: > > > ...
8 years, 8 months ago (2012-04-25 20:56:56 UTC) #7
sky
https://chromiumcodereview.appspot.com/10151025/diff/2001/ui/base/resource/data_pack.h File ui/base/resource/data_pack.h (right): https://chromiumcodereview.appspot.com/10151025/diff/2001/ui/base/resource/data_pack.h#newcode57 ui/base/resource/data_pack.h:57: void set_scale_factor(float scale_factor) { scale_factor_ = scale_factor; } Do ...
8 years, 8 months ago (2012-04-25 21:11:42 UTC) #8
sail
https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc File chrome/browser/ui/webui/web_ui_browsertest.cc (right): https://chromiumcodereview.appspot.com/10151025/diff/2001/chrome/browser/ui/webui/web_ui_browsertest.cc#newcode324 chrome/browser/ui/webui/web_ui_browsertest.cc:324: ResourceBundle::GetSharedInstance().AddDataPack(resources_pack_path, 1.0); On 2012/04/25 20:24:36, James Hawkins wrote: > ...
8 years, 8 months ago (2012-04-25 22:18:35 UTC) #9
sky
LGTM
8 years, 8 months ago (2012-04-25 22:46:01 UTC) #10
James Hawkins
lgtm
8 years, 8 months ago (2012-04-25 22:47:32 UTC) #11
sail
webkit: darin, tkent chroem_frame: ananta,robertshield
8 years, 8 months ago (2012-04-26 00:28:38 UTC) #12
tkent
LGTM for webkit/support/
8 years, 8 months ago (2012-04-26 02:05:14 UTC) #13
Jói
Drive-by: https://chromiumcodereview.appspot.com/10151025/diff/15001/ui/base/resource/resource_handle.h File ui/base/resource/resource_handle.h (right): https://chromiumcodereview.appspot.com/10151025/diff/15001/ui/base/resource/resource_handle.h#newcode29 ui/base/resource/resource_handle.h:29: static const float kScaleFactor1x; Idea: Using percentage-based naming ...
8 years, 8 months ago (2012-04-26 11:02:05 UTC) #14
oshima
drive-by http://codereview.chromium.org/10151025/diff/15001/ui/test/test_suite.cc File ui/test/test_suite.cc (right): http://codereview.chromium.org/10151025/diff/15001/ui/test/test_suite.cc#newcode11 ui/test/test_suite.cc:11: #include "ui/base/resource/resource_handle.h" duplicate?
8 years, 8 months ago (2012-04-26 15:27:55 UTC) #15
oshima
another drive-by http://codereview.chromium.org/10151025/diff/15001/ui/base/resource/resource_handle.h File ui/base/resource/resource_handle.h (right): http://codereview.chromium.org/10151025/diff/15001/ui/base/resource/resource_handle.h#newcode30 ui/base/resource/resource_handle.h:30: static const float kScaleFactor2x; I *think* you ...
8 years, 8 months ago (2012-04-26 15:32:10 UTC) #16
jamesr
webkit/ LGTM
8 years, 8 months ago (2012-04-27 21:05:50 UTC) #17
robertshield
lgtm
8 years, 8 months ago (2012-04-27 22:05:49 UTC) #18
sail
https://chromiumcodereview.appspot.com/10151025/diff/15001/ui/base/resource/resource_handle.h File ui/base/resource/resource_handle.h (right): https://chromiumcodereview.appspot.com/10151025/diff/15001/ui/base/resource/resource_handle.h#newcode29 ui/base/resource/resource_handle.h:29: static const float kScaleFactor1x; On 2012/04/26 11:02:05, Jói wrote: ...
8 years, 7 months ago (2012-05-01 04:16:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10151025/25002
8 years, 7 months ago (2012-05-01 04:33:48 UTC) #20
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 06:11:55 UTC) #21
Change committed as 134682

Powered by Google App Engine
This is Rietveld 408576698