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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 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
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 #include "content/renderer/pepper/pepper_webplugin_impl.h" 5 #include "content/renderer/pepper/pepper_webplugin_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <cmath> 8 #include <cmath>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 void PepperWebPluginImpl::updateFocus(bool focused, 201 void PepperWebPluginImpl::updateFocus(bool focused,
202 blink::WebFocusType focus_type) { 202 blink::WebFocusType focus_type) {
203 instance_->SetWebKitFocus(focused); 203 instance_->SetWebKitFocus(focused);
204 } 204 }
205 205
206 void PepperWebPluginImpl::updateVisibility(bool visible) {} 206 void PepperWebPluginImpl::updateVisibility(bool visible) {}
207 207
208 blink::WebInputEventResult PepperWebPluginImpl::handleInputEvent( 208 blink::WebInputEventResult PepperWebPluginImpl::handleInputEvent(
209 const blink::WebInputEvent& event, 209 const blink::WebInputEvent& event,
210 const std::vector<const blink::WebInputEvent*>& coalescedEvents,
210 blink::WebCursorInfo& cursor_info) { 211 blink::WebCursorInfo& cursor_info) {
211 if (instance_->FlashIsFullscreenOrPending()) 212 if (instance_->FlashIsFullscreenOrPending())
212 return blink::WebInputEventResult::NotHandled; 213 return blink::WebInputEventResult::NotHandled;
213 return instance_->HandleInputEvent(event, &cursor_info) 214 return instance_->HandleInputEvent(event, &cursor_info)
214 ? blink::WebInputEventResult::HandledApplication 215 ? blink::WebInputEventResult::HandledApplication
215 : blink::WebInputEventResult::NotHandled; 216 : blink::WebInputEventResult::NotHandled;
216 } 217 }
217 218
218 void PepperWebPluginImpl::didReceiveResponse( 219 void PepperWebPluginImpl::didReceiveResponse(
219 const blink::WebURLResponse& response) { 220 const blink::WebURLResponse& response) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } 297 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
297 298
298 void PepperWebPluginImpl::rotateView(RotationType type) { 299 void PepperWebPluginImpl::rotateView(RotationType type) {
299 instance_->RotateView(type); 300 instance_->RotateView(type);
300 } 301 }
301 302
302 bool PepperWebPluginImpl::isPlaceholder() { return false; } 303 bool PepperWebPluginImpl::isPlaceholder() { return false; }
303 304
304 } // namespace content 305 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698