| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 241 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 236 DEFINE_TYPE_CASTS(WebPluginContainerImpl, | 242 DEFINE_TYPE_CASTS(WebPluginContainerImpl, |
| 237 WebPluginContainer, | 243 WebPluginContainer, |
| 238 container, | 244 container, |
| 239 true, | 245 true, |
| 240 true); | 246 true); |
| 241 | 247 |
| 242 } // namespace blink | 248 } // namespace blink |
| 243 | 249 |
| 244 #endif | 250 #endif |
| OLD | NEW |