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

Unified Diff: ui/views/corewm/tooltip_win.cc

Issue 1915363002: Rename gfx::Display/Screen to display::Display/Screen in views/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanups Created 4 years, 8 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/corewm/tooltip_controller_unittest.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/corewm/tooltip_win.cc
diff --git a/ui/views/corewm/tooltip_win.cc b/ui/views/corewm/tooltip_win.cc
index 0a427b59d0dc1714bbb915cb574ac29387898d8b..462365750fb71e0e93a63e4b4cc6be560e5be485 100644
--- a/ui/views/corewm/tooltip_win.cc
+++ b/ui/views/corewm/tooltip_win.cc
@@ -10,9 +10,10 @@
#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "ui/base/l10n/l10n_util_win.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/display/win/screen_win.h"
#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/screen.h"
#include "ui/views/corewm/cursor_height_provider_win.h"
namespace views {
@@ -86,8 +87,8 @@ void TooltipWin::PositionTooltip() {
reinterpret_cast<LPARAM>(&toolinfo_));
const gfx::Size size(LOWORD(tooltip_size), HIWORD(tooltip_size));
- const gfx::Display display(
- gfx::Screen::GetScreen()->GetDisplayNearestPoint(location_));
+ const display::Display display(
+ display::Screen::GetScreen()->GetDisplayNearestPoint(location_));
gfx::Rect tooltip_bounds(screen_point, size);
tooltip_bounds.AdjustToFit(
@@ -100,8 +101,8 @@ void TooltipWin::PositionTooltip() {
int TooltipWin::GetMaxWidth(const gfx::Point& location) const {
const gfx::Point screen_point =
display::win::ScreenWin::DIPToScreenPoint(location);
- gfx::Display display(
- gfx::Screen::GetScreen()->GetDisplayNearestPoint(screen_point));
+ display::Display display(
+ display::Screen::GetScreen()->GetDisplayNearestPoint(screen_point));
const gfx::Rect monitor_bounds = display.bounds();
return (monitor_bounds.width() + 1) / 2;
}
« no previous file with comments | « ui/views/corewm/tooltip_controller_unittest.cc ('k') | ui/views/drag_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698