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 13 matching lines...) Expand all Loading... |
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
25 * DAMAGE. | 25 * DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef PluginView_h | 28 #ifndef PluginView_h |
29 #define PluginView_h | 29 #define PluginView_h |
30 | 30 |
31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
32 #include "platform/FrameViewBase.h" | 32 #include "platform/FrameViewBase.h" |
33 #include "platform/scroll/ScrollTypes.h" | 33 #include "platform/scroll/ScrollTypes.h" |
| 34 #include "public/platform/WebFocusType.h" |
34 #include "v8/include/v8.h" | 35 #include "v8/include/v8.h" |
35 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
36 | 37 |
37 namespace blink { | 38 namespace blink { |
38 class WebLayer; | 39 class WebLayer; |
39 } | 40 } |
40 | 41 |
41 namespace blink { | 42 namespace blink { |
42 | 43 |
43 class ResourceResponse; | 44 class ResourceResponse; |
44 | 45 |
45 class CORE_EXPORT PluginView : public FrameViewBase { | 46 class CORE_EXPORT PluginView : public FrameViewBase { |
46 public: | 47 public: |
47 bool isPluginView() const final { return true; } | 48 bool isPluginView() const final { return true; } |
| 49 virtual void setFocused(bool, WebFocusType) {} |
48 | 50 |
49 virtual WebLayer* platformLayer() const { return 0; } | 51 virtual WebLayer* platformLayer() const { return 0; } |
50 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { | 52 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { |
51 return v8::Local<v8::Object>(); | 53 return v8::Local<v8::Object>(); |
52 } | 54 } |
53 virtual bool wantsWheelEvents() { return false; } | 55 virtual bool wantsWheelEvents() { return false; } |
54 virtual bool supportsKeyboardFocus() const { return false; } | 56 virtual bool supportsKeyboardFocus() const { return false; } |
55 virtual bool supportsInputMethod() const { return false; } | 57 virtual bool supportsInputMethod() const { return false; } |
56 virtual bool canProcessDrag() const { return false; } | 58 virtual bool canProcessDrag() const { return false; } |
57 | 59 |
58 virtual void didReceiveResponse(const ResourceResponse&) {} | 60 virtual void didReceiveResponse(const ResourceResponse&) {} |
59 virtual void didReceiveData(const char*, int) {} | 61 virtual void didReceiveData(const char*, int) {} |
60 | 62 |
61 virtual void updateAllLifecyclePhases() {} | 63 virtual void updateAllLifecyclePhases() {} |
62 virtual void invalidatePaintIfNeeded() {} | 64 virtual void invalidatePaintIfNeeded() {} |
63 | 65 |
64 protected: | 66 protected: |
65 PluginView() : FrameViewBase() {} | 67 PluginView() : FrameViewBase() {} |
66 }; | 68 }; |
67 | 69 |
68 DEFINE_TYPE_CASTS(PluginView, | 70 DEFINE_TYPE_CASTS(PluginView, |
69 FrameViewBase, | 71 FrameViewBase, |
70 frameViewBase, | 72 frameViewBase, |
71 frameViewBase->isPluginView(), | 73 frameViewBase->isPluginView(), |
72 frameViewBase.isPluginView()); | 74 frameViewBase.isPluginView()); |
73 | 75 |
74 } // namespace blink | 76 } // namespace blink |
75 | 77 |
76 #endif // PluginView_h | 78 #endif // PluginView_h |
OLD | NEW |