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

Unified Diff: third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.cpp

Issue 7538006: Pepper and WebKit API change to support a plugin knowing if a scrollbar is an overlay one. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.cpp
===================================================================
--- third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.cpp (revision 91997)
+++ third_party/WebKit/Source/WebKit/chromium/src/WebScrollbarImpl.cpp (working copy)
@@ -74,6 +74,11 @@
{
}
+bool WebScrollbarImpl::isOverlay()
+{
+ return m_scrollbar->isOverlayScrollbar();
+}
+
void WebScrollbarImpl::setLocation(const WebRect& rect)
{
IntRect oldRect = m_scrollbar->frameRect();
@@ -344,4 +349,13 @@
return IntSize();
}
+void WebScrollbarImpl::scrollbarStyleChanged()
+{
+ m_client->overlayChanged(this);
+}
+
+bool WebScrollbarImpl::isOnActivePage() const {
+ return true;
+}
+
} // namespace WebKit

Powered by Google App Engine
This is Rietveld 408576698