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

Side by Side Diff: ui/base/accelerators/accelerator_history.cc

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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/accelerators/accelerator_history.h"
6 #include "ui/events/event_constants.h"
7
8 namespace ui {
9
10 // ----------------------------------------------------------------------
11 // Public Methods
12 // ----------------------------------------------------------------------
13
14 AcceleratorHistory::AcceleratorHistory()
15 : current_accelerator_(),
16 previous_accelerator_() {
17 }
18
19 AcceleratorHistory::~AcceleratorHistory() {
20 }
21
22 const Accelerator& AcceleratorHistory::GetCurrentAccelerator() const {
23 return current_accelerator_;
24 }
25
26 const Accelerator& AcceleratorHistory::GetPreviousAccelerator() const {
27 return previous_accelerator_;
28 }
29
30 void AcceleratorHistory::StoreCurrentAccelerator(
31 const Accelerator& accelerator) {
32 if (accelerator != current_accelerator_) {
33 previous_accelerator_ = current_accelerator_;
34 current_accelerator_ = accelerator;
35 }
36 }
37
38 }; // namespace ui
39
40
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698