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

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

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix the order. Created 5 years, 9 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class DataObject; 69 class DataObject;
70 class Frame; 70 class Frame;
71 class FullscreenController; 71 class FullscreenController;
72 class InputMethodContext; 72 class InputMethodContext;
73 class LinkHighlight; 73 class LinkHighlight;
74 class PopupContainer; 74 class PopupContainer;
75 class LayerCompositor; 75 class LayerCompositor;
76 class TopControls; 76 class TopControls;
77 class UserGestureToken; 77 class UserGestureToken;
78 class WebActiveGestureAnimation; 78 class WebActiveGestureAnimation;
79 class WebCompositorAnimationTimeline;
79 class WebDevToolsAgentImpl; 80 class WebDevToolsAgentImpl;
80 class WebLayerTreeView; 81 class WebLayerTreeView;
81 class WebLocalFrameImpl; 82 class WebLocalFrameImpl;
82 class WebImage; 83 class WebImage;
83 class WebPagePopupImpl; 84 class WebPagePopupImpl;
84 class WebPlugin; 85 class WebPlugin;
85 class WebSettingsImpl; 86 class WebSettingsImpl;
86 87
87 struct WebSelectionBound; 88 struct WebSelectionBound;
88 89
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 return m_currentInputEvent; 437 return m_currentInputEvent;
437 } 438 }
438 439
439 GraphicsLayer* rootGraphicsLayer(); 440 GraphicsLayer* rootGraphicsLayer();
440 void setRootGraphicsLayer(GraphicsLayer*); 441 void setRootGraphicsLayer(GraphicsLayer*);
441 void scheduleCompositingLayerSync(); 442 void scheduleCompositingLayerSync();
442 GraphicsLayerFactory* graphicsLayerFactory() const; 443 GraphicsLayerFactory* graphicsLayerFactory() const;
443 LayerCompositor* compositor() const; 444 LayerCompositor* compositor() const;
444 void registerForAnimations(WebLayer*); 445 void registerForAnimations(WebLayer*);
445 void scheduleAnimation(); 446 void scheduleAnimation();
447 void setCompositorAnimationTimeline(WebCompositorAnimationTimeline*);
446 448
447 virtual void setVisibilityState(WebPageVisibilityState, bool) override; 449 virtual void setVisibilityState(WebPageVisibilityState, bool) override;
448 450
449 PopupContainer* selectPopup() const { return m_selectPopup.get(); } 451 PopupContainer* selectPopup() const { return m_selectPopup.get(); }
450 bool hasOpenedPopup() const { return m_selectPopup || m_pagePopup; } 452 bool hasOpenedPopup() const { return m_selectPopup || m_pagePopup; }
451 453
452 // Returns true if the event leads to scrolling. 454 // Returns true if the event leads to scrolling.
453 static bool mapKeyCodeForScroll( 455 static bool mapKeyCodeForScroll(
454 int keyCode, 456 int keyCode,
455 ScrollDirection*, 457 ScrollDirection*,
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 }; 776 };
775 777
776 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 778 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
777 // We have no ways to check if the specified WebView is an instance of 779 // We have no ways to check if the specified WebView is an instance of
778 // WebViewImpl because WebViewImpl is the only implementation of WebView. 780 // WebViewImpl because WebViewImpl is the only implementation of WebView.
779 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 781 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
780 782
781 } // namespace blink 783 } // namespace blink
782 784
783 #endif 785 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698