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

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

Issue 1424983002: Invalidate scrollbars when window activity changes if needed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void setPressedPart(ScrollbarPart); 105 virtual void setPressedPart(ScrollbarPart);
106 106
107 void setProportion(int visibleSize, int totalSize); 107 void setProportion(int visibleSize, int totalSize);
108 void setPressedPos(int p) { m_pressedPos = p; } 108 void setPressedPos(int p) { m_pressedPos = p; }
109 109
110 void paint(GraphicsContext*, const IntRect& damageRect) const final; 110 void paint(GraphicsContext*, const IntRect& damageRect) const final;
111 111
112 bool isOverlayScrollbar() const override; 112 bool isOverlayScrollbar() const override;
113 bool shouldParticipateInHitTesting(); 113 bool shouldParticipateInHitTesting();
114 114
115 void windowActiveChanged();
115 bool isWindowActive() const; 116 bool isWindowActive() const;
116 117
117 bool gestureEvent(const PlatformGestureEvent&); 118 bool gestureEvent(const PlatformGestureEvent&);
118 119
119 // These methods are used for platform scrollbars to give :hover feedback. They will not get called 120 // These methods are used for platform scrollbars to give :hover feedback. They will not get called
120 // when the mouse went down in a scrollbar, since it is assumed the scrollba r will start 121 // when the mouse went down in a scrollbar, since it is assumed the scrollba r will start
121 // grabbing all events in that case anyway. 122 // grabbing all events in that case anyway.
122 void mouseMoved(const PlatformMouseEvent&); 123 void mouseMoved(const PlatformMouseEvent&);
123 void mouseEntered(); 124 void mouseEntered();
124 void mouseExited(); 125 void mouseExited();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool isScrollbar() const override { return true; } 206 bool isScrollbar() const override { return true; }
206 207
207 float scrollableAreaCurrentPos() const; 208 float scrollableAreaCurrentPos() const;
208 }; 209 };
209 210
210 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar()); 211 DEFINE_TYPE_CASTS(Scrollbar, Widget, widget, widget->isScrollbar(), widget.isScr ollbar());
211 212
212 } // namespace blink 213 } // namespace blink
213 214
214 #endif // Scrollbar_h 215 #endif // Scrollbar_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698