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

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: Remove unnecessary PLATFORM_EXPORT Created 3 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 Frame* focusedCoreFrame() const; 127 Frame* focusedCoreFrame() const;
128 128
129 // Returns the currently focused Element or null if no element has focus. 129 // Returns the currently focused Element or null if no element has focus.
130 Element* focusedElement() const; 130 Element* focusedElement() const;
131 131
132 PaintLayerCompositor* compositor() const; 132 PaintLayerCompositor* compositor() const;
133 133
134 // WebFrameWidgetBase overrides: 134 // WebFrameWidgetBase overrides:
135 bool forSubframe() const override { return true; } 135 bool forSubframe() const override { return true; }
136 void scheduleAnimation() override; 136 void scheduleAnimation() override;
137 CompositorProxyClient* createCompositorProxyClient() override; 137 CompositorWorkerProxyClient* createCompositorWorkerProxyClient() override;
138 AnimationWorkletProxyClient* createAnimationWorkletProxyClient() override;
139
138 WebWidgetClient* client() const override { return m_client; } 140 WebWidgetClient* client() const override { return m_client; }
139 void setRootGraphicsLayer(GraphicsLayer*) override; 141 void setRootGraphicsLayer(GraphicsLayer*) override;
140 void setRootLayer(WebLayer*) override; 142 void setRootLayer(WebLayer*) override;
141 WebLayerTreeView* getLayerTreeView() const override; 143 WebLayerTreeView* getLayerTreeView() const override;
142 CompositorAnimationHost* animationHost() const override; 144 CompositorAnimationHost* animationHost() const override;
143 HitTestResult coreHitTestResultAt(const WebPoint&) override; 145 HitTestResult coreHitTestResultAt(const WebPoint&) override;
144 146
145 // Exposed for the purpose of overriding device metrics. 147 // Exposed for the purpose of overriding device metrics.
146 void sendResizeEventAndRepaint(); 148 void sendResizeEventAndRepaint();
147 149
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // This method returns the focused frame belonging to this WebWidget, that 189 // This method returns the focused frame belonging to this WebWidget, that
188 // is, a focused frame with the same local root as the one corresponding 190 // is, a focused frame with the same local root as the one corresponding
189 // to this widget. It will return nullptr if no frame is focused or, the 191 // to this widget. It will return nullptr if no frame is focused or, the
190 // focused frame has a different local root. 192 // focused frame has a different local root.
191 LocalFrame* focusedLocalFrameInWidget() const; 193 LocalFrame* focusedLocalFrameInWidget() const;
192 194
193 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const; 195 WebPlugin* focusedPluginIfInputMethodSupported(LocalFrame*) const;
194 196
195 LocalFrame* focusedLocalFrameAvailableForIme() const; 197 LocalFrame* focusedLocalFrameAvailableForIme() const;
196 198
199 CompositorMutatorImpl& mutator();
200
197 WebWidgetClient* m_client; 201 WebWidgetClient* m_client;
198 202
199 // WebFrameWidget is associated with a subtree of the frame tree, 203 // WebFrameWidget is associated with a subtree of the frame tree,
200 // corresponding to a maximal connected tree of LocalFrames. This member 204 // corresponding to a maximal connected tree of LocalFrames. This member
201 // points to the root of that subtree. 205 // points to the root of that subtree.
202 Member<WebLocalFrameImpl> m_localRoot; 206 Member<WebLocalFrameImpl> m_localRoot;
203 207
204 WebSize m_size; 208 WebSize m_size;
205 209
206 // If set, the (plugin) node which has mouse capture. 210 // If set, the (plugin) node which has mouse capture.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 242
239 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 243 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
240 WebFrameWidgetBase, 244 WebFrameWidgetBase,
241 widget, 245 widget,
242 widget->forSubframe(), 246 widget->forSubframe(),
243 widget.forSubframe()); 247 widget.forSubframe());
244 248
245 } // namespace blink 249 } // namespace blink
246 250
247 #endif 251 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameWidgetBase.h ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698