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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.cc

Issue 1316013004: Remove "API proposal for chrome.app.window to intercept all keys." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to TOT Created 5 years, 3 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/ui/views/apps/chrome_native_app_window_views.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
index 4f1635a7e237c41135e87f301c63875430975d04..bd6baf262e3a915b7f9556798d4b7222a81ba334 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views.cc
@@ -8,7 +8,6 @@
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/views/apps/desktop_keyboard_capture.h"
#include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views.h"
#include "chrome/browser/ui/views/frame/taskbar_decorator.h"
#include "components/favicon/content/content_favicon_driver.h"
@@ -357,14 +356,6 @@ SkColor ChromeNativeAppWindowViews::InactiveFrameColor() const {
return inactive_frame_color_;
}
-void ChromeNativeAppWindowViews::SetInterceptAllKeys(bool want_all_keys) {
- if (want_all_keys && (desktop_keyboard_capture_.get() == NULL)) {
- desktop_keyboard_capture_.reset(new DesktopKeyboardCapture(widget()));
- } else if (!want_all_keys) {
- desktop_keyboard_capture_.reset(NULL);
- }
-}
-
// NativeAppWindowViews implementation.
void ChromeNativeAppWindowViews::InitializeWindow(
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views.h ('k') | chrome/browser/ui/views/apps/desktop_keyboard_capture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698