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

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

Issue 2489703002: Revert of Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: Created 4 years, 1 month 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 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 bool& newHasVerticalScrollbar, 758 bool& newHasVerticalScrollbar,
759 const IntSize& docSize, 759 const IntSize& docSize,
760 ComputeScrollbarExistenceOption = FirstPass) const; 760 ComputeScrollbarExistenceOption = FirstPass) const;
761 void updateScrollbarGeometry(); 761 void updateScrollbarGeometry();
762 762
763 // Called to update the scrollbars to accurately reflect the state of the 763 // Called to update the scrollbars to accurately reflect the state of the
764 // view. 764 // view.
765 void updateScrollbars(); 765 void updateScrollbars();
766 void updateScrollbarsIfNeeded(); 766 void updateScrollbarsIfNeeded();
767 767
768 void didChangeScrollbarsHidden() override;
769
768 class InUpdateScrollbarsScope { 770 class InUpdateScrollbarsScope {
769 STACK_ALLOCATED(); 771 STACK_ALLOCATED();
770 772
771 public: 773 public:
772 explicit InUpdateScrollbarsScope(FrameView* view) 774 explicit InUpdateScrollbarsScope(FrameView* view)
773 : m_scope(&view->m_inUpdateScrollbars, true) {} 775 : m_scope(&view->m_inUpdateScrollbars, true) {}
774 776
775 private: 777 private:
776 AutoReset<bool> m_scope; 778 AutoReset<bool> m_scope;
777 }; 779 };
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 widget.isFrameView()); 1130 widget.isFrameView());
1129 DEFINE_TYPE_CASTS(FrameView, 1131 DEFINE_TYPE_CASTS(FrameView,
1130 ScrollableArea, 1132 ScrollableArea,
1131 scrollableArea, 1133 scrollableArea,
1132 scrollableArea->isFrameView(), 1134 scrollableArea->isFrameView(),
1133 scrollableArea.isFrameView()); 1135 scrollableArea.isFrameView());
1134 1136
1135 } // namespace blink 1137 } // namespace blink
1136 1138
1137 #endif // FrameView_h 1139 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698