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

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

Issue 2559273003: Blink Compositor Animation: Introduce CompositorAnimationHost correctly. (Closed)
Patch Set: Allocate on stack in unit tests. 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) 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "web/WebExport.h" 65 #include "web/WebExport.h"
66 #include "wtf/Compiler.h" 66 #include "wtf/Compiler.h"
67 #include "wtf/HashSet.h" 67 #include "wtf/HashSet.h"
68 #include "wtf/RefCounted.h" 68 #include "wtf/RefCounted.h"
69 #include "wtf/Vector.h" 69 #include "wtf/Vector.h"
70 #include <memory> 70 #include <memory>
71 71
72 namespace blink { 72 namespace blink {
73 73
74 class BrowserControls; 74 class BrowserControls;
75 class CompositorAnimationHost;
75 class DevToolsEmulator; 76 class DevToolsEmulator;
76 class Frame; 77 class Frame;
77 class FullscreenController; 78 class FullscreenController;
78 class InspectorOverlay; 79 class InspectorOverlay;
79 class LinkHighlightImpl; 80 class LinkHighlightImpl;
80 class PageOverlay; 81 class PageOverlay;
81 class PageScaleConstraintsSet; 82 class PageScaleConstraintsSet;
82 class PaintLayerCompositor; 83 class PaintLayerCompositor;
83 class UserGestureToken; 84 class UserGestureToken;
84 class WebActiveGestureAnimation; 85 class WebActiveGestureAnimation;
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // Whether the user can press tab to focus links. 682 // Whether the user can press tab to focus links.
682 bool m_tabsToLinks; 683 bool m_tabsToLinks;
683 684
684 // If set, the (plugin) node which has mouse capture. 685 // If set, the (plugin) node which has mouse capture.
685 Persistent<Node> m_mouseCaptureNode; 686 Persistent<Node> m_mouseCaptureNode;
686 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; 687 RefPtr<UserGestureToken> m_mouseCaptureGestureToken;
687 688
688 RefPtr<UserGestureToken> m_pointerLockGestureToken; 689 RefPtr<UserGestureToken> m_pointerLockGestureToken;
689 690
690 WebLayerTreeView* m_layerTreeView; 691 WebLayerTreeView* m_layerTreeView;
692 std::unique_ptr<CompositorAnimationHost> m_compositorAnimationHost;
693
691 WebLayer* m_rootLayer; 694 WebLayer* m_rootLayer;
692 GraphicsLayer* m_rootGraphicsLayer; 695 GraphicsLayer* m_rootGraphicsLayer;
693 GraphicsLayer* m_visualViewportContainerLayer; 696 GraphicsLayer* m_visualViewportContainerLayer;
694 bool m_matchesHeuristicsForGpuRasterization; 697 bool m_matchesHeuristicsForGpuRasterization;
695 static const WebInputEvent* m_currentInputEvent; 698 static const WebInputEvent* m_currentInputEvent;
696 699
697 MediaKeysClientImpl m_mediaKeysClientImpl; 700 MediaKeysClientImpl m_mediaKeysClientImpl;
698 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; 701 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation;
699 WebPoint m_positionOnFlingStart; 702 WebPoint m_positionOnFlingStart;
700 WebPoint m_globalPositionOnFlingStart; 703 WebPoint m_globalPositionOnFlingStart;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 741 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
739 }; 742 };
740 743
741 // We have no ways to check if the specified WebView is an instance of 744 // We have no ways to check if the specified WebView is an instance of
742 // WebViewImpl because WebViewImpl is the only implementation of WebView. 745 // WebViewImpl because WebViewImpl is the only implementation of WebView.
743 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
744 747
745 } // namespace blink 748 } // namespace blink
746 749
747 #endif 750 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698