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 f5cdf91f6ff0cd226e5e9861d5ed23d9eb5d2cb5..142d0d12e60842201006e23a78f0b90206ec39ac 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 |
@@ -20,6 +20,8 @@ namespace SetBounds = extensions::api::app_current_window_internal::SetBounds; |
namespace SetIcon = extensions::api::app_current_window_internal::SetIcon; |
namespace SetInputRegion = |
extensions::api::app_current_window_internal::SetInputRegion; |
+namespace SetAlwaysOnTop = |
+ extensions::api::app_current_window_internal::SetAlwaysOnTop; |
using apps::ShellWindow; |
using extensions::api::app_current_window_internal::Bounds; |
@@ -202,4 +204,13 @@ bool AppCurrentWindowInternalSetInputRegionFunction::RunWithWindow( |
return true; |
} |
+bool AppCurrentWindowInternalSetAlwaysOnTopFunction::RunWithWindow( |
+ ShellWindow* window) { |
+ scoped_ptr<SetAlwaysOnTop::Params> params( |
+ SetAlwaysOnTop::Params::Create(*args_)); |
+ CHECK(params.get()); |
+ window->GetBaseWindow()->SetAlwaysOnTop(params->always_on_top); |
+ return true; |
+} |
+ |
} // namespace extensions |