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

Side by Side Diff: Source/web/WebInputEventConversion.h

Issue 1063653002: [DevTools] Cleanup after moving input to browser. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 8 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 | « Source/web/WebDevToolsAgentImpl.cpp ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }; 91 };
92 92
93 class WebMouseEventBuilder : public WebMouseEvent { 93 class WebMouseEventBuilder : public WebMouseEvent {
94 public: 94 public:
95 // Converts a MouseEvent to a corresponding WebMouseEvent. 95 // Converts a MouseEvent to a corresponding WebMouseEvent.
96 // NOTE: This is only implemented for mousemove, mouseover, mouseout, 96 // NOTE: This is only implemented for mousemove, mouseover, mouseout,
97 // mousedown and mouseup. If the event mapping fails, the event type will 97 // mousedown and mouseup. If the event mapping fails, the event type will
98 // be set to Undefined. 98 // be set to Undefined.
99 WebMouseEventBuilder(const Widget*, const LayoutObject*, const MouseEvent&); 99 WebMouseEventBuilder(const Widget*, const LayoutObject*, const MouseEvent&);
100 WebMouseEventBuilder(const Widget*, const LayoutObject*, const TouchEvent&); 100 WebMouseEventBuilder(const Widget*, const LayoutObject*, const TouchEvent&);
101
102 // Converts a PlatformMouseEvent to a corresponding WebMouseEvent.
103 // NOTE: This is only implemented for mousepressed, mousereleased, and
104 // mousemoved. If the event mapping fails, the event type will be set to
105 // Undefined.
106 WebMouseEventBuilder(const Widget*, const PlatformMouseEvent&);
107 }; 101 };
108 102
109 // Converts a WheelEvent to a corresponding WebMouseWheelEvent. 103 // Converts a WheelEvent to a corresponding WebMouseWheelEvent.
110 // If the event mapping fails, the event type will be set to Undefined. 104 // If the event mapping fails, the event type will be set to Undefined.
111 class WebMouseWheelEventBuilder : public WebMouseWheelEvent { 105 class WebMouseWheelEventBuilder : public WebMouseWheelEvent {
112 public: 106 public:
113 WebMouseWheelEventBuilder(const Widget*, const LayoutObject*, const WheelEve nt&); 107 WebMouseWheelEventBuilder(const Widget*, const LayoutObject*, const WheelEve nt&);
114 }; 108 };
115 109
116 // Converts a KeyboardEvent or PlatformKeyboardEvent to a 110 // Converts a KeyboardEvent or PlatformKeyboardEvent to a
117 // corresponding WebKeyboardEvent. 111 // corresponding WebKeyboardEvent.
118 // NOTE: For KeyboardEvent, this is only implemented for keydown, 112 // NOTE: For KeyboardEvent, this is only implemented for keydown,
119 // keyup, and keypress. If the event mapping fails, the event type will be set 113 // keyup, and keypress. If the event mapping fails, the event type will be set
120 // to Undefined. 114 // to Undefined.
121 class WebKeyboardEventBuilder : public WebKeyboardEvent { 115 class WebKeyboardEventBuilder : public WebKeyboardEvent {
122 public: 116 public:
123 WebKeyboardEventBuilder(const KeyboardEvent&); 117 WebKeyboardEventBuilder(const KeyboardEvent&);
124 WebKeyboardEventBuilder(const PlatformKeyboardEvent&);
125 }; 118 };
126 119
127 // Converts a TouchEvent to a corresponding WebTouchEvent. 120 // Converts a TouchEvent to a corresponding WebTouchEvent.
128 // NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points 121 // NOTE: WebTouchEvents have a cap on the number of WebTouchPoints. Any points
129 // exceeding that cap will be dropped. 122 // exceeding that cap will be dropped.
130 class WebTouchEventBuilder : public WebTouchEvent { 123 class WebTouchEventBuilder : public WebTouchEvent {
131 public: 124 public:
132 WebTouchEventBuilder(const Widget*, const LayoutObject*, const TouchEvent&); 125 WebTouchEventBuilder(const Widget*, const LayoutObject*, const TouchEvent&);
133 }; 126 };
134 127
135 // Converts GestureEvent to a corresponding WebGestureEvent. 128 // Converts GestureEvent to a corresponding WebGestureEvent.
136 // NOTE: If event mapping fails, the type will be set to Undefined. 129 // NOTE: If event mapping fails, the type will be set to Undefined.
137 class WebGestureEventBuilder : public WebGestureEvent { 130 class WebGestureEventBuilder : public WebGestureEvent {
138 public: 131 public:
139 WebGestureEventBuilder(const Widget*, const LayoutObject*, const GestureEven t&); 132 WebGestureEventBuilder(const Widget*, const LayoutObject*, const GestureEven t&);
140 }; 133 };
141 134
142 unsigned toPlatformMouseEventModifiers(int webModifiers); 135 unsigned toPlatformMouseEventModifiers(int webModifiers);
143 136
144 } // namespace blink 137 } // namespace blink
145 138
146 #endif 139 #endif
OLDNEW
« no previous file with comments | « Source/web/WebDevToolsAgentImpl.cpp ('k') | Source/web/WebInputEventConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698