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

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

Issue 2342103002: Refactor the way PaintArtifactCompositor is attached and used. (Closed)
Patch Set: none Created 4 years, 3 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 Element* focusedElement() const; 131 Element* focusedElement() const;
132 132
133 PaintLayerCompositor* compositor() const; 133 PaintLayerCompositor* compositor() const;
134 134
135 // WebFrameWidgetBase overrides: 135 // WebFrameWidgetBase overrides:
136 bool forSubframe() const override { return true; } 136 bool forSubframe() const override { return true; }
137 void scheduleAnimation() override; 137 void scheduleAnimation() override;
138 CompositorProxyClient* createCompositorProxyClient() override; 138 CompositorProxyClient* createCompositorProxyClient() override;
139 WebWidgetClient* client() const override { return m_client; } 139 WebWidgetClient* client() const override { return m_client; }
140 void setRootGraphicsLayer(GraphicsLayer*) override; 140 void setRootGraphicsLayer(GraphicsLayer*) override;
141 void setRootLayer(WebLayer*) override;
141 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid e; 142 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid e;
142 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid e; 143 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid e;
143 144
144 // Exposed for the purpose of overriding device metrics. 145 // Exposed for the purpose of overriding device metrics.
145 void sendResizeEventAndRepaint(); 146 void sendResizeEventAndRepaint();
146 147
147 void updateMainFrameLayoutSize(); 148 void updateMainFrameLayoutSize();
148 149
149 void setIgnoreInputEvents(bool newValue); 150 void setIgnoreInputEvents(bool newValue);
150 151
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 WebColor m_baseBackgroundColor; 252 WebColor m_baseBackgroundColor;
252 253
253 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; 254 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive;
254 }; 255 };
255 256
256 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub frame(), widget.forSubframe()); 257 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub frame(), widget.forSubframe());
257 258
258 } // namespace blink 259 } // namespace blink
259 260
260 #endif 261 #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