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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool getFormValue(String&) override; | 74 bool getFormValue(String&) override; |
75 bool supportsKeyboardFocus() const override; | 75 bool supportsKeyboardFocus() const override; |
76 bool supportsInputMethod() const override; | 76 bool supportsInputMethod() const override; |
77 bool canProcessDrag() const override; | 77 bool canProcessDrag() const override; |
78 bool wantsWheelEvents() override; | 78 bool wantsWheelEvents() override; |
79 void layoutIfNeeded() override; | 79 void layoutIfNeeded() override; |
80 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } | 80 void invalidatePaintIfNeeded() override { issuePaintInvalidations(); } |
81 | 81 |
82 // Widget methods | 82 // Widget methods |
83 void setFrameRect(const IntRect&) override; | 83 void setFrameRect(const IntRect&) override; |
84 void paint(GraphicsContext*, const CullRect&) const override; | 84 void paint(GraphicsContext&, const CullRect&) const override; |
85 void invalidateRect(const IntRect&) override; | 85 void invalidateRect(const IntRect&) override; |
86 void setFocus(bool, WebFocusType) override; | 86 void setFocus(bool, WebFocusType) override; |
87 void show() override; | 87 void show() override; |
88 void hide() override; | 88 void hide() override; |
89 void handleEvent(Event*) override; | 89 void handleEvent(Event*) override; |
90 void frameRectsChanged() override; | 90 void frameRectsChanged() override; |
91 void setParentVisible(bool) override; | 91 void setParentVisible(bool) override; |
92 void setParent(Widget*) override; | 92 void setParent(Widget*) override; |
93 void widgetPositionsUpdated() override; | 93 void widgetPositionsUpdated() override; |
94 bool isPluginContainer() const override { return true; } | 94 bool isPluginContainer() const override { return true; } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 }; | 214 }; |
215 | 215 |
216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); | 216 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai
ner(), widget.isPluginContainer()); |
217 // Unlike Widget, we need not worry about object type for container. | 217 // Unlike Widget, we need not worry about object type for container. |
218 // WebPluginContainerImpl is the only subclass of WebPluginContainer. | 218 // WebPluginContainerImpl is the only subclass of WebPluginContainer. |
219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); | 219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t
rue); |
220 | 220 |
221 } // namespace blink | 221 } // namespace blink |
222 | 222 |
223 #endif | 223 #endif |
OLD | NEW |