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

Side by Side Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class Page; 52 class Page;
53 class PaintLayerCompositor; 53 class PaintLayerCompositor;
54 class UserGestureToken; 54 class UserGestureToken;
55 class WebCompositorAnimationTimeline; 55 class WebCompositorAnimationTimeline;
56 class WebLayer; 56 class WebLayer;
57 class WebLayerTreeView; 57 class WebLayerTreeView;
58 class WebMouseEvent; 58 class WebMouseEvent;
59 class WebMouseWheelEvent; 59 class WebMouseWheelEvent;
60 class WebFrameWidgetImpl; 60 class WebFrameWidgetImpl;
61 61
62 using WebFrameWidgetsSet = WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<We bFrameWidgetImpl>>; 62 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>> ;
63 63
64 class WebFrameWidgetImpl final : public RefCountedWillBeGarbageCollectedFinalize d<WebFrameWidgetImpl> 64 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget Impl>
65 , public WebFrameWidget 65 , public WebFrameWidget
66 , public PageWidgetEventHandler { 66 , public PageWidgetEventHandler {
67 public: 67 public:
68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); 68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*);
69 static WebFrameWidgetsSet& allInstances(); 69 static WebFrameWidgetsSet& allInstances();
70 70
71 // WebWidget functions: 71 // WebWidget functions:
72 void close() override; 72 void close() override;
73 WebSize size() override; 73 WebSize size() override;
74 void willStartLiveResize() override; 74 void willStartLiveResize() override;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; 192 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override;
193 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; 193 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override;
194 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; 194 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override;
195 195
196 WebViewImpl* view() const { return m_localRoot->viewImpl(); } 196 WebViewImpl* view() const { return m_localRoot->viewImpl(); }
197 197
198 WebWidgetClient* m_client; 198 WebWidgetClient* m_client;
199 199
200 // WebFrameWidget is associated with a subtree of the frame tree, correspond ing to a maximal 200 // WebFrameWidget is associated with a subtree of the frame tree, correspond ing to a maximal
201 // connected tree of LocalFrames. This member points to the root of that sub tree. 201 // connected tree of LocalFrames. This member points to the root of that sub tree.
202 RawPtrWillBeMember<WebLocalFrameImpl> m_localRoot; 202 Member<WebLocalFrameImpl> m_localRoot;
203 203
204 WebSize m_size; 204 WebSize m_size;
205 205
206 // If set, the (plugin) node which has mouse capture. 206 // If set, the (plugin) node which has mouse capture.
207 RefPtrWillBeMember<Node> m_mouseCaptureNode; 207 Member<Node> m_mouseCaptureNode;
208 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 208 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
209 209
210 WebLayerTreeView* m_layerTreeView; 210 WebLayerTreeView* m_layerTreeView;
211 WebLayer* m_rootLayer; 211 WebLayer* m_rootLayer;
212 GraphicsLayer* m_rootGraphicsLayer; 212 GraphicsLayer* m_rootGraphicsLayer;
213 bool m_isAcceleratedCompositingActive; 213 bool m_isAcceleratedCompositingActive;
214 bool m_layerTreeViewClosed; 214 bool m_layerTreeViewClosed;
215 215
216 bool m_suppressNextKeypressEvent; 216 bool m_suppressNextKeypressEvent;
217 217
218 bool m_ignoreInputEvents; 218 bool m_ignoreInputEvents;
219 219
220 static const WebInputEvent* m_currentInputEvent; 220 static const WebInputEvent* m_currentInputEvent;
221 221
222 #if ENABLE(OILPAN) 222 #if ENABLE(OILPAN)
223 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; 223 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
224 #endif 224 #endif
225 }; 225 };
226 226
227 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe()); 227 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram e(), widget.forSubframe());
228 228
229 } // namespace blink 229 } // namespace blink
230 230
231 #endif 231 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698