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

Unified Diff: ash/shell/panel_window.cc

Issue 2660873002: Move two utility functions from ash/screen_util.h to ui/wm/core/coordinate_conversion.h (Closed)
Patch Set: Created 3 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
Index: ash/shell/panel_window.cc
diff --git a/ash/shell/panel_window.cc b/ash/shell/panel_window.cc
index f9150b8203b97a957540bbb63585c382939c6d44..a2d02dcea626a476b05e13eb5424d5afd2212807 100644
--- a/ash/shell/panel_window.cc
+++ b/ash/shell/panel_window.cc
@@ -5,13 +5,13 @@
#include "ash/shell/panel_window.h"
#include "ash/common/wm/panels/panel_frame_view.h"
-#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/wm/window_properties.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/aura/window.h"
#include "ui/gfx/canvas.h"
#include "ui/views/widget/widget.h"
+#include "ui/wm/core/coordinate_conversion.h"
namespace {
const int kMinWidth = 100;
@@ -44,8 +44,7 @@ views::Widget* PanelWindow::CreateWidget() {
params().bounds.set_width(kDefaultWidth);
if (params().bounds.height() == 0)
params().bounds.set_height(kDefaultHeight);
- params().bounds = ScreenUtil::ConvertRectToScreen(
- Shell::GetTargetRootWindow(), params().bounds);
+ ::wm::ConvertRectToScreen(Shell::GetTargetRootWindow(), &params().bounds);
widget->Init(params());
widget->GetNativeView()->SetName(name_);

Powered by Google App Engine
This is Rietveld 408576698