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

Unified Diff: ash/aura/key_event_watcher_aura.h

Issue 2330403002: Do not activate system tray bubble by default (Closed)
Patch Set: Do not activate system tray bubble by default Created 4 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
« no previous file with comments | « ash/accelerators/accelerator_controller_delegate_aura.cc ('k') | ash/aura/key_event_watcher_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/key_event_watcher_aura.h
diff --git a/ash/aura/key_event_watcher_aura.h b/ash/aura/key_event_watcher_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..83d8ef625c680f11a7e3c9461ad0748f0a0bd82f
--- /dev/null
+++ b/ash/aura/key_event_watcher_aura.h
@@ -0,0 +1,36 @@
+// Copyright 2016 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 ASH_AURA_KEY_EVENT_WATCHER_AURA_H_
+#define ASH_AURA_KEY_EVENT_WATCHER_AURA_H_
+
+#include <map>
+
+#include "ash/ash_export.h"
+#include "ash/common/key_event_watcher.h"
+#include "ui/events/event_handler.h"
+
+namespace ui {
+class KeyEvent;
+}
+
+namespace ash {
+
+// An EventHandler based KeyEventWatcher implementation.
+class ASH_EXPORT KeyEventWatcherAura : public KeyEventWatcher,
+ public ui::EventHandler {
+ public:
+ KeyEventWatcherAura();
+ ~KeyEventWatcherAura() override;
+
+ // ui::EventHandler:
+ void OnKeyEvent(ui::KeyEvent* event) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(KeyEventWatcherAura);
+};
+
+} // namespace ash
+
+#endif // ASH_AURA_KEY_EVENT_WATCHER_AURA_H_
« no previous file with comments | « ash/accelerators/accelerator_controller_delegate_aura.cc ('k') | ash/aura/key_event_watcher_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698