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

Side by Side Diff: ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.h

Issue 1312833006: Remove ui::KeyEvent::platform_keycode_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
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 UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_ 5 #ifndef UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_
6 #define UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_ 6 #define UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_
7 7
8 #include <xkbcommon/xkbcommon.h> 8 #include <xkbcommon/xkbcommon.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 19 matching lines...) Expand all
30 // KeyboardLayoutEngine: 30 // KeyboardLayoutEngine:
31 bool CanSetCurrentLayout() const override; 31 bool CanSetCurrentLayout() const override;
32 bool SetCurrentLayoutByName(const std::string& layout_name) override; 32 bool SetCurrentLayoutByName(const std::string& layout_name) override;
33 33
34 bool UsesISOLevel5Shift() const override; 34 bool UsesISOLevel5Shift() const override;
35 bool UsesAltGr() const override; 35 bool UsesAltGr() const override;
36 36
37 bool Lookup(DomCode dom_code, 37 bool Lookup(DomCode dom_code,
38 int flags, 38 int flags,
39 DomKey* dom_key, 39 DomKey* dom_key,
40 KeyboardCode* key_code, 40 KeyboardCode* key_code) const override;
41 uint32* platform_keycode) const override;
42 41
43 static void ParseLayoutName(const std::string& layout_name, 42 static void ParseLayoutName(const std::string& layout_name,
44 std::string* layout_id, 43 std::string* layout_id,
45 std::string* layout_variant); 44 std::string* layout_variant);
46 45
47 protected: 46 protected:
48 // Table for EventFlagsToXkbFlags(). 47 // Table for EventFlagsToXkbFlags().
49 struct XkbFlagMapEntry { 48 struct XkbFlagMapEntry {
50 int ui_flag; 49 int ui_flag;
51 xkb_mod_mask_t xkb_flag; 50 xkb_mod_mask_t xkb_flag;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 107
109 std::string current_layout_name_; 108 std::string current_layout_name_;
110 109
111 // Support weak pointers for attach & detach callbacks. 110 // Support weak pointers for attach & detach callbacks.
112 base::WeakPtrFactory<XkbKeyboardLayoutEngine> weak_ptr_factory_; 111 base::WeakPtrFactory<XkbKeyboardLayoutEngine> weak_ptr_factory_;
113 }; 112 };
114 113
115 } // namespace ui 114 } // namespace ui
116 115
117 #endif // UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_ 116 #endif // UI_EVENTS_OZONE_LAYOUT_XKB_XKB_KEYBOARD_LAYOUT_ENGINE_H_
OLDNEW
« no previous file with comments | « ui/events/ozone/layout/stub/stub_keyboard_layout_engine.cc ('k') | ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698