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

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

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: address feedback Created 4 years 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Frame* focusedCoreFrame() const; 129 Frame* focusedCoreFrame() const;
130 130
131 // Returns the currently focused Element or null if no element has focus. 131 // Returns the currently focused Element or null if no element has focus.
132 Element* focusedElement() const; 132 Element* focusedElement() const;
133 133
134 PaintLayerCompositor* compositor() const; 134 PaintLayerCompositor* compositor() const;
135 135
136 // WebFrameWidgetBase overrides: 136 // WebFrameWidgetBase overrides:
137 bool forSubframe() const override { return true; } 137 bool forSubframe() const override { return true; }
138 void scheduleAnimation() override; 138 void scheduleAnimation() override;
139 CompositorProxyClient* createCompositorProxyClient() override; 139 CompositorProxyClientFactory* compositorProxyClientFactory() override;
140 WebWidgetClient* client() const override { return m_client; } 140 WebWidgetClient* client() const override { return m_client; }
141 void setRootGraphicsLayer(GraphicsLayer*) override; 141 void setRootGraphicsLayer(GraphicsLayer*) override;
142 void setRootLayer(WebLayer*) override; 142 void setRootLayer(WebLayer*) override;
143 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; 143 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) override;
144 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override; 144 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) override;
145 HitTestResult coreHitTestResultAt(const WebPoint&) override; 145 HitTestResult coreHitTestResultAt(const WebPoint&) override;
146 146
147 // Exposed for the purpose of overriding device metrics. 147 // Exposed for the purpose of overriding device metrics.
148 void sendResizeEventAndRepaint(); 148 void sendResizeEventAndRepaint();
149 149
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 WebSize m_size; 208 WebSize m_size;
209 209
210 // If set, the (plugin) node which has mouse capture. 210 // If set, the (plugin) node which has mouse capture.
211 Member<Node> m_mouseCaptureNode; 211 Member<Node> m_mouseCaptureNode;
212 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 212 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
213 213
214 // This is owned by the LayerTreeHostImpl, and should only be used on the 214 // This is owned by the LayerTreeHostImpl, and should only be used on the
215 // compositor thread. The LayerTreeHostImpl is indirectly owned by this 215 // compositor thread. The LayerTreeHostImpl is indirectly owned by this
216 // class so this pointer should be valid until this class is destructed. 216 // class so this pointer should be valid until this class is destructed.
217 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; 217 CrossThreadPersistent<CompositorMutatorImpl> m_mutator;
218 Member<CompositorProxyClientFactoryImpl> m_proxyClientFactory;
218 219
219 WebLayerTreeView* m_layerTreeView; 220 WebLayerTreeView* m_layerTreeView;
220 WebLayer* m_rootLayer; 221 WebLayer* m_rootLayer;
221 GraphicsLayer* m_rootGraphicsLayer; 222 GraphicsLayer* m_rootGraphicsLayer;
222 bool m_isAcceleratedCompositingActive; 223 bool m_isAcceleratedCompositingActive;
223 bool m_layerTreeViewClosed; 224 bool m_layerTreeViewClosed;
224 225
225 bool m_suppressNextKeypressEvent; 226 bool m_suppressNextKeypressEvent;
226 227
227 bool m_ignoreInputEvents; 228 bool m_ignoreInputEvents;
(...skipping 13 matching lines...) Expand all
241 242
242 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 243 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
243 WebFrameWidgetBase, 244 WebFrameWidgetBase,
244 widget, 245 widget,
245 widget->forSubframe(), 246 widget->forSubframe(),
246 widget.forSubframe()); 247 widget.forSubframe());
247 248
248 } // namespace blink 249 } // namespace blink
249 250
250 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698