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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/input/web_input_event_util.h" 8 #include "content/browser/renderer_host/input/web_input_event_util.h"
9 #include "content/browser/renderer_host/input/web_input_event_util_posix.h" 9 #include "content/browser/renderer_host/input/web_input_event_util_posix.h"
10 #include "ui/events/keycodes/keyboard_code_conversion_android.h" 10 #include "ui/events/keycodes/keyboard_code_conversion_android.h"
11 #include "ui/events/keycodes/keyboard_codes_posix.h" 11 #include "ui/events/keycodes/keyboard_codes_posix.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 using WebKit::WebInputEvent; 15 using blink::WebInputEvent;
16 using WebKit::WebKeyboardEvent; 16 using blink::WebKeyboardEvent;
17 using WebKit::WebGestureEvent; 17 using blink::WebGestureEvent;
18 using WebKit::WebMouseEvent; 18 using blink::WebMouseEvent;
19 using WebKit::WebMouseWheelEvent; 19 using blink::WebMouseWheelEvent;
20 20
21 WebKeyboardEvent WebKeyboardEventBuilder::Build(WebInputEvent::Type type, 21 WebKeyboardEvent WebKeyboardEventBuilder::Build(WebInputEvent::Type type,
22 int modifiers, 22 int modifiers,
23 double time_sec, 23 double time_sec,
24 int keycode, 24 int keycode,
25 int unicode_character, 25 int unicode_character,
26 bool is_system_key) { 26 bool is_system_key) {
27 DCHECK(WebInputEvent::isKeyboardEventType(type)); 27 DCHECK(WebInputEvent::isKeyboardEventType(type));
28 WebKeyboardEvent result; 28 WebKeyboardEvent result;
29 29
(...skipping 11 matching lines...) Expand all
41 // We need to treat the enter key as a key press of character \r. This 41 // We need to treat the enter key as a key press of character \r. This
42 // is apparently just how webkit handles it and what it expects. 42 // is apparently just how webkit handles it and what it expects.
43 result.unmodifiedText[0] = '\r'; 43 result.unmodifiedText[0] = '\r';
44 } 44 }
45 result.text[0] = result.unmodifiedText[0]; 45 result.text[0] = result.unmodifiedText[0];
46 result.isSystemKey = is_system_key; 46 result.isSystemKey = is_system_key;
47 47
48 return result; 48 return result;
49 } 49 }
50 50
51 WebMouseEvent WebMouseEventBuilder::Build(WebKit::WebInputEvent::Type type, 51 WebMouseEvent WebMouseEventBuilder::Build(blink::WebInputEvent::Type type,
52 WebMouseEvent::Button button, 52 WebMouseEvent::Button button,
53 double time_sec, 53 double time_sec,
54 int window_x, 54 int window_x,
55 int window_y, 55 int window_y,
56 int modifiers, 56 int modifiers,
57 int click_count) { 57 int click_count) {
58 DCHECK(WebInputEvent::isMouseEventType(type)); 58 DCHECK(WebInputEvent::isMouseEventType(type));
59 WebMouseEvent result; 59 WebMouseEvent result;
60 60
61 result.type = type; 61 result.type = type;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 result.type = type; 124 result.type = type;
125 result.x = x; 125 result.x = x;
126 result.y = y; 126 result.y = y;
127 result.timeStampSeconds = time_sec; 127 result.timeStampSeconds = time_sec;
128 result.sourceDevice = WebGestureEvent::Touchscreen; 128 result.sourceDevice = WebGestureEvent::Touchscreen;
129 129
130 return result; 130 return result;
131 } 131 }
132 132
133 } // namespace content 133 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698