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

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

Issue 1308053003: Replace pinch scrollbars with regular scrollbars. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix webkit_unit_tests Created 5 years, 4 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void setScrollOffset(const IntPoint&, ScrollType) override; 188 void setScrollOffset(const IntPoint&, ScrollType) override;
189 void setScrollOffset(const DoublePoint&, ScrollType) override; 189 void setScrollOffset(const DoublePoint&, ScrollType) override;
190 GraphicsLayer* layerForContainer() const override; 190 GraphicsLayer* layerForContainer() const override;
191 GraphicsLayer* layerForScrolling() const override; 191 GraphicsLayer* layerForScrolling() const override;
192 GraphicsLayer* layerForHorizontalScrollbar() const override; 192 GraphicsLayer* layerForHorizontalScrollbar() const override;
193 GraphicsLayer* layerForVerticalScrollbar() const override; 193 GraphicsLayer* layerForVerticalScrollbar() const override;
194 194
195 private: 195 private:
196 explicit VisualViewport(FrameHost&); 196 explicit VisualViewport(FrameHost&);
197 197
198 bool visualViewportSuppliesScrollbars() const;
199
198 // GraphicsLayerClient implementation. 200 // GraphicsLayerClient implementation.
199 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& inClip) override; 201 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& inClip) override;
200 String debugName(const GraphicsLayer*) override; 202 String debugName(const GraphicsLayer*) override;
201 203
202 void setupScrollbar(WebScrollbar::Orientation); 204 void setupScrollbar(WebScrollbar::Orientation);
203 FloatPoint clampOffsetToBoundaries(const FloatPoint&); 205 FloatPoint clampOffsetToBoundaries(const FloatPoint&);
204 206
205 LocalFrame* mainFrame() const; 207 LocalFrame* mainFrame() const;
206 208
207 FrameHost& frameHost() const 209 FrameHost& frameHost() const
(...skipping 16 matching lines...) Expand all
224 // Offset of the visual viewport from the main frame's origin, in CSS pixels . 226 // Offset of the visual viewport from the main frame's origin, in CSS pixels .
225 FloatPoint m_offset; 227 FloatPoint m_offset;
226 float m_scale; 228 float m_scale;
227 IntSize m_size; 229 IntSize m_size;
228 float m_topControlsAdjustment; 230 float m_topControlsAdjustment;
229 }; 231 };
230 232
231 } // namespace blink 233 } // namespace blink
232 234
233 #endif // VisualViewport_h 235 #endif // VisualViewport_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698