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

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

Issue 2070563002: Seperate DOMVisualViewport from Blink's VisualViewport class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 65 class CORE_EXPORT VisualViewport final
66 : public GarbageCollectedFinalized<VisualViewport> 66 : public GarbageCollectedFinalized<VisualViewport>
67 , public GraphicsLayerClient 67 , public GraphicsLayerClient
68 , public ScriptWrappable
69 , public ScrollableArea { 68 , public ScrollableArea {
70 USING_GARBAGE_COLLECTED_MIXIN(VisualViewport); 69 USING_GARBAGE_COLLECTED_MIXIN(VisualViewport);
71 DEFINE_WRAPPERTYPEINFO();
72 public: 70 public:
73 static VisualViewport* create(FrameHost& host) 71 static VisualViewport* create(FrameHost& host)
74 { 72 {
75 return new VisualViewport(host); 73 return new VisualViewport(host);
76 } 74 }
77 ~VisualViewport() override; 75 ~VisualViewport() override;
78 76
79 DECLARE_VIRTUAL_TRACE(); 77 DECLARE_VIRTUAL_TRACE();
80 78
81 void attachToLayerTree(GraphicsLayer*); 79 void attachToLayerTree(GraphicsLayer*);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 float m_scale; 261 float m_scale;
264 IntSize m_size; 262 IntSize m_size;
265 float m_topControlsAdjustment; 263 float m_topControlsAdjustment;
266 float m_maxPageScale; 264 float m_maxPageScale;
267 bool m_trackPinchZoomStatsForPage; 265 bool m_trackPinchZoomStatsForPage;
268 }; 266 };
269 267
270 } // namespace blink 268 } // namespace blink
271 269
272 #endif // VisualViewport_h 270 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698