| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 | 72 |
| 73 // PluginView methods | 73 // PluginView methods |
| 74 WebLayer* platformLayer() const override; | 74 WebLayer* platformLayer() const override; |
| 75 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; | 75 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; |
| 76 bool getFormValue(String&) override; | 76 bool getFormValue(String&) override; |
| 77 bool supportsKeyboardFocus() const override; | 77 bool supportsKeyboardFocus() const override; |
| 78 bool supportsInputMethod() const override; | 78 bool supportsInputMethod() const override; |
| 79 bool canProcessDrag() const override; | 79 bool canProcessDrag() const override; |
| 80 bool wantsWheelEvents() override; | 80 bool wantsWheelEvents() override; |
| 81 void layoutIfNeeded() override; | 81 void updateAllLifecyclePhases() override; |
| 82 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } | 82 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } |
| 83 | 83 |
| 84 // Widget methods | 84 // Widget methods |
| 85 void setFrameRect(const IntRect&) override; | 85 void setFrameRect(const IntRect&) override; |
| 86 void paint(GraphicsContext&, const CullRect&) const override; | 86 void paint(GraphicsContext&, const CullRect&) const override; |
| 87 void invalidateRect(const IntRect&) override; | 87 void invalidateRect(const IntRect&) override; |
| 88 void setFocus(bool, WebFocusType) override; | 88 void setFocus(bool, WebFocusType) override; |
| 89 void show() override; | 89 void show() override; |
| 90 void hide() override; | 90 void hide() override; |
| 91 void handleEvent(Event*) override; | 91 void handleEvent(Event*) override; |
| 92 void frameRectsChanged() override; | 92 void frameRectsChanged() override; |
| 93 void setParentVisible(bool) override; | 93 void setParentVisible(bool) override; |
| 94 void setParent(Widget*) override; | 94 void setParent(Widget*) override; |
| 95 void widgetGeometryMayHaveChanged() override; | 95 void widgetGeometryMayHaveChanged() override; |
| 96 bool isPluginContainer() const override { return true; } | 96 bool isPluginContainer() const override { return true; } |
| 97 void eventListenersRemoved() override; | 97 void eventListenersRemoved() override; |
| 98 | 98 |
| 99 // WebPluginContainer methods | 99 // WebPluginContainer methods |
| 100 WebElement element() override; | 100 WebElement element() override; |
| 101 void dispatchProgressEvent(const WebString& type, bool lengthComputable, uns
igned long long loaded, unsigned long long total, const WebString& url) override
; | 101 void dispatchProgressEvent(const WebString& type, bool lengthComputable, uns
igned long long loaded, unsigned long long total, const WebString& url) override
; |
| 102 void invalidate() override; | 102 void invalidate() override; |
| 103 void invalidateRect(const WebRect&) override; | 103 void invalidateRect(const WebRect&) override; |
| 104 void scrollRect(const WebRect&) override; | 104 void scrollRect(const WebRect&) override; |
| 105 void setNeedsLayout() override; | 105 void scheduleAnimation() override; |
| 106 void reportGeometry() override; | 106 void reportGeometry() override; |
| 107 void allowScriptObjects() override; | 107 void allowScriptObjects() override; |
| 108 void clearScriptObjects() override; | 108 void clearScriptObjects() override; |
| 109 NPObject* scriptableObjectForElement() override; | 109 NPObject* scriptableObjectForElement() override; |
| 110 v8::Local<v8::Object> v8ObjectForElement() override; | 110 v8::Local<v8::Object> v8ObjectForElement() override; |
| 111 WebString executeScriptURL(const WebURL&, bool popupsAllowed) override; | 111 WebString executeScriptURL(const WebURL&, bool popupsAllowed) override; |
| 112 void loadFrameRequest(const WebURLRequest&, const WebString& target) overrid
e; | 112 void loadFrameRequest(const WebURLRequest&, const WebString& target) overrid
e; |
| 113 bool isRectTopmost(const WebRect&) override; | 113 bool isRectTopmost(const WebRect&) override; |
| 114 void requestTouchEventType(TouchEventRequestType) override; | 114 void requestTouchEventType(TouchEventRequestType) override; |
| 115 void setWantsWheelEvents(bool) override; | 115 void setWantsWheelEvents(bool) override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 210 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
| 211 // Unlike Widget, we need not worry about object type for container. | 211 // Unlike Widget, we need not worry about object type for container. |
| 212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 212 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
| 213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 213 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
| 214 | 214 |
| 215 } // namespace blink | 215 } // namespace blink |
| 216 | 216 |
| 217 #endif | 217 #endif |
| OLD | NEW |