Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: third_party/WebKit/Source/core/plugins/PluginView.h

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
34 #include "platform/scroll/ScrollTypes.h" 34 #include "platform/scroll/ScrollTypes.h"
35 #include "platform/wtf/text/WTFString.h" 35 #include "platform/wtf/text/WTFString.h"
36 #include "public/platform/WebFocusType.h" 36 #include "public/platform/WebFocusType.h"
37 #include "v8/include/v8.h" 37 #include "v8/include/v8.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class Event; 41 class Event;
42 class ResourceResponse; 42 class ResourceResponse;
43 class WebLayer; 43 class WebLayer;
44 class WebPluginContainerBase;
44 45
45 // TODO(joelhockey): Remove this class. 46 // TODO(joelhockey): Remove this class.
46 // The only implementation of this class is web/WebPluginContainerImpl. 47 // The only implementation of this class is web/WebPluginContainerImpl.
47 // It can be used directly. 48 // It can be used directly.
48 class CORE_EXPORT PluginView : public FrameOrPlugin { 49 class CORE_EXPORT PluginView : public FrameOrPlugin {
49 public: 50 public:
50 virtual ~PluginView() {} 51 virtual ~PluginView() {}
51 52
52 bool IsPluginView() const override { return true; } 53 bool IsPluginView() const override { return true; }
53 54
(...skipping 11 matching lines...) Expand all
65 virtual bool WantsWheelEvents() { return false; } 66 virtual bool WantsWheelEvents() { return false; }
66 virtual bool SupportsKeyboardFocus() const { return false; } 67 virtual bool SupportsKeyboardFocus() const { return false; }
67 virtual bool SupportsInputMethod() const { return false; } 68 virtual bool SupportsInputMethod() const { return false; }
68 virtual bool CanProcessDrag() const { return false; } 69 virtual bool CanProcessDrag() const { return false; }
69 70
70 virtual void DidReceiveResponse(const ResourceResponse&) {} 71 virtual void DidReceiveResponse(const ResourceResponse&) {}
71 virtual void DidReceiveData(const char*, int) {} 72 virtual void DidReceiveData(const char*, int) {}
72 73
73 virtual void UpdateAllLifecyclePhases() {} 74 virtual void UpdateAllLifecyclePhases() {}
74 virtual void InvalidatePaint() {} 75 virtual void InvalidatePaint() {}
76 virtual WebPluginContainerBase* GetWebPluginContainerBase() const {
77 return nullptr;
78 }
75 }; 79 };
76 80
77 DEFINE_TYPE_CASTS(PluginView, 81 DEFINE_TYPE_CASTS(PluginView,
78 FrameOrPlugin, 82 FrameOrPlugin,
79 frame_or_plugin, 83 frame_or_plugin,
80 frame_or_plugin->IsPluginView(), 84 frame_or_plugin->IsPluginView(),
81 frame_or_plugin.IsPluginView()); 85 frame_or_plugin.IsPluginView());
82 86
83 } // namespace blink 87 } // namespace blink
84 88
85 #endif // PluginView_h 89 #endif // PluginView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698