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

Unified Diff: ui/views/controls/scrollbar/base_scroll_bar_button.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix new addition Created 8 years, 2 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 | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/drag_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/base_scroll_bar_button.cc
diff --git a/ui/views/controls/scrollbar/base_scroll_bar_button.cc b/ui/views/controls/scrollbar/base_scroll_bar_button.cc
index 60e0acd280ffc0d94a6c66385f74d2b6968dc65e..4c4216b57783beeef7288e7c12dda20712617b4d 100644
--- a/ui/views/controls/scrollbar/base_scroll_bar_button.cc
+++ b/ui/views/controls/scrollbar/base_scroll_bar_button.cc
@@ -39,7 +39,9 @@ void BaseScrollBarButton::RepeaterNotifyClick() {
#if defined(OS_WIN) && !defined(USE_AURA)
gfx::Point cursor_point(GetMessagePos());
#else
- gfx::Point cursor_point = gfx::Screen::GetCursorScreenPoint();
+ // TODO(scottmg): Native is wrong: http://crbug.com/133312
+ gfx::Point cursor_point =
+ gfx::Screen::GetNativeScreen()->GetCursorScreenPoint();
#endif
ui::MouseEvent event(ui::ET_MOUSE_RELEASED,
cursor_point, cursor_point,
« no previous file with comments | « ui/views/controls/menu/menu_controller.cc ('k') | ui/views/drag_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698