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

Unified Diff: ash/accelerators/accelerator_delegate.cc

Issue 308023002: Add EF_IS_REPEAT flag to KeyEvent to handle repeated accelerators correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use ui::EF_IS_REPEAT in test instead Created 6 years, 6 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_delegate.h ('k') | ash/accelerators/nested_accelerator_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_delegate.cc
diff --git a/ash/accelerators/accelerator_delegate.cc b/ash/accelerators/accelerator_delegate.cc
index 234b8ba9aa106be1256f079a04fc26375cf72033..9dbd41035a902ef5a8a748ed18de49ab59e19b9b 100644
--- a/ash/accelerators/accelerator_delegate.cc
+++ b/ash/accelerators/accelerator_delegate.cc
@@ -19,14 +19,6 @@ AcceleratorDelegate::AcceleratorDelegate() {
AcceleratorDelegate::~AcceleratorDelegate() {
}
-void AcceleratorDelegate::PreProcessAccelerator(
- const ui::Accelerator& accelerator) {
- // Fill out context object so AcceleratorController will know what
- // was the previous accelerator or if the current accelerator is repeated.
- Shell::GetInstance()->accelerator_controller()->context()->UpdateContext(
- accelerator);
-}
-
bool AcceleratorDelegate::ProcessAccelerator(const ui::KeyEvent& key_event,
const ui::Accelerator& accelerator,
KeyType key_type) {
« no previous file with comments | « ash/accelerators/accelerator_delegate.h ('k') | ash/accelerators/nested_accelerator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698