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

Side by Side Diff: Source/core/frame/FrameView.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, 3 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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 NotScrollableExplicitlyDisabled 262 NotScrollableExplicitlyDisabled
263 }; 263 };
264 264
265 ScrollingReasons scrollingReasons(); 265 ScrollingReasons scrollingReasons();
266 bool isScrollable() override; 266 bool isScrollable() override;
267 bool isProgrammaticallyScrollable() override; 267 bool isProgrammaticallyScrollable() override;
268 268
269 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule }; 269 enum ScrollbarModesCalculationStrategy { RulesFromWebContentOnly, AnyRule };
270 void calculateScrollbarModesForLayout(ScrollbarMode& hMode, ScrollbarMode& v Mode, ScrollbarModesCalculationStrategy = AnyRule); 270 void calculateScrollbarModesForLayout(ScrollbarMode& hMode, ScrollbarMode& v Mode, ScrollbarModesCalculationStrategy = AnyRule);
271 271
272 bool visualViewportSuppliesScrollbars() const;
skobes 2015/08/26 18:21:32 nit: can this be private?
aelias_OOO_until_Jul13 2015/08/27 03:11:34 Done.
273
272 IntPoint lastKnownMousePosition() const override; 274 IntPoint lastKnownMousePosition() const override;
273 bool shouldSetCursor() const; 275 bool shouldSetCursor() const;
274 276
275 void setCursor(const Cursor&); 277 void setCursor(const Cursor&);
276 278
277 bool scrollbarsCanBeActive() const override; 279 bool scrollbarsCanBeActive() const override;
278 void scrollbarVisibilityChanged() override; 280 void scrollbarVisibilityChanged() override;
279 281
280 // FIXME: Remove this method once plugin loading is decoupled from layout. 282 // FIXME: Remove this method once plugin loading is decoupled from layout.
281 void flushAnyPendingPostLayoutTasks(); 283 void flushAnyPendingPostLayoutTasks();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 340
339 IntPoint maximumScrollPosition() const override; 341 IntPoint maximumScrollPosition() const override;
340 342
341 // ScrollableArea interface 343 // ScrollableArea interface
342 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; 344 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
343 void getTickmarks(Vector<IntRect>&) const override; 345 void getTickmarks(Vector<IntRect>&) const override;
344 void scrollTo(const DoublePoint&); 346 void scrollTo(const DoublePoint&);
345 IntRect scrollableAreaBoundingBox() const override; 347 IntRect scrollableAreaBoundingBox() const override;
346 bool scrollAnimatorEnabled() const override; 348 bool scrollAnimatorEnabled() const override;
347 bool usesCompositedScrolling() const override; 349 bool usesCompositedScrolling() const override;
350 GraphicsLayer* layerForScrollbarContainer() const override;
348 GraphicsLayer* layerForScrolling() const override; 351 GraphicsLayer* layerForScrolling() const override;
349 GraphicsLayer* layerForHorizontalScrollbar() const override; 352 GraphicsLayer* layerForHorizontalScrollbar() const override;
350 GraphicsLayer* layerForVerticalScrollbar() const override; 353 GraphicsLayer* layerForVerticalScrollbar() const override;
351 GraphicsLayer* layerForScrollCorner() const override; 354 GraphicsLayer* layerForScrollCorner() const override;
352 int scrollSize(ScrollbarOrientation) const override; 355 int scrollSize(ScrollbarOrientation) const override;
353 bool isScrollCornerVisible() const override; 356 bool isScrollCornerVisible() const override;
354 bool userInputScrollable(ScrollbarOrientation) const override; 357 bool userInputScrollable(ScrollbarOrientation) const override;
355 bool shouldPlaceVerticalScrollbarOnLeft() const override; 358 bool shouldPlaceVerticalScrollbarOnLeft() const override;
356 virtual LayoutRect scrollIntoView( 359 virtual LayoutRect scrollIntoView(
357 const LayoutRect& rectInContent, 360 const LayoutRect& rectInContent,
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
686 void updateScrollCorner(); 689 void updateScrollCorner();
687 690
688 AXObjectCache* axObjectCache() const; 691 AXObjectCache* axObjectCache() const;
689 void removeFromAXObjectCache(); 692 void removeFromAXObjectCache();
690 693
691 void setLayoutSizeInternal(const IntSize&); 694 void setLayoutSizeInternal(const IntSize&);
692 695
693 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); 696 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass);
694 void adjustScrollbarOpacity(); 697 void adjustScrollbarOpacity();
695 void setScrollOffsetFromUpdateScrollbars(const DoubleSize&); 698 void setScrollOffsetFromUpdateScrollbars(const DoubleSize&);
696 bool visualViewportSuppliesScrollbars() const;
697 699
698 IntRect rectToCopyOnScroll() const; 700 IntRect rectToCopyOnScroll() const;
699 701
700 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; } 702 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; }
701 703
702 ScrollingCoordinator* scrollingCoordinator(); 704 ScrollingCoordinator* scrollingCoordinator();
703 705
704 void prepareLayoutAnalyzer(); 706 void prepareLayoutAnalyzer();
705 PassRefPtr<TracedValue> analyzerCounters(); 707 PassRefPtr<TracedValue> analyzerCounters();
706 708
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 static const unsigned visualPixelThreshold = 32 * 32; 861 static const unsigned visualPixelThreshold = 32 * 32;
860 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 862 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
861 setIsVisuallyNonEmpty(); 863 setIsVisuallyNonEmpty();
862 } 864 }
863 865
864 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 866 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
865 867
866 } // namespace blink 868 } // namespace blink
867 869
868 #endif // FrameView_h 870 #endif // FrameView_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/scrolling/overflow-clip-with-page-scale.html ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698