| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 class Scrollbar; | 37 class Scrollbar; |
| 38 | 38 |
| 39 // PluginViewBase is a widget that all plug-in views inherit from, both in Webki
t and WebKit2. | 39 // PluginViewBase is a widget that all plug-in views inherit from, both in Webki
t and WebKit2. |
| 40 // It's intended as a stopgap measure until we can merge all plug-in views into
a single plug-in view. | 40 // It's intended as a stopgap measure until we can merge all plug-in views into
a single plug-in view. |
| 41 class PluginViewBase : public Widget { | 41 class PluginViewBase : public Widget { |
| 42 public: | 42 public: |
| 43 virtual PlatformLayer* platformLayer() const { return 0; } | 43 virtual PlatformLayer* platformLayer() const { return 0; } |
| 44 | 44 |
| 45 virtual NPObject* scriptableObject() { return 0; } | 45 virtual NPObject* scriptableObject() { return 0; } |
| 46 virtual void storageBlockingStateChanged() { } | |
| 47 virtual bool getFormValue(String&) { return false; } | 46 virtual bool getFormValue(String&) { return false; } |
| 48 virtual bool scroll(ScrollDirection, ScrollGranularity) { return false; } | 47 virtual bool scroll(ScrollDirection, ScrollGranularity) { return false; } |
| 49 | 48 |
| 50 // A plug-in can ask WebKit to handle scrollbars for it. | 49 // A plug-in can ask WebKit to handle scrollbars for it. |
| 51 virtual Scrollbar* horizontalScrollbar() { return 0; } | 50 virtual Scrollbar* horizontalScrollbar() { return 0; } |
| 52 virtual Scrollbar* verticalScrollbar() { return 0; } | 51 virtual Scrollbar* verticalScrollbar() { return 0; } |
| 53 | 52 |
| 54 // FIXME: This is a hack that works around the fact that the WebKit2 PluginV
iew isn't a ScrollableArea. | 53 // FIXME: This is a hack that works around the fact that the WebKit2 PluginV
iew isn't a ScrollableArea. |
| 55 virtual bool wantsWheelEvents() { return false; } | 54 virtual bool wantsWheelEvents() { return false; } |
| 56 virtual bool supportsKeyboardFocus() const { return false; } | 55 virtual bool supportsKeyboardFocus() const { return false; } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 77 ASSERT(!widget || widget->isPluginViewBase()); | 76 ASSERT(!widget || widget->isPluginViewBase()); |
| 78 return static_cast<const PluginViewBase*>(widget); | 77 return static_cast<const PluginViewBase*>(widget); |
| 79 } | 78 } |
| 80 | 79 |
| 81 // This will catch anyone doing an unnecessary cast. | 80 // This will catch anyone doing an unnecessary cast. |
| 82 void toPluginViewBase(const PluginViewBase*); | 81 void toPluginViewBase(const PluginViewBase*); |
| 83 | 82 |
| 84 } // namespace WebCore | 83 } // namespace WebCore |
| 85 | 84 |
| 86 #endif // PluginWidget_h | 85 #endif // PluginWidget_h |
| OLD | NEW |