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

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: fix ash tests 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 fceefe3110a795fdad250183bb740caf0d9d44b2..5619b65ae38f145f31215d73e5a5ced08ba9ea43 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
@@ -68,4 +68,16 @@ bool AppCurrentWindowInternalClearAttentionFunction::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