OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 PlatformMouseEvent event( | 168 PlatformMouseEvent event( |
169 convertedPoint, | 169 convertedPoint, |
170 globalPoint, | 170 globalPoint, |
171 convertedButton, | 171 convertedButton, |
172 convertedType, | 172 convertedType, |
173 clickCount ? *clickCount : 0, | 173 clickCount ? *clickCount : 0, |
174 convertedModifiers & PlatformEvent::ShiftKey, | 174 convertedModifiers & PlatformEvent::ShiftKey, |
175 convertedModifiers & PlatformEvent::CtrlKey, | 175 convertedModifiers & PlatformEvent::CtrlKey, |
176 convertedModifiers & PlatformEvent::AltKey, | 176 convertedModifiers & PlatformEvent::AltKey, |
177 convertedModifiers & PlatformEvent::MetaKey, | 177 convertedModifiers & PlatformEvent::MetaKey, |
| 178 PlatformMouseEvent::RealOrIndistinguishable, |
178 timestamp ? *timestamp : currentTime()); | 179 timestamp ? *timestamp : currentTime()); |
179 | 180 |
180 m_client->dispatchMouseEvent(event); | 181 m_client->dispatchMouseEvent(event); |
181 } | 182 } |
182 | 183 |
183 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t
ype, const RefPtr<JSONArray>& touchPoints, const int* modifiers, const double* t
imestamp) | 184 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t
ype, const RefPtr<JSONArray>& touchPoints, const int* modifiers, const double* t
imestamp) |
184 { | 185 { |
185 PlatformEvent::Type convertedType; | 186 PlatformEvent::Type convertedType; |
186 if (type == "touchStart") { | 187 if (type == "touchStart") { |
187 convertedType = PlatformEvent::TouchStart; | 188 convertedType = PlatformEvent::TouchStart; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 } | 268 } |
268 | 269 |
269 void InspectorInputAgent::trace(Visitor* visitor) | 270 void InspectorInputAgent::trace(Visitor* visitor) |
270 { | 271 { |
271 visitor->trace(m_page); | 272 visitor->trace(m_page); |
272 InspectorBaseAgent::trace(visitor); | 273 InspectorBaseAgent::trace(visitor); |
273 } | 274 } |
274 | 275 |
275 } // namespace blink | 276 } // namespace blink |
276 | 277 |
OLD | NEW |