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

Side by Side Diff: remoting/client/key_event_mapper.h

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 | « remoting/client/jni/jni_frame_consumer.h ('k') | remoting/client/plugin/chromoting_instance.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ 5 #ifndef REMOTING_CLIENT_KEY_EVENT_MAPPER_H_
6 #define REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ 6 #define REMOTING_CLIENT_KEY_EVENT_MAPPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 // Causes events matching |usb_keycode| to be delivered to the trap callback. 33 // Causes events matching |usb_keycode| to be delivered to the trap callback.
34 // Trapped events are not dispatched to the next InputStub in the chain. 34 // Trapped events are not dispatched to the next InputStub in the chain.
35 void TrapKey(uint32 usb_keycode, bool trap_key); 35 void TrapKey(uint32 usb_keycode, bool trap_key);
36 36
37 // Causes events matching |in_usb_keycode| to be mapped to |out_usb_keycode|. 37 // Causes events matching |in_usb_keycode| to be mapped to |out_usb_keycode|.
38 // Keys are remapped at most once. Traps are processed before remapping. 38 // Keys are remapped at most once. Traps are processed before remapping.
39 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); 39 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode);
40 40
41 // InputFilter overrides. 41 // InputFilter overrides.
42 virtual void InjectKeyEvent(const protocol::KeyEvent& event) OVERRIDE; 42 virtual void InjectKeyEvent(const protocol::KeyEvent& event) override;
43 43
44 private: 44 private:
45 std::map<uint32,uint32> mapped_keys; 45 std::map<uint32,uint32> mapped_keys;
46 std::set<uint32> trapped_keys; 46 std::set<uint32> trapped_keys;
47 KeyTrapCallback trap_callback; 47 KeyTrapCallback trap_callback;
48 48
49 DISALLOW_COPY_AND_ASSIGN(KeyEventMapper); 49 DISALLOW_COPY_AND_ASSIGN(KeyEventMapper);
50 }; 50 };
51 51
52 } // namespace remoting 52 } // namespace remoting
53 53
54 #endif // REMOTING_CLIENT_KEY_EVENT_MAPPER_H_ 54 #endif // REMOTING_CLIENT_KEY_EVENT_MAPPER_H_
OLDNEW
« no previous file with comments | « remoting/client/jni/jni_frame_consumer.h ('k') | remoting/client/plugin/chromoting_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698