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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2501723003: Disable scrollbars on the root scroller when using visual viewport scrollbars. (Closed)
Patch Set: Fix (?) Graphics2D test 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) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void mouseCapturedScrollbar(); 114 void mouseCapturedScrollbar();
115 void mouseReleasedScrollbar(); 115 void mouseReleasedScrollbar();
116 void contentAreaDidShow() const; 116 void contentAreaDidShow() const;
117 void contentAreaDidHide() const; 117 void contentAreaDidHide() const;
118 118
119 void finishCurrentScrollAnimations() const; 119 void finishCurrentScrollAnimations() const;
120 120
121 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation); 121 virtual void didAddScrollbar(Scrollbar&, ScrollbarOrientation);
122 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation); 122 virtual void willRemoveScrollbar(Scrollbar&, ScrollbarOrientation);
123 123
124 // Called when this ScrollableArea becomes or unbecomes the global root
125 // scroller.
126 virtual void didChangeGlobalRootScroller() {}
127
124 virtual void contentsResized(); 128 virtual void contentsResized();
125 129
126 bool hasOverlayScrollbars() const; 130 bool hasOverlayScrollbars() const;
127 void setScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme); 131 void setScrollbarOverlayColorTheme(ScrollbarOverlayColorTheme);
128 void recalculateScrollbarOverlayColorTheme(Color); 132 void recalculateScrollbarOverlayColorTheme(Color);
129 ScrollbarOverlayColorTheme getScrollbarOverlayColorTheme() const { 133 ScrollbarOverlayColorTheme getScrollbarOverlayColorTheme() const {
130 return static_cast<ScrollbarOverlayColorTheme>( 134 return static_cast<ScrollbarOverlayColorTheme>(
131 m_scrollbarOverlayColorTheme); 135 m_scrollbarOverlayColorTheme);
132 } 136 }
133 137
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // vertical-lr / ltr NO NO 441 // vertical-lr / ltr NO NO
438 // vertical-lr / rtl NO YES 442 // vertical-lr / rtl NO YES
439 // vertical-rl / ltr YES NO 443 // vertical-rl / ltr YES NO
440 // vertical-rl / rtl YES YES 444 // vertical-rl / rtl YES YES
441 IntPoint m_scrollOrigin; 445 IntPoint m_scrollOrigin;
442 }; 446 };
443 447
444 } // namespace blink 448 } // namespace blink
445 449
446 #endif // ScrollableArea_h 450 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698