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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 { | 117 { |
118 *convertedPoint = frame->view()->convertToRootFrame(pointInFrame); | 118 *convertedPoint = frame->view()->convertToRootFrame(pointInFrame); |
119 *globalPoint = frame->page()->chromeClient().viewportToScreen(blink::IntRect
(pointInFrame, blink::IntSize(0, 0)), frame->view()).location(); | 119 *globalPoint = frame->page()->chromeClient().viewportToScreen(blink::IntRect
(pointInFrame, blink::IntSize(0, 0)), frame->view()).location(); |
120 } | 120 } |
121 | 121 |
122 } // namespace | 122 } // namespace |
123 | 123 |
124 namespace blink { | 124 namespace blink { |
125 | 125 |
126 InspectorInputAgent::InspectorInputAgent(InspectedFrames* inspectedFrames) | 126 InspectorInputAgent::InspectorInputAgent(InspectedFrames* inspectedFrames) |
127 : InspectorBaseAgent<InspectorInputAgent, protocol::Input::Frontend>("Input"
) | 127 : m_inspectedFrames(inspectedFrames) |
128 , m_inspectedFrames(inspectedFrames) | |
129 { | 128 { |
130 } | 129 } |
131 | 130 |
132 InspectorInputAgent::~InspectorInputAgent() | 131 InspectorInputAgent::~InspectorInputAgent() |
133 { | 132 { |
134 } | 133 } |
135 | 134 |
136 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t
ype, std::unique_ptr<protocol::Array<protocol::Input::TouchPoint>> touchPoints,
const protocol::Maybe<int>& modifiers, const protocol::Maybe<double>& timestamp) | 135 void InspectorInputAgent::dispatchTouchEvent(ErrorString* error, const String& t
ype, std::unique_ptr<protocol::Array<protocol::Input::TouchPoint>> touchPoints,
const protocol::Maybe<int>& modifiers, const protocol::Maybe<double>& timestamp) |
137 { | 136 { |
138 PlatformEvent::EventType convertedType; | 137 PlatformEvent::EventType convertedType; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 m_inspectedFrames->root()->eventHandler().handleTouchEvent(event); | 201 m_inspectedFrames->root()->eventHandler().handleTouchEvent(event); |
203 } | 202 } |
204 | 203 |
205 DEFINE_TRACE(InspectorInputAgent) | 204 DEFINE_TRACE(InspectorInputAgent) |
206 { | 205 { |
207 visitor->trace(m_inspectedFrames); | 206 visitor->trace(m_inspectedFrames); |
208 InspectorBaseAgent::trace(visitor); | 207 InspectorBaseAgent::trace(visitor); |
209 } | 208 } |
210 | 209 |
211 } // namespace blink | 210 } // namespace blink |
OLD | NEW |