OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // The only implementation of this class is web/WebPluginContainerImpl. | 47 // The only implementation of this class is web/WebPluginContainerImpl. |
48 // It can be used directly. | 48 // It can be used directly. |
49 class CORE_EXPORT PluginView : public FrameOrPlugin { | 49 class CORE_EXPORT PluginView : public FrameOrPlugin { |
50 public: | 50 public: |
51 virtual ~PluginView() {} | 51 virtual ~PluginView() {} |
52 | 52 |
53 bool IsPluginView() const override { return true; } | 53 bool IsPluginView() const override { return true; } |
54 | 54 |
55 virtual void SetParent(FrameView*) = 0; | 55 virtual void SetParent(FrameView*) = 0; |
56 virtual FrameView* Parent() const = 0; | 56 virtual FrameView* Parent() const = 0; |
| 57 virtual void SetFrameOrPluginState(FrameOrPluginState) = 0; |
| 58 virtual FrameOrPluginState GetFrameOrPluginState() const = 0; |
57 virtual void SetParentVisible(bool) = 0; | 59 virtual void SetParentVisible(bool) = 0; |
58 virtual void SetFocused(bool, WebFocusType) = 0; | 60 virtual void SetFocused(bool, WebFocusType) = 0; |
59 virtual void FrameRectsChanged() = 0; | 61 virtual void FrameRectsChanged() = 0; |
60 virtual void GeometryMayHaveChanged() = 0; | 62 virtual void GeometryMayHaveChanged() = 0; |
61 virtual void HandleEvent(Event*) = 0; | 63 virtual void HandleEvent(Event*) = 0; |
62 virtual void EventListenersRemoved() = 0; | 64 virtual void EventListenersRemoved() = 0; |
63 virtual bool IsPluginContainer() const { return false; } | 65 virtual bool IsPluginContainer() const { return false; } |
64 virtual bool IsErrorplaceholder() { return false; } | 66 virtual bool IsErrorplaceholder() { return false; } |
65 | 67 |
66 virtual WebLayer* PlatformLayer() const { return 0; } | 68 virtual WebLayer* PlatformLayer() const { return 0; } |
(...skipping 14 matching lines...) Expand all Loading... |
81 | 83 |
82 DEFINE_TYPE_CASTS(PluginView, | 84 DEFINE_TYPE_CASTS(PluginView, |
83 FrameOrPlugin, | 85 FrameOrPlugin, |
84 frame_or_plugin, | 86 frame_or_plugin, |
85 frame_or_plugin->IsPluginView(), | 87 frame_or_plugin->IsPluginView(), |
86 frame_or_plugin.IsPluginView()); | 88 frame_or_plugin.IsPluginView()); |
87 | 89 |
88 } // namespace blink | 90 } // namespace blink |
89 | 91 |
90 #endif // PluginView_h | 92 #endif // PluginView_h |
OLD | NEW |