| 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 2f826d7182058362884beba3b9c417c482845177..651f60102b504b1117bf68008a3593178448117e 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
|
| @@ -28,6 +28,8 @@ namespace SetIcon = app_current_window_internal::SetIcon;
|
| namespace SetBadgeIcon = app_current_window_internal::SetBadgeIcon;
|
| namespace SetShape = app_current_window_internal::SetShape;
|
| namespace SetAlwaysOnTop = app_current_window_internal::SetAlwaysOnTop;
|
| +namespace SetVisibleOnAllWorkspaces =
|
| + app_current_window_internal::SetVisibleOnAllWorkspaces;
|
|
|
| using app_current_window_internal::Bounds;
|
| using app_current_window_internal::Region;
|
| @@ -398,4 +400,18 @@ bool AppCurrentWindowInternalSetAlwaysOnTopFunction::RunWithWindow(
|
| return true;
|
| }
|
|
|
| +bool AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction::RunWithWindow(
|
| + AppWindow* window) {
|
| + if (GetCurrentChannel() > chrome::VersionInfo::CHANNEL_DEV) {
|
| + error_ = kDevChannelOnly;
|
| + return false;
|
| + }
|
| +
|
| + scoped_ptr<SetVisibleOnAllWorkspaces::Params> params(
|
| + SetVisibleOnAllWorkspaces::Params::Create(*args_));
|
| + CHECK(params.get());
|
| + window->GetBaseWindow()->SetVisibleOnAllWorkspaces(params->always_visible);
|
| + return true;
|
| +}
|
| +
|
| } // namespace extensions
|
|
|