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

Unified Diff: apps/app_window.h

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 | « no previous file | apps/app_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.h
diff --git a/apps/app_window.h b/apps/app_window.h
index 1c19c0c8e77b5016c8dcef8e84c5843277ac3a9c..81a1973daf09b451472dc4bd503563b52031b515 100644
--- a/apps/app_window.h
+++ b/apps/app_window.h
@@ -69,6 +69,9 @@ class AppWindowContents {
// Called when the native window closes.
virtual void NativeWindowClosed() = 0;
+ // Called with the native window is first shown.
+ virtual void NativeWindowFirstShown() const = 0;
+
virtual content::WebContents* GetWebContents() const = 0;
private:
@@ -523,6 +526,9 @@ class AppWindow : public content::NotificationObserver,
// The first visually non-empty paint has completed.
bool first_paint_complete_;
+ // The window has been shown.
+ bool has_been_shown_;
+
// Whether the window is hidden or not. Hidden in this context means actively
// by the chrome.app.window API, not in an operating system context. For
// example windows which are minimized are not hidden, and windows which are
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698