| 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 26 matching lines...) Expand all Loading... |
| 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() { } | 46 virtual void storageBlockingStateChanged() { } |
| 47 virtual void privateBrowsingStateChanged(bool) { } | |
| 48 virtual bool getFormValue(String&) { return false; } | 47 virtual bool getFormValue(String&) { return false; } |
| 49 virtual bool scroll(ScrollDirection, ScrollGranularity) { return false; } | 48 virtual bool scroll(ScrollDirection, ScrollGranularity) { return false; } |
| 50 | 49 |
| 51 // A plug-in can ask WebKit to handle scrollbars for it. | 50 // A plug-in can ask WebKit to handle scrollbars for it. |
| 52 virtual Scrollbar* horizontalScrollbar() { return 0; } | 51 virtual Scrollbar* horizontalScrollbar() { return 0; } |
| 53 virtual Scrollbar* verticalScrollbar() { return 0; } | 52 virtual Scrollbar* verticalScrollbar() { return 0; } |
| 54 | 53 |
| 55 // FIXME: This is a hack that works around the fact that the WebKit2 PluginV
iew isn't a ScrollableArea. | 54 // FIXME: This is a hack that works around the fact that the WebKit2 PluginV
iew isn't a ScrollableArea. |
| 56 virtual bool wantsWheelEvents() { return false; } | 55 virtual bool wantsWheelEvents() { return false; } |
| 57 virtual bool supportsKeyboardFocus() const { return false; } | 56 virtual bool supportsKeyboardFocus() const { return false; } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 78 ASSERT(!widget || widget->isPluginViewBase()); | 77 ASSERT(!widget || widget->isPluginViewBase()); |
| 79 return static_cast<const PluginViewBase*>(widget); | 78 return static_cast<const PluginViewBase*>(widget); |
| 80 } | 79 } |
| 81 | 80 |
| 82 // This will catch anyone doing an unnecessary cast. | 81 // This will catch anyone doing an unnecessary cast. |
| 83 void toPluginViewBase(const PluginViewBase*); | 82 void toPluginViewBase(const PluginViewBase*); |
| 84 | 83 |
| 85 } // namespace WebCore | 84 } // namespace WebCore |
| 86 | 85 |
| 87 #endif // PluginWidget_h | 86 #endif // PluginWidget_h |
| OLD | NEW |