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 2453553003: Disable overlay scrollbars in Blink when hidden by the compositor. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « cc/trees/property_tree.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
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 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 bool& newHasVerticalScrollbar, 755 bool& newHasVerticalScrollbar,
756 const IntSize& docSize, 756 const IntSize& docSize,
757 ComputeScrollbarExistenceOption = FirstPass) const; 757 ComputeScrollbarExistenceOption = FirstPass) const;
758 void updateScrollbarGeometry(); 758 void updateScrollbarGeometry();
759 759
760 // Called to update the scrollbars to accurately reflect the state of the 760 // Called to update the scrollbars to accurately reflect the state of the
761 // view. 761 // view.
762 void updateScrollbars(); 762 void updateScrollbars();
763 void updateScrollbarsIfNeeded(); 763 void updateScrollbarsIfNeeded();
764 764
765 void didChangeScrollbarsHidden() override;
766
765 class InUpdateScrollbarsScope { 767 class InUpdateScrollbarsScope {
766 STACK_ALLOCATED(); 768 STACK_ALLOCATED();
767 769
768 public: 770 public:
769 explicit InUpdateScrollbarsScope(FrameView* view) 771 explicit InUpdateScrollbarsScope(FrameView* view)
770 : m_scope(&view->m_inUpdateScrollbars, true) {} 772 : m_scope(&view->m_inUpdateScrollbars, true) {}
771 773
772 private: 774 private:
773 AutoReset<bool> m_scope; 775 AutoReset<bool> m_scope;
774 }; 776 };
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 widget.isFrameView()); 1135 widget.isFrameView());
1134 DEFINE_TYPE_CASTS(FrameView, 1136 DEFINE_TYPE_CASTS(FrameView,
1135 ScrollableArea, 1137 ScrollableArea,
1136 scrollableArea, 1138 scrollableArea,
1137 scrollableArea->isFrameView(), 1139 scrollableArea->isFrameView(),
1138 scrollableArea.isFrameView()); 1140 scrollableArea.isFrameView());
1139 1141
1140 } // namespace blink 1142 } // namespace blink
1141 1143
1142 #endif // FrameView_h 1144 #endif // FrameView_h
OLDNEW
« no previous file with comments | « cc/trees/property_tree.h ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698