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

Side by Side Diff: third_party/WebKit/Source/core/frame/VisualViewport.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class GraphicsLayerFactory; 55 class GraphicsLayerFactory;
56 class IntRect; 56 class IntRect;
57 class IntSize; 57 class IntSize;
58 class LocalFrame; 58 class LocalFrame;
59 59
60 // Represents the visual viewport the user is currently seeing the page through. This 60 // Represents the visual viewport the user is currently seeing the page through. This
61 // class corresponds to the InnerViewport on the compositor. It is a ScrollableA rea; it's 61 // class corresponds to the InnerViewport on the compositor. It is a ScrollableA rea; it's
62 // offset is set through the GraphicsLayer <-> CC sync mechanisms. Its contents is the page's 62 // offset is set through the GraphicsLayer <-> CC sync mechanisms. Its contents is the page's
63 // main FrameView, which corresponds to the outer viewport. The inner viewport i s always contained 63 // main FrameView, which corresponds to the outer viewport. The inner viewport i s always contained
64 // in the outer viewport and can pan within it. 64 // in the outer viewport and can pan within it.
65 class CORE_EXPORT VisualViewport final : public NoBaseWillBeGarbageCollectedFina lized<VisualViewport>, public GraphicsLayerClient, public ScrollableArea { 65 class CORE_EXPORT VisualViewport final : public GarbageCollectedFinalized<Visual Viewport>, public GraphicsLayerClient, public ScrollableArea {
66 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(VisualViewport); 66 USING_GARBAGE_COLLECTED_MIXIN(VisualViewport);
67 public: 67 public:
68 static PassOwnPtrWillBeRawPtr<VisualViewport> create(FrameHost& host) 68 static RawPtr<VisualViewport> create(FrameHost& host)
69 { 69 {
70 return adoptPtrWillBeNoop(new VisualViewport(host)); 70 return (new VisualViewport(host));
71 } 71 }
72 ~VisualViewport() override; 72 ~VisualViewport() override;
73 73
74 DECLARE_VIRTUAL_TRACE(); 74 DECLARE_VIRTUAL_TRACE();
75 75
76 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); 76 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*);
77 GraphicsLayer* rootGraphicsLayer() 77 GraphicsLayer* rootGraphicsLayer()
78 { 78 {
79 return m_rootTransformLayer.get(); 79 return m_rootTransformLayer.get();
80 } 80 }
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 FloatPoint clampOffsetToBoundaries(const FloatPoint&); 219 FloatPoint clampOffsetToBoundaries(const FloatPoint&);
220 220
221 LocalFrame* mainFrame() const; 221 LocalFrame* mainFrame() const;
222 222
223 FrameHost& frameHost() const 223 FrameHost& frameHost() const
224 { 224 {
225 ASSERT(m_frameHost); 225 ASSERT(m_frameHost);
226 return *m_frameHost; 226 return *m_frameHost;
227 } 227 }
228 228
229 RawPtrWillBeMember<FrameHost> m_frameHost; 229 Member<FrameHost> m_frameHost;
230 OwnPtr<GraphicsLayer> m_rootTransformLayer; 230 OwnPtr<GraphicsLayer> m_rootTransformLayer;
231 OwnPtr<GraphicsLayer> m_innerViewportContainerLayer; 231 OwnPtr<GraphicsLayer> m_innerViewportContainerLayer;
232 OwnPtr<GraphicsLayer> m_overscrollElasticityLayer; 232 OwnPtr<GraphicsLayer> m_overscrollElasticityLayer;
233 OwnPtr<GraphicsLayer> m_pageScaleLayer; 233 OwnPtr<GraphicsLayer> m_pageScaleLayer;
234 OwnPtr<GraphicsLayer> m_innerViewportScrollLayer; 234 OwnPtr<GraphicsLayer> m_innerViewportScrollLayer;
235 OwnPtr<GraphicsLayer> m_overlayScrollbarHorizontal; 235 OwnPtr<GraphicsLayer> m_overlayScrollbarHorizontal;
236 OwnPtr<GraphicsLayer> m_overlayScrollbarVertical; 236 OwnPtr<GraphicsLayer> m_overlayScrollbarVertical;
237 OwnPtr<WebScrollbarLayer> m_webOverlayScrollbarHorizontal; 237 OwnPtr<WebScrollbarLayer> m_webOverlayScrollbarHorizontal;
238 OwnPtr<WebScrollbarLayer> m_webOverlayScrollbarVertical; 238 OwnPtr<WebScrollbarLayer> m_webOverlayScrollbarVertical;
239 239
240 // Offset of the visual viewport from the main frame's origin, in CSS pixels . 240 // Offset of the visual viewport from the main frame's origin, in CSS pixels .
241 FloatPoint m_offset; 241 FloatPoint m_offset;
242 float m_scale; 242 float m_scale;
243 IntSize m_size; 243 IntSize m_size;
244 float m_topControlsAdjustment; 244 float m_topControlsAdjustment;
245 float m_maxPageScale; 245 float m_maxPageScale;
246 bool m_trackPinchZoomStatsForPage; 246 bool m_trackPinchZoomStatsForPage;
247 }; 247 };
248 248
249 } // namespace blink 249 } // namespace blink
250 250
251 #endif // VisualViewport_h 251 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698