OLD | NEW |
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 Loading... |
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but | 185 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but |
184 // without also clipping to the screen), in local space of the plugin. | 186 // without also clipping to the screen), in local space of the plugin. |
185 void ComputeClipRectsForPlugin( | 187 void ComputeClipRectsForPlugin( |
186 const HTMLFrameOwnerElement* plugin_owner_element, | 188 const HTMLFrameOwnerElement* plugin_owner_element, |
187 IntRect& window_rect, | 189 IntRect& window_rect, |
188 IntRect& clipped_local_rect, | 190 IntRect& clipped_local_rect, |
189 IntRect& unclipped_int_local_rect) const; | 191 IntRect& unclipped_int_local_rect) const; |
190 | 192 |
191 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); | 193 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); |
192 | 194 |
| 195 WebTouchEvent TransformTouchEvent(const WebInputEvent&); |
| 196 WebCoalescedInputEvent TransformCoalescedTouchEvent( |
| 197 const WebCoalescedInputEvent&); |
| 198 |
193 void HandleMouseEvent(MouseEvent*); | 199 void HandleMouseEvent(MouseEvent*); |
194 void HandleDragEvent(MouseEvent*); | 200 void HandleDragEvent(MouseEvent*); |
195 void HandleWheelEvent(WheelEvent*); | 201 void HandleWheelEvent(WheelEvent*); |
196 void HandleKeyboardEvent(KeyboardEvent*); | 202 void HandleKeyboardEvent(KeyboardEvent*); |
197 void HandleTouchEvent(TouchEvent*); | 203 void HandleTouchEvent(TouchEvent*); |
198 void HandleGestureEvent(GestureEvent*); | 204 void HandleGestureEvent(GestureEvent*); |
199 | 205 |
200 void SynthesizeMouseEventIfPossible(TouchEvent*); | 206 void SynthesizeMouseEventIfPossible(TouchEvent*); |
201 | 207 |
202 void FocusPlugin(); | 208 void FocusPlugin(); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 240 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
235 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 241 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
236 WebPluginContainer, | 242 WebPluginContainer, |
237 container, | 243 container, |
238 true, | 244 true, |
239 true); | 245 true); |
240 | 246 |
241 } // namespace blink | 247 } // namespace blink |
242 | 248 |
243 #endif | 249 #endif |
OLD | NEW |