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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host.cc

Issue 10446010: wip: Add ui::EventType parameter. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wip - views_unittests Created 8 years, 7 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 | « chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dropdown_bar_host.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_host.cc b/chrome/browser/ui/views/dropdown_bar_host.cc
index 9961f3a30d5cfe459d97eeacb02f27f10973e175..3477f005ff836c93935472b60f44e7994b716ad1 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host.cc
@@ -334,7 +334,7 @@ void DropdownBarHost::UpdateWindowEdges(const gfx::Rect& new_pos) {
void DropdownBarHost::RegisterAccelerators() {
DCHECK(!esc_accel_target_registered_);
- ui::Accelerator escape(ui::VKEY_ESCAPE, ui::EF_NONE);
+ ui::Accelerator escape(ui::VKEY_ESCAPE, ui::EF_NONE, ui::ET_KEY_PRESSED);
focus_manager_->RegisterAccelerator(
escape, ui::AcceleratorManager::kNormalPriority, this);
esc_accel_target_registered_ = true;
@@ -342,7 +342,7 @@ void DropdownBarHost::RegisterAccelerators() {
void DropdownBarHost::UnregisterAccelerators() {
DCHECK(esc_accel_target_registered_);
- ui::Accelerator escape(ui::VKEY_ESCAPE, ui::EF_NONE);
+ ui::Accelerator escape(ui::VKEY_ESCAPE, ui::EF_NONE, ui::ET_KEY_PRESSED);
focus_manager_->UnregisterAccelerator(escape, this);
esc_accel_target_registered_ = false;
}
« no previous file with comments | « chrome/browser/ui/views/chrome_to_mobile_bubble_view.cc ('k') | chrome/browser/ui/views/find_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698