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

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

Issue 2467693002: Implement overlay scrollbar fade out for non-composited scrollers. (Closed)
Patch Set: sigh....git cl format 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 bool& newHasVerticalScrollbar, 760 bool& newHasVerticalScrollbar,
761 const IntSize& docSize, 761 const IntSize& docSize,
762 ComputeScrollbarExistenceOption = FirstPass) const; 762 ComputeScrollbarExistenceOption = FirstPass) const;
763 void updateScrollbarGeometry(); 763 void updateScrollbarGeometry();
764 764
765 // Called to update the scrollbars to accurately reflect the state of the 765 // Called to update the scrollbars to accurately reflect the state of the
766 // view. 766 // view.
767 void updateScrollbars(); 767 void updateScrollbars();
768 void updateScrollbarsIfNeeded(); 768 void updateScrollbarsIfNeeded();
769 769
770 void didChangeScrollbarsHidden() override;
771
772 class InUpdateScrollbarsScope { 770 class InUpdateScrollbarsScope {
773 STACK_ALLOCATED(); 771 STACK_ALLOCATED();
774 772
775 public: 773 public:
776 explicit InUpdateScrollbarsScope(FrameView* view) 774 explicit InUpdateScrollbarsScope(FrameView* view)
777 : m_scope(&view->m_inUpdateScrollbars, true) {} 775 : m_scope(&view->m_inUpdateScrollbars, true) {}
778 776
779 private: 777 private:
780 AutoReset<bool> m_scope; 778 AutoReset<bool> m_scope;
781 }; 779 };
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 widget.isFrameView()); 1133 widget.isFrameView());
1136 DEFINE_TYPE_CASTS(FrameView, 1134 DEFINE_TYPE_CASTS(FrameView,
1137 ScrollableArea, 1135 ScrollableArea,
1138 scrollableArea, 1136 scrollableArea,
1139 scrollableArea->isFrameView(), 1137 scrollableArea->isFrameView(),
1140 scrollableArea.isFrameView()); 1138 scrollableArea.isFrameView());
1141 1139
1142 } // namespace blink 1140 } // namespace blink
1143 1141
1144 #endif // FrameView_h 1142 #endif // FrameView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698