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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.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 other os's 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
Index: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 1d3cdfad4f1abfc19a1e806af5f6d28cbef066b2..d2ceb0b6e0b75513d286349f8c3c608bfb5c9440 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -566,7 +566,8 @@ void TabStrip::RemoveTabDelegate::HighlightCloseButton() {
return;
widget->ResetLastMouseMoveFlag();
- gfx::Point position = gfx::Screen::GetCursorScreenPoint();
+ gfx::Point position = gfx::Screen::GetCursorScreenPoint(
+ gfx::Screen::BadTwoWorldsContext());
views::View* root_view = widget->GetRootView();
views::View::ConvertPointFromScreen(root_view, &position);
ui::MouseEvent mouse_event(ui::ET_MOUSE_MOVED,

Powered by Google App Engine
This is Rietveld 408576698