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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.h

Issue 2844823002: Support Coalesced Touch in ppapi (Closed)
Patch Set: Support Coalesced Touch in ppapi Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 #ifndef WebPluginContainerImpl_h 32 #ifndef WebPluginContainerImpl_h
33 #define WebPluginContainerImpl_h 33 #define WebPluginContainerImpl_h
34 34
35 #include "core/dom/ContextLifecycleObserver.h" 35 #include "core/dom/ContextLifecycleObserver.h"
36 #include "core/plugins/PluginView.h" 36 #include "core/plugins/PluginView.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "platform/wtf/Compiler.h" 38 #include "platform/wtf/Compiler.h"
39 #include "platform/wtf/PassRefPtr.h" 39 #include "platform/wtf/PassRefPtr.h"
40 #include "platform/wtf/Vector.h" 40 #include "platform/wtf/Vector.h"
41 #include "platform/wtf/text/WTFString.h" 41 #include "platform/wtf/text/WTFString.h"
42 #include "public/platform/WebCoalescedInputEvent.h"
43 #include "public/platform/WebTouchEvent.h"
42 #include "public/web/WebPluginContainer.h" 44 #include "public/web/WebPluginContainer.h"
43 #include "web/WebExport.h" 45 #include "web/WebExport.h"
44 46
45 namespace blink { 47 namespace blink {
46 48
47 class GestureEvent; 49 class GestureEvent;
48 class HTMLFrameOwnerElement; 50 class HTMLFrameOwnerElement;
49 class HTMLPlugInElement; 51 class HTMLPlugInElement;
50 class IntRect; 52 class IntRect;
51 class KeyboardEvent; 53 class KeyboardEvent;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but 186 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but
185 // without also clipping to the screen), in local space of the plugin. 187 // without also clipping to the screen), in local space of the plugin.
186 void ComputeClipRectsForPlugin( 188 void ComputeClipRectsForPlugin(
187 const HTMLFrameOwnerElement* plugin_owner_element, 189 const HTMLFrameOwnerElement* plugin_owner_element,
188 IntRect& window_rect, 190 IntRect& window_rect,
189 IntRect& clipped_local_rect, 191 IntRect& clipped_local_rect,
190 IntRect& unclipped_int_local_rect) const; 192 IntRect& unclipped_int_local_rect) const;
191 193
192 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); 194 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*);
193 195
196 WebTouchEvent TransformTouchEvent(const WebInputEvent&);
197 WebCoalescedInputEvent TransformCoalescedTouchEvent(
198 const WebCoalescedInputEvent&);
199
194 void HandleMouseEvent(MouseEvent*); 200 void HandleMouseEvent(MouseEvent*);
195 void HandleDragEvent(MouseEvent*); 201 void HandleDragEvent(MouseEvent*);
196 void HandleWheelEvent(WheelEvent*); 202 void HandleWheelEvent(WheelEvent*);
197 void HandleKeyboardEvent(KeyboardEvent*); 203 void HandleKeyboardEvent(KeyboardEvent*);
198 void HandleTouchEvent(TouchEvent*); 204 void HandleTouchEvent(TouchEvent*);
199 void HandleGestureEvent(GestureEvent*); 205 void HandleGestureEvent(GestureEvent*);
200 206
201 void SynthesizeMouseEventIfPossible(TouchEvent*); 207 void SynthesizeMouseEventIfPossible(TouchEvent*);
202 208
203 void FocusPlugin(); 209 void FocusPlugin();
(...skipping 28 matching lines...) Expand all
232 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 238 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
233 DEFINE_TYPE_CASTS(WebPluginContainerImpl, 239 DEFINE_TYPE_CASTS(WebPluginContainerImpl,
234 WebPluginContainer, 240 WebPluginContainer,
235 container, 241 container,
236 true, 242 true,
237 true); 243 true);
238 244
239 } // namespace blink 245 } // namespace blink
240 246
241 #endif 247 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698