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

Unified Diff: pdf/instance.h

Issue 811083004: Fix for PDF menu should not come when mouse pointer is on the scrollbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes as per review comments. Created 5 years, 11 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 | « no previous file | pdf/instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.h
diff --git a/pdf/instance.h b/pdf/instance.h
index fe794723d1dc79aa465f04eabe4ed834529fc617..e5c2c5d1cbe9779a8acbdaacac921151302546cb 100644
--- a/pdf/instance.h
+++ b/pdf/instance.h
@@ -200,6 +200,10 @@ class Instance : public pp::InstancePrivate,
void RotateClockwise();
void RotateCounterclockwise();
+ // Helper function to inform when mouse pointer is on scrollbar, returns true
+ // when mouse is on vertical or horizaontal scrollbar else returns false.
+ bool IsMouseOnScrollbar(const pp::InputEvent& event);
+
private:
// Called whenever the plugin geometry changes to update the location of the
// scrollbars, background parts, and notifies the pdf engine.
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698