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

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 comment 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
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 343
344 IntPoint maximumScrollPosition() const override; 344 IntPoint maximumScrollPosition() const override;
345 345
346 // ScrollableArea interface 346 // ScrollableArea interface
347 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override; 347 void invalidateScrollbarRect(Scrollbar*, const IntRect&) override;
348 void getTickmarks(Vector<IntRect>&) const override; 348 void getTickmarks(Vector<IntRect>&) const override;
349 void scrollTo(const DoublePoint&); 349 void scrollTo(const DoublePoint&);
350 IntRect scrollableAreaBoundingBox() const override; 350 IntRect scrollableAreaBoundingBox() const override;
351 bool scrollAnimatorEnabled() const override; 351 bool scrollAnimatorEnabled() const override;
352 bool usesCompositedScrolling() const override; 352 bool usesCompositedScrolling() const override;
353 GraphicsLayer* layerForScrollbarContainer() const override;
353 GraphicsLayer* layerForScrolling() const override; 354 GraphicsLayer* layerForScrolling() const override;
354 GraphicsLayer* layerForHorizontalScrollbar() const override; 355 GraphicsLayer* layerForHorizontalScrollbar() const override;
355 GraphicsLayer* layerForVerticalScrollbar() const override; 356 GraphicsLayer* layerForVerticalScrollbar() const override;
356 GraphicsLayer* layerForScrollCorner() const override; 357 GraphicsLayer* layerForScrollCorner() const override;
357 int scrollSize(ScrollbarOrientation) const override; 358 int scrollSize(ScrollbarOrientation) const override;
358 bool isScrollCornerVisible() const override; 359 bool isScrollCornerVisible() const override;
359 bool userInputScrollable(ScrollbarOrientation) const override; 360 bool userInputScrollable(ScrollbarOrientation) const override;
360 bool shouldPlaceVerticalScrollbarOnLeft() const override; 361 bool shouldPlaceVerticalScrollbarOnLeft() const override;
361 virtual LayoutRect scrollIntoView( 362 virtual LayoutRect scrollIntoView(
362 const LayoutRect& rectInContent, 363 const LayoutRect& rectInContent,
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 void updateScrollCorner(); 692 void updateScrollCorner();
692 693
693 AXObjectCache* axObjectCache() const; 694 AXObjectCache* axObjectCache() const;
694 void removeFromAXObjectCache(); 695 void removeFromAXObjectCache();
695 696
696 void setLayoutSizeInternal(const IntSize&); 697 void setLayoutSizeInternal(const IntSize&);
697 698
698 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass); 699 bool adjustScrollbarExistence(ComputeScrollbarExistenceOption = FirstPass);
699 void adjustScrollbarOpacity(); 700 void adjustScrollbarOpacity();
700 void setScrollOffsetFromUpdateScrollbars(const DoubleSize&); 701 void setScrollOffsetFromUpdateScrollbars(const DoubleSize&);
701 bool visualViewportSuppliesScrollbars() const;
702 702
703 IntRect rectToCopyOnScroll() const; 703 IntRect rectToCopyOnScroll() const;
704 704
705 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; } 705 bool isFrameViewScrollbar(const Widget* child) const { return horizontalScro llbar() == child || verticalScrollbar() == child; }
706 706
707 ScrollingCoordinator* scrollingCoordinator(); 707 ScrollingCoordinator* scrollingCoordinator();
708 708
709 void prepareLayoutAnalyzer(); 709 void prepareLayoutAnalyzer();
710 PassRefPtr<TracedValue> analyzerCounters(); 710 PassRefPtr<TracedValue> analyzerCounters();
711 711
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 static const unsigned visualPixelThreshold = 32 * 32; 864 static const unsigned visualPixelThreshold = 32 * 32;
865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) 865 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold)
866 setIsVisuallyNonEmpty(); 866 setIsVisuallyNonEmpty();
867 } 867 }
868 868
869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView()); 869 DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFra meView());
870 870
871 } // namespace blink 871 } // namespace blink
872 872
873 #endif // FrameView_h 873 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/FrameView.cpp » ('j') | Source/core/frame/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698