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 14 matching lines...) Expand all Loading... |
25 */ | 25 */ |
26 | 26 |
27 #ifndef PluginView_h | 27 #ifndef PluginView_h |
28 #define PluginView_h | 28 #define PluginView_h |
29 | 29 |
30 #include "platform/Widget.h" | 30 #include "platform/Widget.h" |
31 #include "platform/scroll/ScrollTypes.h" | 31 #include "platform/scroll/ScrollTypes.h" |
32 #include "wtf/text/WTFString.h" | 32 #include "wtf/text/WTFString.h" |
33 #include <v8.h> | 33 #include <v8.h> |
34 | 34 |
35 struct NPObject; | |
36 | |
37 namespace blink { class WebLayer; } | 35 namespace blink { class WebLayer; } |
38 | 36 |
39 namespace blink { | 37 namespace blink { |
40 | 38 |
41 class ResourceError; | 39 class ResourceError; |
42 class ResourceResponse; | 40 class ResourceResponse; |
43 class Scrollbar; | |
44 | 41 |
45 class PluginView : public Widget { | 42 class PluginView : public Widget { |
46 public: | 43 public: |
47 virtual bool isPluginView() const override final { return true; } | 44 virtual bool isPluginView() const override final { return true; } |
48 | 45 |
49 virtual blink::WebLayer* platformLayer() const { return 0; } | 46 virtual blink::WebLayer* platformLayer() const { return 0; } |
50 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { return v8::Lo
cal<v8::Object>(); } | 47 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) { return v8::Lo
cal<v8::Object>(); } |
51 virtual bool getFormValue(String&) { return false; } | 48 virtual bool getFormValue(String&) { return false; } |
52 virtual bool wantsWheelEvents() { return false; } | 49 virtual bool wantsWheelEvents() { return false; } |
53 virtual bool supportsKeyboardFocus() const { return false; } | 50 virtual bool supportsKeyboardFocus() const { return false; } |
(...skipping 12 matching lines...) Expand all Loading... |
66 | 63 |
67 protected: | 64 protected: |
68 PluginView() : Widget() { } | 65 PluginView() : Widget() { } |
69 }; | 66 }; |
70 | 67 |
71 DEFINE_TYPE_CASTS(PluginView, Widget, widget, widget->isPluginView(), widget.isP
luginView()); | 68 DEFINE_TYPE_CASTS(PluginView, Widget, widget, widget->isPluginView(), widget.isP
luginView()); |
72 | 69 |
73 } // namespace blink | 70 } // namespace blink |
74 | 71 |
75 #endif // PluginView_h | 72 #endif // PluginView_h |
OLD | NEW |