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

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

Issue 2826893003: Remove ScrollableArea::GetFrameViewBase and move ScheduleAnimation into subclasses. (Closed)
Patch Set: Remove UNREACHED Created 3 years, 8 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 IntRect ScrollableAreaBoundingBox() const override; 202 IntRect ScrollableAreaBoundingBox() const override;
203 bool UserInputScrollable(ScrollbarOrientation) const override { return true; } 203 bool UserInputScrollable(ScrollbarOrientation) const override { return true; }
204 bool ShouldPlaceVerticalScrollbarOnLeft() const override { return false; } 204 bool ShouldPlaceVerticalScrollbarOnLeft() const override { return false; }
205 bool ScrollAnimatorEnabled() const override; 205 bool ScrollAnimatorEnabled() const override;
206 void ScrollControlWasSetNeedsPaintInvalidation() override {} 206 void ScrollControlWasSetNeedsPaintInvalidation() override {}
207 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override; 207 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override;
208 GraphicsLayer* LayerForContainer() const override; 208 GraphicsLayer* LayerForContainer() const override;
209 GraphicsLayer* LayerForScrolling() const override; 209 GraphicsLayer* LayerForScrolling() const override;
210 GraphicsLayer* LayerForHorizontalScrollbar() const override; 210 GraphicsLayer* LayerForHorizontalScrollbar() const override;
211 GraphicsLayer* LayerForVerticalScrollbar() const override; 211 GraphicsLayer* LayerForVerticalScrollbar() const override;
212 FrameViewBase* GetFrameViewBase() override; 212 bool ScheduleAnimation() override;
213 CompositorAnimationHost* GetCompositorAnimationHost() const override; 213 CompositorAnimationHost* GetCompositorAnimationHost() const override;
214 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override; 214 CompositorAnimationTimeline* GetCompositorAnimationTimeline() const override;
215 IntRect VisibleContentRect( 215 IntRect VisibleContentRect(
216 IncludeScrollbarsInRect = kExcludeScrollbars) const override; 216 IncludeScrollbarsInRect = kExcludeScrollbars) const override;
217 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; 217 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final;
218 218
219 // Visual Viewport API implementation. 219 // Visual Viewport API implementation.
220 double ScrollLeft(); 220 double ScrollLeft();
221 double ScrollTop(); 221 double ScrollTop();
222 double ClientWidth(); 222 double ClientWidth();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 float scale_; 283 float scale_;
284 IntSize size_; 284 IntSize size_;
285 float browser_controls_adjustment_; 285 float browser_controls_adjustment_;
286 float max_page_scale_; 286 float max_page_scale_;
287 bool track_pinch_zoom_stats_for_page_; 287 bool track_pinch_zoom_stats_for_page_;
288 }; 288 };
289 289
290 } // namespace blink 290 } // namespace blink
291 291
292 #endif // VisualViewport_h 292 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698