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

Issue 8695007: Replace TOUCH_UI condition in WebUI with dynamic flag. (Closed)

Created:
9 years, 1 month ago by Rick Byers
Modified:
9 years ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, jam, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org, bshe, flackr
Visibility:
Public.

Description

Replace TOUCH_UI condition in WebUI with dynamic flag. Touch-specific builds are being retired. Instead we want to be able to enable touch-friendly UI dynamically. For now I'm adding a --touch-optimized-ui flag which can be used to enable the touch-optimized CSS tweaks we've made to WebUI. This undoes the tweak to use the non-ChromeOS language UI for touch_ui builds. The conditional HTML for the add-language-overlay-page is non-trivial to convert to something dynamic - I'll do something in a separate changelist. Also fix a number of issues where overrides of WebUI virtuals (like RenderViewCreated) weren't properly delegating back to their base class (or were delegating to WebUI instead of the immediate base ChromeWebUI). Also removes the Touch-specific User-Agent string. BUG=105315 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112387

Patch Set 1 #

Patch Set 2 : Ready for testing #

Patch Set 3 : Fix layering issue #

Patch Set 4 : Fix WebUI override delegation #

Patch Set 5 : Remove languages tweak and fix keyboard #

Total comments: 5

Patch Set 6 : Merge with trunk and apply tweaks from flackr CR #

Total comments: 4

Patch Set 7 : Tiny tweaks based on CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -69 lines) Patch
M chrome/browser/resources/chromeos/login/screen_gaia_signin.css View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab.html View 1 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/options/language_add_language_overlay.html View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/language_add_language_overlay.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/language_options.css View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/options/language_options.js View 1 2 3 4 2 chunks +15 lines, -17 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/options/options_page.css View 1 2 3 4 5 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/resources/shared/js/cr.js View 4 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/card_slider.js View 1 1 chunk +16 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/html_dialog_ui.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/user_agent.cc View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Rick Byers
Hi, We're eliminating the TOUCH_UI build and merging it's functionality with the USE_AURA build. Erik, ...
9 years ago (2011-11-25 14:28:50 UTC) #1
darin (slow to review)
http://codereview.chromium.org/8695007/diff/9001/webkit/glue/user_agent.cc File webkit/glue/user_agent.cc (left): http://codereview.chromium.org/8695007/diff/9001/webkit/glue/user_agent.cc#oldcode90 webkit/glue/user_agent.cc:90: #if defined(TOUCH_UI) LGTM
9 years ago (2011-11-28 17:15:07 UTC) #2
Rick Byers
Rob can you please take a look?
9 years ago (2011-11-30 15:34:10 UTC) #3
flackr
LGTM with nits. http://codereview.chromium.org/8695007/diff/9001/chrome/browser/ui/webui/chrome_web_ui.cc File chrome/browser/ui/webui/chrome_web_ui.cc (right): http://codereview.chromium.org/8695007/diff/9001/chrome/browser/ui/webui/chrome_web_ui.cc#newcode47 chrome/browser/ui/webui/chrome_web_ui.cc:47: render_view_host->SetWebUIProperty("touchOptimized","true"); Add a space before "true". ...
9 years ago (2011-11-30 16:00:46 UTC) #4
Rick Byers
Thanks Rob! http://codereview.chromium.org/8695007/diff/9001/chrome/browser/ui/webui/chrome_web_ui.cc File chrome/browser/ui/webui/chrome_web_ui.cc (right): http://codereview.chromium.org/8695007/diff/9001/chrome/browser/ui/webui/chrome_web_ui.cc#newcode47 chrome/browser/ui/webui/chrome_web_ui.cc:47: render_view_host->SetWebUIProperty("touchOptimized","true"); On 2011/11/30 16:00:46, flackr wrote: > ...
9 years ago (2011-11-30 16:23:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/8695007/16001
9 years ago (2011-11-30 16:23:23 UTC) #6
commit-bot: I haz the power
Presubmit check for 8695007-16001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-11-30 16:23:33 UTC) #7
Rick Byers
Looks like I need an LGTM from estade as well. Evan, can you please review ...
9 years ago (2011-11-30 16:33:57 UTC) #8
arv (Not doing code reviews)
LGTM I apologize for not seeing this earlier. Feel free to ping me on IM ...
9 years ago (2011-11-30 17:36:05 UTC) #9
Rick Byers
On 2011/11/30 17:36:05, arv wrote: > LGTM > > I apologize for not seeing this ...
9 years ago (2011-11-30 17:52:25 UTC) #10
Evan Stade
lgtm sorry for delay. http://codereview.chromium.org/8695007/diff/16001/chrome/browser/ui/webui/ntp/new_tab_ui.cc File chrome/browser/ui/webui/ntp/new_tab_ui.cc (right): http://codereview.chromium.org/8695007/diff/16001/chrome/browser/ui/webui/ntp/new_tab_ui.cc#newcode157 chrome/browser/ui/webui/ntp/new_tab_ui.cc:157: } \n
9 years ago (2011-11-30 23:36:09 UTC) #11
Rick Byers
Forgot to publish this response http://codereview.chromium.org/8695007/diff/16001/chrome/browser/resources/options/options.js File chrome/browser/resources/options/options.js (right): http://codereview.chromium.org/8695007/diff/16001/chrome/browser/resources/options/options.js#newcode106 chrome/browser/resources/options/options.js:106: if ($('language-options-virtual-keyboard')) { On ...
9 years ago (2011-12-01 01:21:44 UTC) #12
Rick Byers
Thank Evan! http://codereview.chromium.org/8695007/diff/16001/chrome/browser/ui/webui/ntp/new_tab_ui.cc File chrome/browser/ui/webui/ntp/new_tab_ui.cc (right): http://codereview.chromium.org/8695007/diff/16001/chrome/browser/ui/webui/ntp/new_tab_ui.cc#newcode157 chrome/browser/ui/webui/ntp/new_tab_ui.cc:157: } On 2011/11/30 23:36:09, Evan Stade wrote: ...
9 years ago (2011-12-01 01:29:24 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rbyers@chromium.org/8695007/25001
9 years ago (2011-12-01 01:29:35 UTC) #14
commit-bot: I haz the power
9 years ago (2011-12-01 03:03:47 UTC) #15
Change committed as 112387

Powered by Google App Engine
This is Rietveld 408576698