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

Unified Diff: ui/views/bubble/bubble_delegate.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 | « ui/views/accessible_pane_view.cc ('k') | ui/views/controls/button/text_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.cc
diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc
index 5dc3fcb42e103a7a3a9ad2d54f0771db57435d90..3b3ea34b47a1a06c2ca51c431e26612010634213 100644
--- a/ui/views/bubble/bubble_delegate.cc
+++ b/ui/views/bubble/bubble_delegate.cc
@@ -116,7 +116,9 @@ BubbleDelegateView::BubbleDelegateView()
use_focusless_(false),
parent_window_(NULL) {
set_background(views::Background::CreateSolidBackground(color_));
- AddAccelerator(ui::Accelerator(ui::VKEY_ESCAPE, ui::EF_NONE));
+ AddAccelerator(ui::Accelerator(ui::VKEY_ESCAPE,
+ ui::EF_NONE,
+ ui::ET_KEY_PRESSED));
}
BubbleDelegateView::BubbleDelegateView(
@@ -135,7 +137,9 @@ BubbleDelegateView::BubbleDelegateView(
use_focusless_(false),
parent_window_(NULL) {
set_background(views::Background::CreateSolidBackground(color_));
- AddAccelerator(ui::Accelerator(ui::VKEY_ESCAPE, ui::EF_NONE));
+ AddAccelerator(ui::Accelerator(ui::VKEY_ESCAPE,
+ ui::EF_NONE,
+ ui::ET_KEY_PRESSED));
}
BubbleDelegateView::~BubbleDelegateView() {}
« no previous file with comments | « ui/views/accessible_pane_view.cc ('k') | ui/views/controls/button/text_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698