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

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: nit Created 4 years, 5 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class LocalFrame; 57 class LocalFrame;
58 58
59 // Represents the visual viewport the user is currently seeing the page through. This 59 // Represents the visual viewport the user is currently seeing the page through. This
60 // class corresponds to the InnerViewport on the compositor. It is a ScrollableA rea; it's 60 // class corresponds to the InnerViewport on the compositor. It is a ScrollableA rea; it's
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 CORE_EXPORT VisualViewport final 64 class CORE_EXPORT VisualViewport final
65 : public GarbageCollectedFinalized<VisualViewport> 65 : public GarbageCollectedFinalized<VisualViewport>
66 , public GraphicsLayerClient 66 , public GraphicsLayerClient
67 , public ScriptWrappable
68 , public ScrollableArea { 67 , public ScrollableArea {
69 USING_GARBAGE_COLLECTED_MIXIN(VisualViewport); 68 USING_GARBAGE_COLLECTED_MIXIN(VisualViewport);
70 DEFINE_WRAPPERTYPEINFO();
71 public: 69 public:
72 static VisualViewport* create(FrameHost& host) 70 static VisualViewport* create(FrameHost& host)
73 { 71 {
74 return new VisualViewport(host); 72 return new VisualViewport(host);
75 } 73 }
76 ~VisualViewport() override; 74 ~VisualViewport() override;
77 75
78 DECLARE_VIRTUAL_TRACE(); 76 DECLARE_VIRTUAL_TRACE();
79 77
80 void attachToLayerTree(GraphicsLayer*); 78 void attachToLayerTree(GraphicsLayer*);
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 float m_scale; 260 float m_scale;
263 IntSize m_size; 261 IntSize m_size;
264 float m_topControlsAdjustment; 262 float m_topControlsAdjustment;
265 float m_maxPageScale; 263 float m_maxPageScale;
266 bool m_trackPinchZoomStatsForPage; 264 bool m_trackPinchZoomStatsForPage;
267 }; 265 };
268 266
269 } // namespace blink 267 } // namespace blink
270 268
271 #endif // VisualViewport_h 269 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698