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

Unified Diff: Source/web/ChromeClientImpl.cpp

Issue 1310533007: Devtools[LayoutEditor]: show resizer cursor over anchors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ChromeClientImpl.cpp
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp
index 2ddf58dcb156f154349426b92396f22103d05a26..b5c25af063f53929afcaa2bd79270c72442be272 100644
--- a/Source/web/ChromeClientImpl.cpp
+++ b/Source/web/ChromeClientImpl.cpp
@@ -118,6 +118,7 @@ static WebAXEvent toWebAXEvent(AXObjectCache::AXNotification notification)
ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView)
: m_webView(webView)
+ , m_cursorOverridden(false)
{
}
@@ -663,6 +664,9 @@ void ChromeClientImpl::setCursor(const Cursor& cursor)
void ChromeClientImpl::setCursor(const WebCursorInfo& cursor)
{
+ if (m_cursorOverridden)
+ return;
+
#if OS(MACOSX)
// On Mac the mousemove event propagates to both the popup and main window.
// If a popup is open we don't want the main window to change the cursor.
@@ -678,6 +682,11 @@ void ChromeClientImpl::setCursorForPlugin(const WebCursorInfo& cursor)
setCursor(cursor);
}
+void ChromeClientImpl::setCursorOverridden(bool overridden)
+{
+ m_cursorOverridden = overridden;
+}
+
void ChromeClientImpl::postAccessibilityNotification(AXObject* obj, AXObjectCache::AXNotification notification)
{
// Alert assistive technology about the accessibility object notification.
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/InspectorOverlayImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698