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

Side by Side Diff: athena/input/public/accelerator_manager.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/input/accelerator_manager_impl.cc ('k') | athena/wm/window_manager_impl.h » ('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_PUBLIC_ACCELERATOR_MANAGER_H_ 5 #ifndef ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_
6 #define ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ 6 #define ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // registered with any flags. 75 // registered with any flags.
76 virtual bool IsRegistered(const ui::Accelerator& accelerator, 76 virtual bool IsRegistered(const ui::Accelerator& accelerator,
77 int flags) const = 0; 77 int flags) const = 0;
78 78
79 // Register accelerators and its handler that will be invoked when 79 // Register accelerators and its handler that will be invoked when
80 // one of accelerator is fired. 80 // one of accelerator is fired.
81 virtual void RegisterAccelerators(const AcceleratorData accelerators[], 81 virtual void RegisterAccelerators(const AcceleratorData accelerators[],
82 size_t num_accelerators, 82 size_t num_accelerators,
83 AcceleratorHandler* handler) = 0; 83 AcceleratorHandler* handler) = 0;
84 84
85 virtual void RegisterAccelerator(const AcceleratorData& accelerator_data,
86 AcceleratorHandler* handler) = 0;
87 virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data,
88 AcceleratorHandler* handler) = 0;
89
85 // Enables/Disables accelerators that has a AF_DEBUG flag. 90 // Enables/Disables accelerators that has a AF_DEBUG flag.
86 virtual void SetDebugAcceleratorsEnabled(bool enabled) = 0; 91 virtual void SetDebugAcceleratorsEnabled(bool enabled) = 0;
87 }; 92 };
88 93
89 } // namespace athena 94 } // namespace athena
90 95
91 #endif // ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_ 96 #endif // ATHENA_INPUT_PUBLIC_ACCELERATOR_MANAGER_H_
OLDNEW
« no previous file with comments | « athena/input/accelerator_manager_impl.cc ('k') | athena/wm/window_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698