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

Side by Side Diff: content/browser/renderer_host/web_input_event_aura.h

Issue 10541139: Improve MakeWebKeyboardEventFromAuraEvent() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linux_chromeos_clang shared build Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aura_unittest.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) 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 CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/common/content_export.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
10 11
11 namespace aura { 12 namespace aura {
12 class GestureEvent; 13 class GestureEvent;
13 class KeyEvent; 14 class KeyEvent;
14 class MouseEvent; 15 class MouseEvent;
15 class ScrollEvent; 16 class ScrollEvent;
16 class TouchEvent; 17 class TouchEvent;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
21 WebKit::WebMouseEvent MakeWebMouseEvent(aura::MouseEvent* event); 22 CONTENT_EXPORT WebKit::WebMouseEvent MakeWebMouseEvent(
22 WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(aura::MouseEvent* event); 23 aura::MouseEvent* event);
23 WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(aura::ScrollEvent* event); 24 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(
24 WebKit::WebKeyboardEvent MakeWebKeyboardEvent(aura::KeyEvent* event); 25 aura::MouseEvent* event);
25 WebKit::WebGestureEvent MakeWebGestureEvent(aura::GestureEvent* event); 26 CONTENT_EXPORT WebKit::WebMouseWheelEvent MakeWebMouseWheelEvent(
26 WebKit::WebGestureEvent MakeWebGestureEvent(aura::ScrollEvent* event); 27 aura::ScrollEvent* event);
28 CONTENT_EXPORT WebKit::WebKeyboardEvent MakeWebKeyboardEvent(
29 aura::KeyEvent* event);
30 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent(
31 aura::GestureEvent* event);
32 CONTENT_EXPORT WebKit::WebGestureEvent MakeWebGestureEvent(
33 aura::ScrollEvent* event);
27 34
28 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated 35 // Updates the WebTouchEvent based on the TouchEvent. It returns the updated
29 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was 36 // WebTouchPoint contained in the WebTouchEvent, or NULL if no point was
30 // updated. 37 // updated.
31 WebKit::WebTouchPoint* UpdateWebTouchEvent(aura::TouchEvent* event, 38 WebKit::WebTouchPoint* UpdateWebTouchEvent(aura::TouchEvent* event,
32 WebKit::WebTouchEvent* web_event); 39 WebKit::WebTouchEvent* web_event);
33 40
34 } 41 }
35 42
36 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_ 43 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/web_input_event_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698