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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_android.cc

Issue 2120153003: Remove keyIdentifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_key_identifier_3a
Patch Set: Rebase Created 4 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/browser/renderer_host/input/web_input_event_builders_android.h " 5 #include "content/browser/renderer_host/input/web_input_event_builders_android.h "
6 6
7 #include <android/input.h> 7 #include <android/input.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/renderer_host/input/web_input_event_util.h" 10 #include "content/browser/renderer_host/input/web_input_event_util.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 unicode_character); 100 unicode_character);
101 result.unmodifiedText[0] = unicode_character; 101 result.unmodifiedText[0] = unicode_character;
102 if (result.windowsKeyCode == ui::VKEY_RETURN) { 102 if (result.windowsKeyCode == ui::VKEY_RETURN) {
103 // This is the same behavior as GTK: 103 // This is the same behavior as GTK:
104 // We need to treat the enter key as a key press of character \r. This 104 // We need to treat the enter key as a key press of character \r. This
105 // is apparently just how webkit handles it and what it expects. 105 // is apparently just how webkit handles it and what it expects.
106 result.unmodifiedText[0] = '\r'; 106 result.unmodifiedText[0] = '\r';
107 } 107 }
108 result.text[0] = result.unmodifiedText[0]; 108 result.text[0] = result.unmodifiedText[0];
109 result.isSystemKey = is_system_key; 109 result.isSystemKey = is_system_key;
110 result.setKeyIdentifierFromWindowsKeyCode();
111 110
112 return result; 111 return result;
113 } 112 }
114 113
115 WebMouseEvent WebMouseEventBuilder::Build( 114 WebMouseEvent WebMouseEventBuilder::Build(
116 WebInputEvent::Type type, 115 WebInputEvent::Type type,
117 WebMouseEvent::Button button, 116 WebMouseEvent::Button button,
118 double time_sec, 117 double time_sec,
119 int window_x, 118 int window_x,
120 int window_y, 119 int window_y,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 result.type = type; 176 result.type = type;
178 result.x = x; 177 result.x = x;
179 result.y = y; 178 result.y = y;
180 result.timeStampSeconds = time_sec; 179 result.timeStampSeconds = time_sec;
181 result.sourceDevice = blink::WebGestureDeviceTouchscreen; 180 result.sourceDevice = blink::WebGestureDeviceTouchscreen;
182 181
183 return result; 182 return result;
184 } 183 }
185 184
186 } // namespace content 185 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698