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

Issue 8889041: first cut at uber page (Closed)

Created:
9 years ago by Evan Stade
Modified:
9 years ago
CC:
chromium-reviews, asanka, jam, Randy Smith (Not in Mondays), dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, arv (Not doing code reviews), darin-cc_chromium.org
Visibility:
Public.

Description

first cut at uber page the subpages are iframes. On the C++ side, the uber WebUI keeps a collection of subpage WebUIs and proxies function calls to them. Calls into JS are directed to the correct iframe by setting a frame name. The fact it's in an iframe is almost completely transparent to the options page (both from the C++ and JS side); you'll notice there are no changes to any options files.* *exception: temporary command line changes BUG=100885 TEST=chrome://uber should have an iframe with chrome://settings in it (fully functional) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114152

Patch Set 1 #

Patch Set 2 : total different approach #

Total comments: 22

Patch Set 3 : cleanup #

Total comments: 6

Patch Set 4 : final couple nits #

Patch Set 5 : un-add virtuals #

Patch Set 6 : mac compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -11 lines) Patch
M chrome/browser/browser_resources.grd View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/language_options.js View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/options/personal_options.js View 1 4 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/resources/uber/uber.css View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/browser/resources/uber/uber.html View 1 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/resources/uber/uber.js View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_factory.cc View 3 chunks +5 lines, -2 lines 0 comments Download
A chrome/browser/ui/webui/uber/uber_ui.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/uber/uber_ui.cc View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/webui/web_ui.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/webui/web_ui.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/web_ui_bindings.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Evan Stade
http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/options/personal_options.js File chrome/browser/resources/options/personal_options.js (right): http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/options/personal_options.js#newcode121 chrome/browser/resources/options/personal_options.js:121: if (cr.commandLine && cr.commandLine.options['--bwsi']) { I'm not sure what ...
9 years ago (2011-12-09 04:11:32 UTC) #1
arv (Not doing code reviews)
http://codereview.chromium.org/8889041/diff/2001/chrome/browser/ui/webui/uber/uber_ui.cc File chrome/browser/ui/webui/uber/uber_ui.cc (right): http://codereview.chromium.org/8889041/diff/2001/chrome/browser/ui/webui/uber/uber_ui.cc#newcode35 chrome/browser/ui/webui/uber/uber_ui.cc:35: options->set_frame_xpath("//iframe[@id='settings']"); Why xpath and not CSS selector? http://codereview.chromium.org/8889041/diff/2001/chrome/common/url_constants.cc File ...
9 years ago (2011-12-09 06:47:43 UTC) #2
Evan Stade
On 2011/12/09 06:47:43, arv wrote: > http://codereview.chromium.org/8889041/diff/2001/chrome/browser/ui/webui/uber/uber_ui.cc > File chrome/browser/ui/webui/uber/uber_ui.cc (right): > > http://codereview.chromium.org/8889041/diff/2001/chrome/browser/ui/webui/uber/uber_ui.cc#newcode35 > ...
9 years ago (2011-12-09 20:19:38 UTC) #3
James Hawkins
http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html File chrome/browser/resources/uber/uber.html (right): http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html#newcode9 chrome/browser/resources/uber/uber.html:9: <script src="chrome://uber/uber.js"></script> I'm not sure we should have a ...
9 years ago (2011-12-10 03:03:13 UTC) #4
Evan Stade
http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html File chrome/browser/resources/uber/uber.html (right): http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html#newcode9 chrome/browser/resources/uber/uber.html:9: <script src="chrome://uber/uber.js"></script> On 2011/12/10 03:03:13, James Hawkins wrote: > ...
9 years ago (2011-12-10 03:32:31 UTC) #5
James Hawkins
On 2011/12/10 03:32:31, Evan Stade wrote: > http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html > File chrome/browser/resources/uber/uber.html (right): > > http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.html#newcode9 ...
9 years ago (2011-12-10 04:12:32 UTC) #6
Dan Beam
> I have no problem changing from "uber" to something that is equally unconfusing. drive-by ...
9 years ago (2011-12-10 06:24:12 UTC) #7
Evan Stade
On 2011/12/10 04:12:32, James Hawkins wrote: > On 2011/12/10 03:32:31, Evan Stade wrote: > > ...
9 years ago (2011-12-12 19:32:32 UTC) #8
James Hawkins
On 2011/12/12 19:32:32, Evan Stade wrote: > On 2011/12/10 04:12:32, James Hawkins wrote: > > ...
9 years ago (2011-12-12 20:32:40 UTC) #9
Evan Stade
http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.js File chrome/browser/resources/uber/uber.js (right): http://codereview.chromium.org/8889041/diff/2001/chrome/browser/resources/uber/uber.js#newcode6 chrome/browser/resources/uber/uber.js:6: console.log('hello world'); On 2011/12/10 03:03:13, James Hawkins wrote: > ...
9 years ago (2011-12-13 00:15:27 UTC) #10
James Hawkins
LGTM with two nits and a question. http://codereview.chromium.org/8889041/diff/11001/chrome/browser/resources/uber/uber.css File chrome/browser/resources/uber/uber.css (right): http://codereview.chromium.org/8889041/diff/11001/chrome/browser/resources/uber/uber.css#newcode6 chrome/browser/resources/uber/uber.css:6: border: 1px ...
9 years ago (2011-12-13 00:22:14 UTC) #11
Evan Stade
http://codereview.chromium.org/8889041/diff/11001/chrome/browser/resources/uber/uber.css File chrome/browser/resources/uber/uber.css (right): http://codereview.chromium.org/8889041/diff/11001/chrome/browser/resources/uber/uber.css#newcode6 chrome/browser/resources/uber/uber.css:6: border: 1px solid red; On 2011/12/13 00:22:15, James Hawkins ...
9 years ago (2011-12-13 01:00:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/8889041/15001
9 years ago (2011-12-13 01:01:06 UTC) #13
commit-bot: I haz the power
Presubmit check for 8889041-15001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-13 01:01:18 UTC) #14
Evan Stade
+sky for content/ review
9 years ago (2011-12-13 01:08:30 UTC) #15
sky
LGTM
9 years ago (2011-12-13 01:20:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/estade@chromium.org/8889041/9003
9 years ago (2011-12-13 01:24:13 UTC) #17
commit-bot: I haz the power
9 years ago (2011-12-13 01:24:24 UTC) #18
Presubmit check for 8889041-9003 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit ERRORS **
Missing LGTM from an OWNER for: content/renderer/web_ui_bindings.cc

Presubmit checks took 2.6s to calculate.

Powered by Google App Engine
This is Rietveld 408576698