| Index: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
|
| diff --git a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
|
| index 267f02ea064b04a7806139fff0206186ce118490..6d9dc305a983c75b1e0aaa159e2d129fe8b7d755 100644
|
| --- a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
|
| +++ b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
|
| @@ -27,8 +27,7 @@ namespace SetShape = app_current_window_internal::SetShape;
|
| namespace SetAlwaysOnTop = app_current_window_internal::SetAlwaysOnTop;
|
| namespace SetVisibleOnAllWorkspaces =
|
| app_current_window_internal::SetVisibleOnAllWorkspaces;
|
| -namespace SetInterceptAllKeys =
|
| - app_current_window_internal::SetInterceptAllKeys;
|
| +
|
| using app_current_window_internal::Bounds;
|
| using app_current_window_internal::Region;
|
| using app_current_window_internal::RegionRect;
|
| @@ -51,11 +50,6 @@ const char kRequiresFramelessWindow[] =
|
| const char kAlwaysOnTopPermission[] =
|
| "The \"app.window.alwaysOnTop\" permission is required.";
|
|
|
| -const char kInterceptAllKeysPermission[] = "app.window.interceptAllKeys";
|
| -
|
| -const char kInterceptAllKeysPermissionError[] =
|
| - "The \"app.window.interceptAllKeys\" permission is required.";
|
| -
|
| const char kInvalidParameters[] = "Invalid parameters.";
|
|
|
| const int kUnboundedSize = SizeConstraints::kUnboundedSize;
|
| @@ -382,19 +376,4 @@ bool AppCurrentWindowInternalSetVisibleOnAllWorkspacesFunction::RunWithWindow(
|
| return true;
|
| }
|
|
|
| -bool AppCurrentWindowInternalSetInterceptAllKeysFunction::RunWithWindow(
|
| - AppWindow* window) {
|
| - if (!extension()->permissions_data()->HasAPIPermission(
|
| - kInterceptAllKeysPermission)) {
|
| - error_ = kInterceptAllKeysPermissionError;
|
| - return false;
|
| - }
|
| -
|
| - scoped_ptr<SetInterceptAllKeys::Params> params(
|
| - SetInterceptAllKeys::Params::Create(*args_));
|
| - CHECK(params.get());
|
| - window->SetInterceptAllKeys(params->want_all_keys);
|
| - return true;
|
| -}
|
| -
|
| } // namespace extensions
|
|
|