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

Unified Diff: ash/accelerators/accelerator_controller.h

Issue 727583002: Regression: Search+Key pops up app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
Index: ash/accelerators/accelerator_controller.h
diff --git a/ash/accelerators/accelerator_controller.h b/ash/accelerators/accelerator_controller.h
index 9a7c579ac99df650045820ec1379b232fe3ebe41..5b279ca94d74e0beb6e67bb44b525a601b48b333 100644
--- a/ash/accelerators/accelerator_controller.h
+++ b/ash/accelerators/accelerator_controller.h
@@ -15,6 +15,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "ui/base/accelerators/accelerator.h"
+#include "ui/base/accelerators/accelerator_history.h"
namespace ui {
class AcceleratorManager;
@@ -118,7 +119,7 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
}
const ui::Accelerator& previous_accelerator_for_test() const {
- return previous_accelerator_;
+ return GetPreviousAccelerator();
}
private:
@@ -142,6 +143,11 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
scoped_ptr<KeyboardBrightnessControlDelegate>
keyboard_brightness_control_delegate);
+ // Returns the previous accelerator that should be used depending on the most
+ // recent time stamp.
+ const ui::Accelerator& GetPreviousAccelerator() const;
+
+
scoped_ptr<ui::AcceleratorManager> accelerator_manager_;
// TODO(derat): BrightnessControlDelegate is also used by the system tray;
@@ -154,7 +160,7 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
// Remember previous accelerator as some accelerator needs to be fired
// with a specific sequence.
- ui::Accelerator previous_accelerator_;
+ ui::AcceleratorEvent previous_accelerator_;
// Handles the exit accelerator which requires a double press to exit and
// shows a popup with an explanation.
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | ash/accelerators/accelerator_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698