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

Side by Side Diff: Source/core/frame/PinchViewport.h

Issue 952813002: InlinedVisitor: Migrate frame to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // offset is set through the GraphicsLayer <-> CC sync mechanisms. Its contents is the page's 61 // offset is set through the GraphicsLayer <-> CC sync mechanisms. Its contents is the page's
62 // main FrameView, which corresponds to the outer viewport. The inner viewport i s always contained 62 // main FrameView, which corresponds to the outer viewport. The inner viewport i s always contained
63 // in the outer viewport and can pan within it. 63 // in the outer viewport and can pan within it.
64 class PinchViewport final : public NoBaseWillBeGarbageCollectedFinalized<PinchVi ewport>, public GraphicsLayerClient, public ScrollableArea { 64 class PinchViewport final : public NoBaseWillBeGarbageCollectedFinalized<PinchVi ewport>, public GraphicsLayerClient, public ScrollableArea {
65 public: 65 public:
66 static PassOwnPtrWillBeRawPtr<PinchViewport> create(FrameHost& host) 66 static PassOwnPtrWillBeRawPtr<PinchViewport> create(FrameHost& host)
67 { 67 {
68 return adoptPtrWillBeNoop(new PinchViewport(host)); 68 return adoptPtrWillBeNoop(new PinchViewport(host));
69 } 69 }
70 virtual ~PinchViewport(); 70 virtual ~PinchViewport();
71 virtual void trace(Visitor*); 71 DECLARE_VIRTUAL_TRACE();
72 72
73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*); 73 void attachToLayerTree(GraphicsLayer*, GraphicsLayerFactory*);
74 GraphicsLayer* rootGraphicsLayer() 74 GraphicsLayer* rootGraphicsLayer()
75 { 75 {
76 return m_rootTransformLayer.get(); 76 return m_rootTransformLayer.get();
77 } 77 }
78 GraphicsLayer* containerLayer() 78 GraphicsLayer* containerLayer()
79 { 79 {
80 return m_innerViewportContainerLayer.get(); 80 return m_innerViewportContainerLayer.get();
81 } 81 }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Offset of the pinch viewport from the main frame's origin, in CSS pixels. 210 // Offset of the pinch viewport from the main frame's origin, in CSS pixels.
211 FloatPoint m_offset; 211 FloatPoint m_offset;
212 float m_scale; 212 float m_scale;
213 IntSize m_size; 213 IntSize m_size;
214 float m_topControlsAdjustment; 214 float m_topControlsAdjustment;
215 }; 215 };
216 216
217 } // namespace blink 217 } // namespace blink
218 218
219 #endif // PinchViewport_h 219 #endif // PinchViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698