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

Unified Diff: chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc

Issue 13609003: fullscreen in apps v2 ShellWindow via app.window.create. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc
diff --git a/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc b/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc
index 2c1e1abfe0b9730ee7c54c1c9a920cc1069bc92a..da80f619c1228b13bae73a44dd0a3716cd92dcd2 100644
--- a/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc
+++ b/chrome/browser/extensions/api/app_current_window_internal/app_current_window_internal_api.cc
@@ -51,21 +51,27 @@ bool AppCurrentWindowInternalFocusFunction::RunWithWindow(ShellWindow* window) {
return true;
}
+bool AppCurrentWindowInternalFullscreenFunction::RunWithWindow(
+ ShellWindow* window) {
+ window->Fullscreen();
+ return true;
+}
+
bool AppCurrentWindowInternalMaximizeFunction::RunWithWindow(
ShellWindow* window) {
- window->GetBaseWindow()->Maximize();
+ window->Maximize();
return true;
}
bool AppCurrentWindowInternalMinimizeFunction::RunWithWindow(
ShellWindow* window) {
- window->GetBaseWindow()->Minimize();
+ window->Minimize();
return true;
}
bool AppCurrentWindowInternalRestoreFunction::RunWithWindow(
ShellWindow* window) {
- window->GetBaseWindow()->Restore();
+ window->Restore();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698