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

Issue 25735003: Add text autosizing override in the inspector. (Closed)

Created:
7 years, 2 months ago by pdr.
Modified:
7 years, 2 months ago
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org
Visibility:
Public.

Description

Add text autosizing override in the inspector. This patch adds a checkbox to the inspector for enabling text autosizing. Screenshot: http://pr.gg/inspectortextautosizing.png This patch has two components: 1) Changes in the inspector that add the new checkbox on the Overrides page. This checkbox has been wired up to call two methods on InspectorPageAgent (setTextAutosizingOverride and clearTextAutosizingOverride). I explored just having a single checkbox but I think that will be confusing for users. 2) Blink's Settings have been changed to support overriding the text autosizing enabled boolean. A ternary enum has been added to track whether the text autosizing feature is not overridden, overridden as true, or overridden as false. Due to Blink's style guide, the m_textAutosizingOverride variable must be declared as unsigned. ** Do not submit yet** This is blocked on a text autosizing bug but is otherwise up for review. BUG=302005

Patch Set 1 #

Patch Set 2 : Implement OverridesView::_enableTextAutosizingChanged #

Total comments: 1

Patch Set 3 : Fix typeo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -3 lines) Patch
M Source/core/inspector/InspectorOverlay.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorOverlayPage.html View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InspectorPageAgent.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorPageAgent.cpp View 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/page/Settings.h View 4 chunks +10 lines, -1 line 0 comments Download
M Source/core/page/Settings.cpp View 3 chunks +25 lines, -0 lines 0 comments Download
M Source/devtools/front_end/OverridesSupport.js View 3 chunks +13 lines, -0 lines 0 comments Download
M Source/devtools/front_end/OverridesView.js View 1 2 chunks +19 lines, -0 lines 0 comments Download
M Source/devtools/front_end/Settings.js View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
pdr.
pfeldman, dgozman, would you be up for an initial review of this?
7 years, 2 months ago (2013-10-04 02:28:28 UTC) #1
caseq
https://codereview.chromium.org/25735003/diff/4001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://codereview.chromium.org/25735003/diff/4001/Source/devtools/protocol.json#newcode451 Source/devtools/protocol.json:451: { "name": "enabled", "type": "boolean", "description": "True for enabling ...
7 years, 2 months ago (2013-10-04 02:46:33 UTC) #2
pdr.
On 2013/10/04 02:46:33, caseq wrote: > Nit: you probably meant "True for enabling the text ...
7 years, 2 months ago (2013-10-04 02:52:17 UTC) #3
dgozman
Thank you for doing this, Philip! My plan was to wire this to Device Metrics ...
7 years, 2 months ago (2013-10-04 06:39:57 UTC) #4
pdr.
On 2013/10/04 06:39:57, dgozman wrote: > Thank you for doing this, Philip! > > My ...
7 years, 2 months ago (2013-10-04 21:34:01 UTC) #5
dgozman
On 2013/10/04 21:34:01, pdr wrote: > On 2013/10/04 06:39:57, dgozman wrote: > > Thank you ...
7 years, 2 months ago (2013-10-05 21:09:50 UTC) #6
pdr.
On 2013/10/05 21:09:50, dgozman wrote: Thanks for this info. https://codereview.chromium.org/23187005 pretty much changes everything, so ...
7 years, 2 months ago (2013-10-07 21:13:16 UTC) #7
pdr.
On 2013/10/07 21:13:16, pdr wrote: > On 2013/10/05 21:09:50, dgozman wrote: > > Thanks for ...
7 years, 2 months ago (2013-10-14 04:52:42 UTC) #8
pfeldman
7 years, 2 months ago (2013-10-17 17:09:54 UTC) #9
> This patch has been superseded by https://codereview.chromium.org/26929003

Close it?

Powered by Google App Engine
This is Rietveld 408576698