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

Issue 10191010: Re-implement the screensaver to use WebView instead of ExtensionDialogHost. (Closed)

Created:
8 years, 8 months ago by rkc
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, mihaip+watch_chromium.org
Visibility:
Public.

Description

Re-implement the screensaver to use WebView instead of ExtensionDialogHost. Use WebView to render the screensaver extension instead of ExtensionDialogHost. Using the RenderViewGone override to detect termination of the renderer process to restart it. Added browser tests. R=ben@chromium.org,sky@chromium.org BUG=chromium-os:28211 TEST=Tested that the screensaver comes up; tested the reload via crashing the extension renderer with SIG_ABRT; also ran browser tests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135392

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : merge #

Patch Set 7 : . #

Total comments: 14

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 6

Patch Set 10 : . #

Total comments: 2

Patch Set 11 : . #

Patch Set 12 : build fix. #

Patch Set 13 : merge/build fixes. #

Patch Set 14 : . #

Patch Set 15 : win fix. #

Patch Set 16 : moar build fixes. #

Patch Set 17 : license. #

Patch Set 18 : . #

Patch Set 19 : merge/build fixes. #

Patch Set 20 : win_aura_fix. #

Patch Set 21 : ut fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+758 lines, -273 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +10 lines, -0 lines 0 comments Download
A ash/screensaver/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
A ash/screensaver/screensaver_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +87 lines, -0 lines 0 comments Download
A ash/screensaver/screensaver_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +140 lines, -0 lines 0 comments Download
A ash/screensaver/screensaver_view_unittest.cc View 1 2 3 4 5 6 7 1 chunk +93 lines, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/shell_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +4 lines, -0 lines 0 comments Download
M ash/shell/window_type_launcher.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 2 3 4 5 6 5 chunks +16 lines, -1 line 0 comments Download
M ash/shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
A ash/test/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M ash/test/test_shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/test_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/chromeos/ui/screensaver_extension_dialog.h View 1 chunk +0 lines, -58 lines 0 comments Download
D chrome/browser/chromeos/ui/screensaver_extension_dialog.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -109 lines 0 comments Download
M chrome/browser/ui/views/accessibility_event_router_views_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_shell_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M content/test/content_test_suite.cc View 1 2 3 4 5 6 7 3 chunks +10 lines, -25 lines 0 comments Download
A content/test/test_content_client_initializer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +37 lines, -0 lines 0 comments Download
A content/test/test_content_client_initializer.cc View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
A content/test/test_render_view_host_factory.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +54 lines, -0 lines 0 comments Download
A content/test/test_render_view_host_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +40 lines, -0 lines 0 comments Download
M content/test/test_renderer_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -62 lines 0 comments Download
M ui/views/controls/webview/webview.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M ui/views/controls/webview/webview.cc View 1 2 3 4 5 6 7 8 9 3 chunks +22 lines, -5 lines 0 comments Download
A ui/views/test/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/test/test_views_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/test/test_views_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
A ui/views/test/webview_test_helper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +41 lines, -0 lines 0 comments Download
A ui/views/test/webview_test_helper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +28 lines, -5 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rkc
8 years, 8 months ago (2012-04-23 20:21:23 UTC) #1
Ben Goodger (Google)
So... can you implement this in src/ash... and delegate the bits that need code in ...
8 years, 8 months ago (2012-04-23 21:16:08 UTC) #2
Ben Goodger (Google)
On 2012/04/23 21:16:08, Ben Goodger (Google) wrote: > So... can you implement this in src/ash... ...
8 years, 8 months ago (2012-04-23 21:16:50 UTC) #3
rkc
Added jam@ for content/* review. Moved the screensaver implementation to ash. Added unit tests to ...
8 years, 7 months ago (2012-04-28 04:11:40 UTC) #4
Ben Goodger (Google)
http://codereview.chromium.org/10191010/diff/10008/ash/screensaver/screensaver_view.cc File ash/screensaver/screensaver_view.cc (right): http://codereview.chromium.org/10191010/diff/10008/ash/screensaver/screensaver_view.cc#newcode101 ash/screensaver/screensaver_view.cc:101: screensaver_webview_ = webview_factory_.Run(context); See my note about how to ...
8 years, 7 months ago (2012-05-01 16:57:42 UTC) #5
Ben Goodger (Google)
jam: ping re content stuff.
8 years, 7 months ago (2012-05-01 16:57:53 UTC) #6
jam
content lgtm http://codereview.chromium.org/10191010/diff/10008/content/test/test_content_client_initializer.h File content/test/test_content_client_initializer.h (right): http://codereview.chromium.org/10191010/diff/10008/content/test/test_content_client_initializer.h#newcode14 content/test/test_content_client_initializer.h:14: namespace content { put this whole class ...
8 years, 7 months ago (2012-05-01 18:55:33 UTC) #7
rkc
http://codereview.chromium.org/10191010/diff/10008/ash/screensaver/screensaver_view.cc File ash/screensaver/screensaver_view.cc (right): http://codereview.chromium.org/10191010/diff/10008/ash/screensaver/screensaver_view.cc#newcode101 ash/screensaver/screensaver_view.cc:101: screensaver_webview_ = webview_factory_.Run(context); On 2012/05/01 16:57:42, Ben Goodger (Google) ...
8 years, 7 months ago (2012-05-02 00:51:03 UTC) #8
Ben Goodger (Google)
http://codereview.chromium.org/10191010/diff/28002/ash/screensaver/screensaver_view.cc File ash/screensaver/screensaver_view.cc (right): http://codereview.chromium.org/10191010/diff/28002/ash/screensaver/screensaver_view.cc#newcode140 ash/screensaver/screensaver_view.cc:140: views::WebView* ScreensaverView::CreateWebView( do you still need this method? http://codereview.chromium.org/10191010/diff/28002/ash/screensaver/screensaver_view.h ...
8 years, 7 months ago (2012-05-02 01:19:16 UTC) #9
rkc
http://codereview.chromium.org/10191010/diff/28002/ash/screensaver/screensaver_view.cc File ash/screensaver/screensaver_view.cc (right): http://codereview.chromium.org/10191010/diff/28002/ash/screensaver/screensaver_view.cc#newcode140 ash/screensaver/screensaver_view.cc:140: views::WebView* ScreensaverView::CreateWebView( On 2012/05/02 01:19:17, Ben Goodger (Google) wrote: ...
8 years, 7 months ago (2012-05-02 01:34:45 UTC) #10
Ben Goodger (Google)
LGTM - thanks again for doing this!
8 years, 7 months ago (2012-05-02 01:46:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/10191010/34002
8 years, 7 months ago (2012-05-02 02:06:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/10191010/50003
8 years, 7 months ago (2012-05-02 09:12:52 UTC) #13
commit-bot: I haz the power
Change committed as 134889
8 years, 7 months ago (2012-05-02 10:42:50 UTC) #14
caseq
On 2012/05/02 10:42:50, I haz the power (commit-bot) wrote: > Change committed as 134889 Reverted ...
8 years, 7 months ago (2012-05-02 12:06:12 UTC) #15
jam
it looks like this broke view_examples when using the WebView, because WebView::CreateWebContents() ends up creating ...
8 years, 6 months ago (2012-05-30 18:19:09 UTC) #16
rkc
8 years, 6 months ago (2012-05-30 21:05:38 UTC) #17
Thanks for catching this.
Fix out for review at http://codereview.chromium.org/10447096/

On 2012/05/30 18:19:09, John Abd-El-Malek wrote:
> it looks like this broke view_examples when using the WebView, because
> WebView::CreateWebContents() ends up creating a test web contents instead of a
> real one. i.e. if I step over the "if (ViewsDelegate::views_delegate) {" line,
> and just call "content::WebContents::Create", then it works.

Powered by Google App Engine
This is Rietveld 408576698