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

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

Issue 11147037: Add a 'hidden' option to chrome.app.window.create() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename 'createHidden' to 'hidden' for less redundancy Created 8 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: 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 050478f716b7fe4d1138fe17de46a0811078f43b..df0f4dd81be89bfe5aa905307eaf410ef8c64a93 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
@@ -56,4 +56,16 @@ bool AppCurrentWindowInternalRestoreFunction::RunWithWindow(
return true;
}
+bool AppCurrentWindowInternalShowFunction::RunWithWindow(
+ ShellWindow* window) {
+ window->GetBaseWindow()->Show();
+ return true;
+}
+
+bool AppCurrentWindowInternalHideFunction::RunWithWindow(
+ ShellWindow* window) {
+ window->GetBaseWindow()->Hide();
+ return true;
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698