| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 public: | 72 public: |
| 73 static PassRefPtr<WebPluginContainerImpl> create(WebCore::HTMLPlugInElement*
element, WebPlugin* webPlugin) | 73 static PassRefPtr<WebPluginContainerImpl> create(WebCore::HTMLPlugInElement*
element, WebPlugin* webPlugin) |
| 74 { | 74 { |
| 75 return adoptRef(new WebPluginContainerImpl(element, webPlugin)); | 75 return adoptRef(new WebPluginContainerImpl(element, webPlugin)); |
| 76 } | 76 } |
| 77 | 77 |
| 78 // PluginViewBase methods | 78 // PluginViewBase methods |
| 79 virtual bool getFormValue(String&); | 79 virtual bool getFormValue(String&); |
| 80 virtual bool supportsKeyboardFocus() const; | 80 virtual bool supportsKeyboardFocus() const; |
| 81 virtual bool canProcessDrag() const; | 81 virtual bool canProcessDrag() const; |
| 82 virtual bool wantsWheelEvents(); |
| 82 | 83 |
| 83 // Widget methods | 84 // Widget methods |
| 84 virtual void setFrameRect(const WebCore::IntRect&); | 85 virtual void setFrameRect(const WebCore::IntRect&); |
| 85 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&); | 86 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&); |
| 86 virtual void invalidateRect(const WebCore::IntRect&); | 87 virtual void invalidateRect(const WebCore::IntRect&); |
| 87 virtual void setFocus(bool); | 88 virtual void setFocus(bool); |
| 88 virtual void show(); | 89 virtual void show(); |
| 89 virtual void hide(); | 90 virtual void hide(); |
| 90 virtual void handleEvent(WebCore::Event*); | 91 virtual void handleEvent(WebCore::Event*); |
| 91 virtual void frameRectsChanged(); | 92 virtual void frameRectsChanged(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 106 uint32_t ioSurfaceId); | 107 uint32_t ioSurfaceId); |
| 107 virtual void commitBackingTexture(); | 108 virtual void commitBackingTexture(); |
| 108 virtual void clearScriptObjects(); | 109 virtual void clearScriptObjects(); |
| 109 virtual NPObject* scriptableObjectForElement(); | 110 virtual NPObject* scriptableObjectForElement(); |
| 110 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed); | 111 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed); |
| 111 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target,
bool notifyNeeded, void* notifyData); | 112 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target,
bool notifyNeeded, void* notifyData); |
| 112 virtual void zoomLevelChanged(double zoomLevel); | 113 virtual void zoomLevelChanged(double zoomLevel); |
| 113 virtual void setOpaque(bool); | 114 virtual void setOpaque(bool); |
| 114 virtual bool isRectTopmost(const WebRect&); | 115 virtual bool isRectTopmost(const WebRect&); |
| 115 virtual void setIsAcceptingTouchEvents(bool); | 116 virtual void setIsAcceptingTouchEvents(bool); |
| 117 virtual void setWantsWheelEvents(bool); |
| 116 | 118 |
| 117 // This cannot be null. | 119 // This cannot be null. |
| 118 WebPlugin* plugin() { return m_webPlugin; } | 120 WebPlugin* plugin() { return m_webPlugin; } |
| 119 void setPlugin(WebPlugin*); | 121 void setPlugin(WebPlugin*); |
| 120 | 122 |
| 121 virtual float deviceScaleFactor(); | 123 virtual float deviceScaleFactor(); |
| 122 virtual float pageScaleFactor(); | 124 virtual float pageScaleFactor(); |
| 123 virtual float pageZoomFactor(); | 125 virtual float pageZoomFactor(); |
| 124 | 126 |
| 125 // Printing interface. The plugin can support custom printing | 127 // Printing interface. The plugin can support custom printing |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 194 |
| 193 unsigned m_ioSurfaceId; | 195 unsigned m_ioSurfaceId; |
| 194 OwnPtr<WebIOSurfaceLayer> m_ioSurfaceLayer; | 196 OwnPtr<WebIOSurfaceLayer> m_ioSurfaceLayer; |
| 195 #endif | 197 #endif |
| 196 | 198 |
| 197 // The associated scrollbar group object, created lazily. Used for Pepper | 199 // The associated scrollbar group object, created lazily. Used for Pepper |
| 198 // scrollbars. | 200 // scrollbars. |
| 199 OwnPtr<ScrollbarGroup> m_scrollbarGroup; | 201 OwnPtr<ScrollbarGroup> m_scrollbarGroup; |
| 200 | 202 |
| 201 bool m_isAcceptingTouchEvents; | 203 bool m_isAcceptingTouchEvents; |
| 204 bool m_wantsWheelEvents; |
| 202 }; | 205 }; |
| 203 | 206 |
| 204 } // namespace WebKit | 207 } // namespace WebKit |
| 205 | 208 |
| 206 #endif | 209 #endif |
| OLD | NEW |