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

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

Issue 2644243002: Move ScrollableArea timer to TaskRunnerTimer. (Closed)
Patch Set: use derived class in unique_ptr Created 3 years, 11 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void updateScrollOffset(const ScrollOffset&, ScrollType) override; 193 void updateScrollOffset(const ScrollOffset&, ScrollType) override;
194 GraphicsLayer* layerForContainer() const override; 194 GraphicsLayer* layerForContainer() const override;
195 GraphicsLayer* layerForScrolling() const override; 195 GraphicsLayer* layerForScrolling() const override;
196 GraphicsLayer* layerForHorizontalScrollbar() const override; 196 GraphicsLayer* layerForHorizontalScrollbar() const override;
197 GraphicsLayer* layerForVerticalScrollbar() const override; 197 GraphicsLayer* layerForVerticalScrollbar() const override;
198 Widget* getWidget() override; 198 Widget* getWidget() override;
199 CompositorAnimationHost* compositorAnimationHost() const override; 199 CompositorAnimationHost* compositorAnimationHost() const override;
200 CompositorAnimationTimeline* compositorAnimationTimeline() const override; 200 CompositorAnimationTimeline* compositorAnimationTimeline() const override;
201 IntRect visibleContentRect( 201 IntRect visibleContentRect(
202 IncludeScrollbarsInRect = ExcludeScrollbars) const override; 202 IncludeScrollbarsInRect = ExcludeScrollbars) const override;
203 RefPtr<WebTaskRunner> getTimerTaskRunner() const final;
203 204
204 // Visual Viewport API implementation. 205 // Visual Viewport API implementation.
205 double scrollLeft(); 206 double scrollLeft();
206 double scrollTop(); 207 double scrollTop();
207 double clientWidth(); 208 double clientWidth();
208 double clientHeight(); 209 double clientHeight();
209 double pageScale(); 210 double pageScale();
210 211
211 // Used for gathering data on user pinch-zoom statistics. 212 // Used for gathering data on user pinch-zoom statistics.
212 void userDidChangeScale(); 213 void userDidChangeScale();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 float m_scale; 269 float m_scale;
269 IntSize m_size; 270 IntSize m_size;
270 float m_browserControlsAdjustment; 271 float m_browserControlsAdjustment;
271 float m_maxPageScale; 272 float m_maxPageScale;
272 bool m_trackPinchZoomStatsForPage; 273 bool m_trackPinchZoomStatsForPage;
273 }; 274 };
274 275
275 } // namespace blink 276 } // namespace blink
276 277
277 #endif // VisualViewport_h 278 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698