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

Side by Side Diff: athena/input/accelerator_manager_impl.h

Issue 601333002: ESC accelerator and consistent overview mode for Athena homecard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « athena/home/home_card_unittest.cc ('k') | athena/input/accelerator_manager_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_INPUT_ACCELERATOR_MANAGER_H_ 5 #ifndef ATHENA_INPUT_ACCELERATOR_MANAGER_H_
6 #define ATHENA_INPUT_ACCELERATOR_MANAGER_H_ 6 #define ATHENA_INPUT_ACCELERATOR_MANAGER_H_
7 7
8 #include "athena/input/public/accelerator_manager.h" 8 #include "athena/input/public/accelerator_manager.h"
9 9
10 #include <map> 10 #include <map>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 private: 57 private:
58 class InternalData; 58 class InternalData;
59 59
60 explicit AcceleratorManagerImpl(AcceleratorWrapper* wrapper); 60 explicit AcceleratorManagerImpl(AcceleratorWrapper* wrapper);
61 61
62 // AcceleratorManager: 62 // AcceleratorManager:
63 virtual void RegisterAccelerators(const AcceleratorData accelerators[], 63 virtual void RegisterAccelerators(const AcceleratorData accelerators[],
64 size_t num_accelerators, 64 size_t num_accelerators,
65 AcceleratorHandler* handler) override; 65 AcceleratorHandler* handler) override;
66 virtual void RegisterAccelerator(const AcceleratorData& accelerator_data,
67 AcceleratorHandler* handler) override;
68 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data,
69 AcceleratorHandler* handler) override;
66 virtual void SetDebugAcceleratorsEnabled(bool enabled) override; 70 virtual void SetDebugAcceleratorsEnabled(bool enabled) override;
67 71
68 // ui::AcceleratorTarget: 72 // ui::AcceleratorTarget:
69 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 73 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
70 virtual bool CanHandleAccelerators() const override; 74 virtual bool CanHandleAccelerators() const override;
71 75
72 void RegisterAccelerator(const AcceleratorData& accelerator,
73 AcceleratorHandler* handler);
74
75 std::map<ui::Accelerator, InternalData> accelerators_; 76 std::map<ui::Accelerator, InternalData> accelerators_;
76 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_; 77 scoped_ptr<AcceleratorWrapper> accelerator_wrapper_;
77 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_; 78 scoped_ptr<wm::AcceleratorFilter> accelerator_filter_;
78 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_; 79 scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_;
79 bool debug_accelerators_enabled_; 80 bool debug_accelerators_enabled_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl); 82 DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl);
82 }; 83 };
83 84
84 } // namespace athena 85 } // namespace athena
85 86
86 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_ 87 #endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/home/home_card_unittest.cc ('k') | athena/input/accelerator_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698