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

Unified Diff: apps/app_window_contents.cc

Issue 306823002: Flip --enable-apps-show-on-first-paint flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/app_window_contents.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window_contents.cc
diff --git a/apps/app_window_contents.cc b/apps/app_window_contents.cc
index 70d005343778c6c23a1a355ddcdb346fdb03c0b6..08d4f111e3a819a644cfe785a4664cd062d92441 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::NativeWindowFirstShown() const {
+ base::ListValue args;
+ content::RenderViewHost* rvh = web_contents_->GetRenderViewHost();
+ rvh->Send(new ExtensionMsg_MessageInvoke(rvh->GetRoutingID(),
+ host_->extension_id(),
+ "app.window",
+ "appWindowFirstShown",
+ args,
+ false));
+}
+
content::WebContents* AppWindowContentsImpl::GetWebContents() const {
return web_contents_.get();
}
« no previous file with comments | « apps/app_window_contents.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698