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

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

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Format. Created 5 years, 8 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
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "wtf/OwnPtr.h" 42 #include "wtf/OwnPtr.h"
43 #include "wtf/RefCounted.h" 43 #include "wtf/RefCounted.h"
44 44
45 namespace blink { 45 namespace blink {
46 class Frame; 46 class Frame;
47 class Element; 47 class Element;
48 class LocalFrame; 48 class LocalFrame;
49 class Page; 49 class Page;
50 class DeprecatedPaintLayerCompositor; 50 class DeprecatedPaintLayerCompositor;
51 class UserGestureToken; 51 class UserGestureToken;
52 class WebCompositorAnimationTimeline;
52 class WebLayer; 53 class WebLayer;
53 class WebLayerTreeView; 54 class WebLayerTreeView;
54 class WebLocalFrameImpl; 55 class WebLocalFrameImpl;
55 class WebMouseEvent; 56 class WebMouseEvent;
56 class WebMouseWheelEvent; 57 class WebMouseWheelEvent;
57 class WebViewImpl; 58 class WebViewImpl;
58 59
59 class WebFrameWidgetImpl final : public WebFrameWidget 60 class WebFrameWidgetImpl final : public WebFrameWidget
60 , public PageWidgetEventHandler 61 , public PageWidgetEventHandler
61 , public RefCounted<WebFrameWidgetImpl> { 62 , public RefCounted<WebFrameWidgetImpl> {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 Frame* focusedCoreFrame() const; 117 Frame* focusedCoreFrame() const;
117 118
118 // Returns the currently focused Element or null if no element has focus. 119 // Returns the currently focused Element or null if no element has focus.
119 Element* focusedElement() const; 120 Element* focusedElement() const;
120 121
121 void scheduleAnimation(); 122 void scheduleAnimation();
122 123
123 DeprecatedPaintLayerCompositor* compositor() const; 124 DeprecatedPaintLayerCompositor* compositor() const;
124 void suppressInvalidations(bool enable); 125 void suppressInvalidations(bool enable);
125 void setRootGraphicsLayer(GraphicsLayer*); 126 void setRootGraphicsLayer(GraphicsLayer*);
127 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
128 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
126 129
127 void setVisibilityState(WebPageVisibilityState, bool) override; 130 void setVisibilityState(WebPageVisibilityState, bool) override;
128 131
129 // Exposed for the purpose of overriding device metrics. 132 // Exposed for the purpose of overriding device metrics.
130 void sendResizeEventAndRepaint(); 133 void sendResizeEventAndRepaint();
131 134
132 void updateMainFrameLayoutSize(); 135 void updateMainFrameLayoutSize();
133 136
134 void setIgnoreInputEvents(bool newValue); 137 void setIgnoreInputEvents(bool newValue);
135 138
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool m_suppressNextKeypressEvent; 203 bool m_suppressNextKeypressEvent;
201 204
202 bool m_ignoreInputEvents; 205 bool m_ignoreInputEvents;
203 206
204 static const WebInputEvent* m_currentInputEvent; 207 static const WebInputEvent* m_currentInputEvent;
205 }; 208 };
206 209
207 } // namespace blink 210 } // namespace blink
208 211
209 #endif 212 #endif
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698