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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 1957103002: Exclude scrollbars from visual viewport dimensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 7 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // which bails out early if its already in updateScrollbars, the effect bein g 262 // which bails out early if its already in updateScrollbars, the effect bein g
263 // that programmatic scrolls (i.e. setScrollPosition) are disabled when in 263 // that programmatic scrolls (i.e. setScrollPosition) are disabled when in
264 // updateScrollbars. Expose this here to allow RootFrameViewport to match th e 264 // updateScrollbars. Expose this here to allow RootFrameViewport to match th e
265 // semantics for now but it should be cleaned up at the source. 265 // semantics for now but it should be cleaned up at the source.
266 virtual bool isProgrammaticallyScrollable() { return true; } 266 virtual bool isProgrammaticallyScrollable() { return true; }
267 267
268 // Subtracts space occupied by this ScrollableArea's scrollbars. 268 // Subtracts space occupied by this ScrollableArea's scrollbars.
269 // Does nothing if overlay scrollbars are enabled. 269 // Does nothing if overlay scrollbars are enabled.
270 IntSize excludeScrollbars(const IntSize&) const; 270 IntSize excludeScrollbars(const IntSize&) const;
271 271
272 // Returns 0 if overlay scrollbars are enabled.
273 int verticalScrollbarWidth() const;
274 int horizontalScrollbarHeight() const;
275
272 // Returns the widget associated with this ScrollableArea. 276 // Returns the widget associated with this ScrollableArea.
273 virtual Widget* getWidget() { return nullptr; } 277 virtual Widget* getWidget() { return nullptr; }
274 278
275 virtual bool isFrameView() const { return false; } 279 virtual bool isFrameView() const { return false; }
276 virtual bool isPaintLayerScrollableArea() const { return false; } 280 virtual bool isPaintLayerScrollableArea() const { return false; }
277 281
278 // Need to promptly let go of owned animator objects. 282 // Need to promptly let go of owned animator objects.
279 EAGERLY_FINALIZE(); 283 EAGERLY_FINALIZE();
280 DECLARE_VIRTUAL_TRACE(); 284 DECLARE_VIRTUAL_TRACE();
281 285
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // vertical-lr / ltr NO NO 340 // vertical-lr / ltr NO NO
337 // vertical-lr / rtl NO YES 341 // vertical-lr / rtl NO YES
338 // vertical-rl / ltr YES NO 342 // vertical-rl / ltr YES NO
339 // vertical-rl / rtl YES YES 343 // vertical-rl / rtl YES YES
340 IntPoint m_scrollOrigin; 344 IntPoint m_scrollOrigin;
341 }; 345 };
342 346
343 } // namespace blink 347 } // namespace blink
344 348
345 #endif // ScrollableArea_h 349 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698