From 9daeacae81c70fe055af8d8a333691ca9a9fd181 Mon Sep 17 00:00:00 2001 From: sriramsr Date: Wed, 9 Sep 2015 11:25:17 -0700 Subject: Remove "API proposal for chrome.app.window to intercept all keys." This reverts commit c811bb98b489b67a5f85ed79d7acd288533a080d. The commit is reverted as it was decided to not add the API to platform. Disabling presubmit to bypass enum edit check that fails as the enum value is renamed to kDelete_. NOPRESUBMIT=true BUG=166928 Review URL: https://codereview.chromium.org/1316013004 Cr-Commit-Position: refs/heads/master@{#347960} --- extensions/browser/app_window/app_window.cc | 4 ---- extensions/browser/app_window/app_window.h | 4 ---- extensions/browser/app_window/native_app_window.h | 4 ---- 3 files changed, 12 deletions(-) (limited to 'extensions/browser/app_window') diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc index b6d7754..b2bfeb0 100644 --- a/extensions/browser/app_window/app_window.cc +++ b/extensions/browser/app_window/app_window.cc @@ -705,10 +705,6 @@ void AppWindow::RestoreAlwaysOnTop() { UpdateNativeAlwaysOnTop(); } -void AppWindow::SetInterceptAllKeys(bool want_all_keys) { - native_app_window_->SetInterceptAllKeys(want_all_keys); -} - void AppWindow::WindowEventsReady() { can_send_events_ = true; SendOnWindowShownIfShown(); diff --git a/extensions/browser/app_window/app_window.h b/extensions/browser/app_window/app_window.h index 4a06269..f6c330d 100644 --- a/extensions/browser/app_window/app_window.h +++ b/extensions/browser/app_window/app_window.h @@ -332,10 +332,6 @@ class AppWindow : public content::WebContentsDelegate, // Restores the always-on-top property according to |cached_always_on_top_|. void RestoreAlwaysOnTop(); - // Set whether the window should get even reserved keys (modulo platform - // restrictions). - void SetInterceptAllKeys(bool want_all_keys); - // Retrieve the current state of the app window as a dictionary, to pass to // the renderer. void GetSerializedState(base::DictionaryValue* properties) const; diff --git a/extensions/browser/app_window/native_app_window.h b/extensions/browser/app_window/native_app_window.h index 3ad9142..40da368 100644 --- a/extensions/browser/app_window/native_app_window.h +++ b/extensions/browser/app_window/native_app_window.h @@ -51,10 +51,6 @@ class NativeAppWindow : public ui::BaseWindow, // window is restored to the default shape. virtual void UpdateShape(scoped_ptr region) = 0; - // Set whether the window should receive all keyboard events including task - // switching keys. - virtual void SetInterceptAllKeys(bool want_all_keys) = 0; - // Allows the window to handle unhandled keyboard messages coming back from // the renderer. virtual void HandleKeyboardEvent( -- cgit v1.1