| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual bool supportsKeyboardFocus() const { return false; } | 73 virtual bool supportsKeyboardFocus() const { return false; } |
| 74 virtual bool canProcessDrag() const { return false; } | 74 virtual bool canProcessDrag() const { return false; } |
| 75 | 75 |
| 76 virtual bool shouldAlwaysAutoStart() const { return false; } | 76 virtual bool shouldAlwaysAutoStart() const { return false; } |
| 77 | 77 |
| 78 virtual bool shouldAllowNavigationFromDrags() const { return false; } | 78 virtual bool shouldAllowNavigationFromDrags() const { return false; } |
| 79 | 79 |
| 80 virtual bool isPluginViewBase() const { return true; } | 80 virtual bool isPluginViewBase() const { return true; } |
| 81 | 81 |
| 82 protected: | 82 protected: |
| 83 explicit PluginViewBase(PlatformWidget widget = 0) : Widget(widget) { } | 83 PluginViewBase() : Widget() { } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 inline PluginViewBase* toPluginViewBase(Widget* widget) | 86 inline PluginViewBase* toPluginViewBase(Widget* widget) |
| 87 { | 87 { |
| 88 ASSERT(!widget || widget->isPluginViewBase()); | 88 ASSERT(!widget || widget->isPluginViewBase()); |
| 89 return static_cast<PluginViewBase*>(widget); | 89 return static_cast<PluginViewBase*>(widget); |
| 90 } | 90 } |
| 91 | 91 |
| 92 inline const PluginViewBase* toPluginViewBase(const Widget* widget) | 92 inline const PluginViewBase* toPluginViewBase(const Widget* widget) |
| 93 { | 93 { |
| 94 ASSERT(!widget || widget->isPluginViewBase()); | 94 ASSERT(!widget || widget->isPluginViewBase()); |
| 95 return static_cast<const PluginViewBase*>(widget); | 95 return static_cast<const PluginViewBase*>(widget); |
| 96 } | 96 } |
| 97 | 97 |
| 98 // This will catch anyone doing an unnecessary cast. | 98 // This will catch anyone doing an unnecessary cast. |
| 99 void toPluginViewBase(const PluginViewBase*); | 99 void toPluginViewBase(const PluginViewBase*); |
| 100 | 100 |
| 101 } // namespace WebCore | 101 } // namespace WebCore |
| 102 | 102 |
| 103 #endif // PluginWidget_h | 103 #endif // PluginWidget_h |
| OLD | NEW |