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

Unified Diff: athena/extensions/athena_native_app_window_views.h

Issue 668513003: Selecting an app window from the overview mode maximizes the window only if it's maximizable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
Index: athena/extensions/athena_native_app_window_views.h
diff --git a/athena/extensions/athena_native_app_window_views.h b/athena/extensions/athena_native_app_window_views.h
index b0cc0edfbd6729325510640080a1bc53cf2b1cd5..30a1fbe6874c40c7f52e489066fcabfb0e4e65ec 100644
--- a/athena/extensions/athena_native_app_window_views.h
+++ b/athena/extensions/athena_native_app_window_views.h
@@ -17,6 +17,15 @@ class AthenaNativeAppWindowViews
views::WebView* GetWebView();
+ protected:
+
+ // Specialized initialization of the AppWindowViews specific to Athena. Starts
+ // the window maximized by default unless the create_params specifies a
+ // maximum size, in which case the window will be centered.
+ void virtual InitializeWindow(
+ extensions::AppWindow* app_window,
+ const extensions::AppWindow::CreateParams& create_params) override;
+
private:
DISALLOW_COPY_AND_ASSIGN(AthenaNativeAppWindowViews);
};

Powered by Google App Engine
This is Rietveld 408576698