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

Side by Side Diff: ui/events/ozone/events_ozone.cc

Issue 479873002: Removing X11 native_event uses for key events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove web_input_event_aurax11.cc from Android license whitelist. Created 6 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
« no previous file with comments | « ui/events/event_utils.cc ('k') | ui/events/win/events_win.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #include "ui/events/event.h" 5 #include "ui/events/event.h"
6 #include "ui/events/event_constants.h" 6 #include "ui/events/event_constants.h"
7 #include "ui/events/event_utils.h" 7 #include "ui/events/event_utils.h"
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 DCHECK(event->IsKeyEvent()); 63 DCHECK(event->IsKeyEvent());
64 return event->platform_keycode(); 64 return event->platform_keycode();
65 } 65 }
66 66
67 bool IsCharFromNative(const base::NativeEvent& native_event) { 67 bool IsCharFromNative(const base::NativeEvent& native_event) {
68 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); 68 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event);
69 DCHECK(event->IsKeyEvent()); 69 DCHECK(event->IsKeyEvent());
70 return event->is_char(); 70 return event->is_char();
71 } 71 }
72 72
73 uint32 WindowsKeycodeFromNative(const base::NativeEvent& native_event) {
74 NOTIMPLEMENTED();
75 return 0;
76 }
77
78 uint16 TextFromNative(const base::NativeEvent& native_event) {
79 NOTIMPLEMENTED();
80 return 0;
81 }
82
83 uint16 UnmodifiedTextFromNative(const base::NativeEvent& native_event) {
84 NOTIMPLEMENTED();
85 return 0;
86 }
87
88 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { 73 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
89 const ui::MouseWheelEvent* event = 74 const ui::MouseWheelEvent* event =
90 static_cast<const ui::MouseWheelEvent*>(native_event); 75 static_cast<const ui::MouseWheelEvent*>(native_event);
91 DCHECK(event->type() == ET_MOUSEWHEEL); 76 DCHECK(event->type() == ET_MOUSEWHEEL);
92 return event->offset(); 77 return event->offset();
93 } 78 }
94 79
95 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) { 80 base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
96 return NULL; 81 return NULL;
97 } 82 }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 157
173 return true; 158 return true;
174 } 159 }
175 160
176 int GetModifiersFromKeyState() { 161 int GetModifiersFromKeyState() {
177 NOTIMPLEMENTED(); 162 NOTIMPLEMENTED();
178 return 0; 163 return 0;
179 } 164 }
180 165
181 } // namespace ui 166 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/event_utils.cc ('k') | ui/events/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698