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

Unified Diff: chrome/browser/ui/views/apps/desktop_keyboard_capture.h

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/desktop_keyboard_capture.h
diff --git a/chrome/browser/ui/views/apps/desktop_keyboard_capture.h b/chrome/browser/ui/views/apps/desktop_keyboard_capture.h
deleted file mode 100644
index 3055d55aec93de3594a04609188db96828678cf1..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/apps/desktop_keyboard_capture.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_APPS_DESKTOP_KEYBOARD_CAPTURE_H_
-#define CHROME_BROWSER_UI_VIEWS_APPS_DESKTOP_KEYBOARD_CAPTURE_H_
-
-#include "ui/views/widget/widget.h"
-#include "ui/views/widget/widget_observer.h"
-
-// This class installs/uninstalls keyboard hook as the widget activation
-// changes.
-class DesktopKeyboardCapture : public views::WidgetObserver {
- public:
- explicit DesktopKeyboardCapture(views::Widget* widget);
- ~DesktopKeyboardCapture() override;
-
- private:
- // views::WidgetObserver implementation.
- void OnWidgetActivationChanged(views::Widget* widget, bool active) override;
-
- void RegisterKeyboardHooks();
- void DeregisterKeyboardHooks();
-
- // The widget registering for keyboard intercept. Weak reference.
- views::Widget* widget_;
-
- // Current state of keyboard intercept registration.
- bool is_registered_;
-
- DISALLOW_COPY_AND_ASSIGN(DesktopKeyboardCapture);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_APPS_DESKTOP_KEYBOARD_CAPTURE_H_

Powered by Google App Engine
This is Rietveld 408576698