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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 574583002: Do not release capture when clicking to open select box (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: content/browser/renderer_host/render_widget_host_view_aura.h
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h
index 98c969bd4a998c0e2c1492268996350d5f6172fe..113cec430fa827e2a4d79a3c9611a87514e9240a 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.h
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h
@@ -355,6 +355,8 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE;
private:
+ FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
+ PopupRetainsCaptureAfterMouseRelease);
FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText);
FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState);
FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
@@ -403,6 +405,9 @@ class CONTENT_EXPORT RenderWidgetHostViewAura
// Returns whether the widget needs an input grab to work properly.
bool NeedsInputGrab();
+ // Returns whether the widget needs to grab mouse capture to work properly.
+ bool NeedsMouseCapture();
+
// Confirm existing composition text in the webpage and ask the input method
// to cancel its ongoing composition session.
void FinishImeCompositionSession();

Powered by Google App Engine
This is Rietveld 408576698