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 9188056: Start splitting out WebUI into an implementation class and an interface that each page implements... (Closed)

Created:
8 years, 11 months ago by jam
Modified:
8 years, 11 months ago
Reviewers:
Evan Stade
CC:
chromium-reviews, asanka, vrk (LEFT CHROMIUM), nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, mihaip+watch_chromium.org, ajwong+watch_chromium.org, tbarzic+watch_chromium.org, acolwell+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, annacc+watch_chromium.org, ihf+watch_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Randy Smith (Not in Mondays), dpranke-watch+content_chromium.org, scherkus (not reviewing), hclam+watch_chromium.org, achuith+watch_chromium.org, Aaron Boodman, eroman, estade+watch_chromium.org, mmenke
Visibility:
Public.

Description

Start splitting out WebUI into an implementation class and an interface that each page implements. This first patch moves the virtual functions in WebUI that were overridden by pages into a separate interface, content::WebUIController. BUG=98716 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117645

Patch Set 1 : '' #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -189 lines) Patch
M chrome/browser/extensions/extension_web_ui.h View 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_web_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/about_page/about_page_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/about_page/about_page_ui.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/about_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/bookmarks_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/register_page_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/register_page_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/sim_unlock_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/sim_unlock_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/system_info_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/system_info_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/conflicts_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/conflicts_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/constrained_html_ui.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/constrained_html_ui.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/crashes_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/crashes_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/devtools_ui.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/devtools_ui.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/downloads_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/flags_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/flags_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/flash_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/flash_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/gpu_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/history_ui.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/html_dialog_ui.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/html_dialog_ui.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/keyboard_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/keyboard_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/media/media_internals_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/media/media_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/network_action_predictor/network_action_predictor_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 3 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.h View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options2/options_ui2.cc View 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/ui/webui/plugins_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/plugins_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/policy_ui.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/policy_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/profiler_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/profiler_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/quota_internals_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/quota_internals_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sessions_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sessions_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/sync_internals_ui_unittest.cc View 1 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/task_manager_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/task_manager_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/test_chrome_web_ui_factory_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/tracing_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/tracing_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/uber/uber_ui.h View 1 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/uber/uber_ui.cc View 1 2 chunks +12 lines, -17 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_browsertest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/workers_ui.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/workers_ui.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_ppb_pdf_impl.cc View 7 chunks +14 lines, -8 lines 0 comments Download
M content/browser/tab_contents/render_view_host_manager.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/tab_contents/render_view_host_manager_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_unittest.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/webui/web_ui.h View 1 4 chunks +18 lines, -25 lines 0 comments Download
M content/browser/webui/web_ui.cc View 1 4 chunks +11 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
A content/public/browser/web_ui_controller.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
A content/public/browser/web_ui_controller.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M content/public/browser/web_ui_message_handler.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/common/content_client.h View 2 chunks +8 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jam
8 years, 11 months ago (2012-01-12 23:17:46 UTC) #1
Evan Stade
just a question http://codereview.chromium.org/9188056/diff/103/content/public/browser/web_ui_controller.h File content/public/browser/web_ui_controller.h (right): http://codereview.chromium.org/9188056/diff/103/content/public/browser/web_ui_controller.h#newcode33 content/public/browser/web_ui_controller.h:33: bool* overridden) {} why is overridden ...
8 years, 11 months ago (2012-01-12 23:55:36 UTC) #2
mmenke
http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h File content/browser/webui/web_ui.h (right): http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h#newcode41 content/browser/webui/web_ui.h:41: WebUI(content::WebContents* contentsm, content::WebUIController* controller); random driveby nit: -m
8 years, 11 months ago (2012-01-12 23:59:23 UTC) #3
jam
http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h File content/browser/webui/web_ui.h (right): http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h#newcode41 content/browser/webui/web_ui.h:41: WebUI(content::WebContents* contentsm, content::WebUIController* controller); On 2012/01/12 23:59:23, Matt Menke ...
8 years, 11 months ago (2012-01-13 00:06:03 UTC) #4
Evan Stade
On 2012/01/13 00:06:03, John Abd-El-Malek wrote: > http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h > File content/browser/webui/web_ui.h (right): > > http://codereview.chromium.org/9188056/diff/103/content/browser/webui/web_ui.h#newcode41 ...
8 years, 11 months ago (2012-01-13 00:16:46 UTC) #5
eroman
http://codereview.chromium.org/9188056/diff/103/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): http://codereview.chromium.org/9188056/diff/103/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1640 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1640: NetInternalsUI::NetInternalsUI(WebContents* contents) : WebUI(contents, this) { I imagine this ...
8 years, 11 months ago (2012-01-13 00:35:38 UTC) #6
jam
On 2012/01/13 00:16:46, Evan Stade wrote: > On 2012/01/13 00:06:03, John Abd-El-Malek wrote: > > ...
8 years, 11 months ago (2012-01-13 00:39:03 UTC) #7
jam
http://codereview.chromium.org/9188056/diff/103/chrome/browser/ui/webui/net_internals/net_internals_ui.cc File chrome/browser/ui/webui/net_internals/net_internals_ui.cc (right): http://codereview.chromium.org/9188056/diff/103/chrome/browser/ui/webui/net_internals/net_internals_ui.cc#newcode1640 chrome/browser/ui/webui/net_internals/net_internals_ui.cc:1640: NetInternalsUI::NetInternalsUI(WebContents* contents) : WebUI(contents, this) { On 2012/01/13 00:35:38, ...
8 years, 11 months ago (2012-01-13 00:39:50 UTC) #8
Evan Stade
lgtm, thanks!
8 years, 11 months ago (2012-01-13 03:00:16 UTC) #9
James Hawkins
This commit broke a few pieces of chrome://chrome, notably the sync sign in section and ...
8 years, 11 months ago (2012-01-13 19:03:18 UTC) #10
jam
8 years, 11 months ago (2012-01-13 19:35:13 UTC) #11
apologies for the inconvenience, I have a fix on the way in
http://codereview.chromium.org/9174010.

I'll test with chrome://chrome in the future, but in general note it's hard
to expect people to test every single webui for ex when changing the core
code. Is it possible to write tests for this?

On Fri, Jan 13, 2012 at 11:03 AM, <jhawkins@chromium.org> wrote:

> This commit broke a few pieces of chrome://chrome, notably the sync sign in
> section and the search engine drop-down.  We have a tight deadline for a UI
> review next Tuesday, so I'm going to revert this.  Please check
> chrome://chrome
> works before relanding.
>
>
http://codereview.chromium.**org/9188056/<http://codereview.chromium.org/9188...
>

Powered by Google App Engine
This is Rietveld 408576698