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

Unified Diff: ui/views/controls/menu/menu_key_event_handler.cc

Issue 2155243007: Turn Bookmark Menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge the pretarget handlers Created 4 years, 4 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 | « ui/views/controls/menu/menu_key_event_handler.h ('k') | ui/views/controls/menu/menu_message_loop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_key_event_handler.cc
diff --git a/ui/views/controls/menu/menu_key_event_handler.cc b/ui/views/controls/menu/menu_key_event_handler.cc
deleted file mode 100644
index a0073f903950749bcc759140374d2b976e65c961..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/menu_key_event_handler.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2015 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.
-
-#include "ui/views/controls/menu/menu_key_event_handler.h"
-
-#include "ui/aura/env.h"
-#include "ui/views/controls/menu/menu_controller.h"
-#include "ui/views/views_delegate.h"
-
-namespace views {
-
-MenuKeyEventHandler::MenuKeyEventHandler() {
- aura::Env::GetInstanceDontCreate()->PrependPreTargetHandler(this);
-}
-
-MenuKeyEventHandler::~MenuKeyEventHandler() {
- aura::Env::GetInstanceDontCreate()->RemovePreTargetHandler(this);
-}
-
-void MenuKeyEventHandler::OnKeyEvent(ui::KeyEvent* event) {
- MenuController* menu_controller = MenuController::GetActiveInstance();
- DCHECK(menu_controller);
- menu_controller->OnWillDispatchKeyEvent(event);
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/menu/menu_key_event_handler.h ('k') | ui/views/controls/menu/menu_message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698