diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-05 15:20:09 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-05 15:20:09 +0000 |
commit | c8659baee72c614c658762c722ab9510fc8b6f01 (patch) | |
tree | 9b27e7197bf29e59c88655b856a2c5d2f8eb4578 /apps/app_window_contents.cc | |
parent | 55f3f9e81a85b5d588e292520eed86ba5975eb84 (diff) | |
download | chromium_src-c8659baee72c614c658762c722ab9510fc8b6f01.zip chromium_src-c8659baee72c614c658762c722ab9510fc8b6f01.tar.gz chromium_src-c8659baee72c614c658762c722ab9510fc8b6f01.tar.bz2 |
Fix a test so it runs with --enable-apps-show-on-first-paint.
To do this a new test-only event has been added allowing apps to send
test messages after their window has been created.
BUG=225843
Review URL: https://codereview.chromium.org/316523002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_window_contents.cc')
-rw-r--r-- | apps/app_window_contents.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/app_window_contents.cc b/apps/app_window_contents.cc index 70d0053..5004c6f 100644 --- a/apps/app_window_contents.cc +++ b/apps/app_window_contents.cc @@ -95,6 +95,17 @@ void AppWindowContentsImpl::NativeWindowClosed() { rvh->Send(new ExtensionMsg_AppWindowClosed(rvh->GetRoutingID())); } +void AppWindowContentsImpl::DispatchWindowShownForTests() const { + base::ListValue args; + content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); + rvh->Send(new ExtensionMsg_MessageInvoke(rvh->GetRoutingID(), + host_->extension_id(), + "app.window", + "appWindowShownForTests", + args, + false)); +} + content::WebContents* AppWindowContentsImpl::GetWebContents() const { return web_contents_.get(); } |