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

Issue 10823067: Add a function to layout.h for getting ScaleFactor of the native view. (Closed)

Created:
8 years, 4 months ago by mazda
Modified:
8 years, 4 months ago
Reviewers:
Nico, sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, oshima, Nico
Visibility:
Public.

Description

Add a function to layout.h for getting ScaleFactor of the native view. BUG=125043 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149775

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : Move the function to ui/base/layout.h #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 5

Patch Set 8 : address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -46 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 3 chunks +2 lines, -15 lines 0 comments Download
M ui/base/layout.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/layout.cc View 1 2 3 4 5 6 3 chunks +15 lines, -31 lines 0 comments Download
A ui/base/layout_mac.mm View 1 2 3 4 5 6 7 1 chunk +67 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
mazda
Hi Scott, Does it make sense to add this function to Screen? I'd like to ...
8 years, 4 months ago (2012-07-30 18:31:35 UTC) #1
sky
I think this makes more sense in ui/base/layout.h. Also, shouldn't it return a ScaleFactor?
8 years, 4 months ago (2012-08-01 00:15:27 UTC) #2
mazda
Thank you for your comments. I moved the function to ui/base/layout.h and changed it to ...
8 years, 4 months ago (2012-08-01 03:47:43 UTC) #3
mazda
ping?
8 years, 4 months ago (2012-08-02 19:37:55 UTC) #4
sky
I'm not familiar enough with the mac side to say if your changes to layout_mac.mm ...
8 years, 4 months ago (2012-08-02 21:10:14 UTC) #5
Nico
mac lgtm
8 years, 4 months ago (2012-08-02 21:24:24 UTC) #6
Nico
wait http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode110 content/browser/renderer_host/render_widget_host_view_mac.mm:110: return ui::GetScaleFactorScale(ui::GetScaleFactorForNativeView(view)); doesn't GetScaleFactorForNativeView() return a scale already? ...
8 years, 4 months ago (2012-08-02 21:26:52 UTC) #7
mazda
Thank you for the comments. http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode110 content/browser/renderer_host/render_widget_host_view_mac.mm:110: return ui::GetScaleFactorScale(ui::GetScaleFactorForNativeView(view)); On 2012/08/02 ...
8 years, 4 months ago (2012-08-02 22:42:24 UTC) #8
Nico
http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/10823067/diff/13003/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode110 content/browser/renderer_host/render_widget_host_view_mac.mm:110: return ui::GetScaleFactorScale(ui::GetScaleFactorForNativeView(view)); On 2012/08/02 22:42:24, mazda wrote: > On ...
8 years, 4 months ago (2012-08-02 22:43:16 UTC) #9
mazda
sky: Could you approve the CL for ui/ if there's no problem?
8 years, 4 months ago (2012-08-02 23:32:10 UTC) #10
sky
LGTM
8 years, 4 months ago (2012-08-02 23:38:37 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/10823067/4008
8 years, 4 months ago (2012-08-02 23:58:18 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 01:35:57 UTC) #13
Change committed as 149775

Powered by Google App Engine
This is Rietveld 408576698