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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class ResourceError; 54 class ResourceError;
55 class ResourceResponse; 55 class ResourceResponse;
56 class TouchEvent; 56 class TouchEvent;
57 class WebPlugin; 57 class WebPlugin;
58 class WheelEvent; 58 class WheelEvent;
59 class Widget; 59 class Widget;
60 struct WebPrintParams; 60 struct WebPrintParams;
61 struct WebPrintPresetOptions; 61 struct WebPrintPresetOptions;
62 62
63 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine r, public LocalFrameLifecycleObserver { 63 class WebPluginContainerImpl final : public PluginView, public WebPluginContaine r, public LocalFrameLifecycleObserver {
64 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl); 64 USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl);
65 WILL_BE_USING_PRE_FINALIZER(WebPluginContainerImpl, dispose); 65 USING_PRE_FINALIZER(WebPluginContainerImpl, dispose);
66 public: 66 public:
67 static PassRefPtrWillBeRawPtr<WebPluginContainerImpl> create(HTMLPlugInEleme nt* element, WebPlugin* webPlugin) 67 static RawPtr<WebPluginContainerImpl> create(HTMLPlugInElement* element, Web Plugin* webPlugin)
68 { 68 {
69 return adoptRefWillBeNoop(new WebPluginContainerImpl(element, webPlugin) ); 69 return (new WebPluginContainerImpl(element, webPlugin));
70 } 70 }
71 71
72 // PluginView methods 72 // PluginView methods
73 WebLayer* platformLayer() const override; 73 WebLayer* platformLayer() const override;
74 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override; 74 v8::Local<v8::Object> scriptableObject(v8::Isolate*) override;
75 bool getFormValue(String&) override; 75 bool getFormValue(String&) override;
76 bool supportsKeyboardFocus() const override; 76 bool supportsKeyboardFocus() const override;
77 bool supportsInputMethod() const override; 77 bool supportsInputMethod() const override;
78 bool canProcessDrag() const override; 78 bool canProcessDrag() const override;
79 bool wantsWheelEvents() override; 79 bool wantsWheelEvents() override;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 IntRect& windowRect, 186 IntRect& windowRect,
187 IntRect& clipRect, 187 IntRect& clipRect,
188 IntRect& unobscuredRect, 188 IntRect& unobscuredRect,
189 Vector<IntRect>& cutOutRects); 189 Vector<IntRect>& cutOutRects);
190 void windowCutOutRects( 190 void windowCutOutRects(
191 const IntRect& frameRect, 191 const IntRect& frameRect,
192 Vector<IntRect>& cutOutRects); 192 Vector<IntRect>& cutOutRects);
193 193
194 friend class WebPluginContainerTest; 194 friend class WebPluginContainerTest;
195 195
196 RawPtrWillBeMember<HTMLPlugInElement> m_element; 196 Member<HTMLPlugInElement> m_element;
197 WebPlugin* m_webPlugin; 197 WebPlugin* m_webPlugin;
198 198
199 WebLayer* m_webLayer; 199 WebLayer* m_webLayer;
200 200
201 IntRect m_pendingInvalidationRect; 201 IntRect m_pendingInvalidationRect;
202 202
203 TouchEventRequestType m_touchEventRequestType; 203 TouchEventRequestType m_touchEventRequestType;
204 bool m_wantsWheelEvents; 204 bool m_wantsWheelEvents;
205 205
206 bool m_isDisposed; 206 bool m_isDisposed;
207 }; 207 };
208 208
209 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 209 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
210 // Unlike Widget, we need not worry about object type for container. 210 // Unlike Widget, we need not worry about object type for container.
211 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 211 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 212 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
213 213
214 } // namespace blink 214 } // namespace blink
215 215
216 #endif 216 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698