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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc

Issue 2660873002: Move two utility functions from ash/screen_util.h to ui/wm/core/coordinate_conversion.h (Closed)
Patch Set: rebase Created 3 years, 10 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 | « chrome/browser/chromeos/accessibility/magnification_controller_browsertest.cc ('k') | ui/wm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
index 65e254eb468daea8636b16878902bd6f4e891609..6e5d89cd13234bb41e7214a16f79450a04be7f05 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc
@@ -16,7 +16,6 @@
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/public/cpp/window_properties.h"
-#include "ash/screen_util.h"
#include "ash/shared/app_types.h"
#include "ash/shared/immersive_fullscreen_controller.h"
#include "ash/shell.h"
@@ -40,6 +39,7 @@
#include "ui/views/controls/menu/menu_model_adapter.h"
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/widget/widget.h"
+#include "ui/wm/core/coordinate_conversion.h"
using extensions::AppWindow;
@@ -200,8 +200,9 @@ void ChromeNativeAppWindowViewsAuraAsh::OnBeforePanelWidgetInit(
} else if (ash::Shell::HasInstance() && use_default_bounds) {
// Open a new panel on the target root.
init_params->context = ash::Shell::GetTargetRootWindow();
- init_params->bounds = ash::ScreenUtil::ConvertRectToScreen(
- ash::Shell::GetTargetRootWindow(), gfx::Rect(GetPreferredSize()));
+ init_params->bounds = gfx::Rect(GetPreferredSize());
+ wm::ConvertRectToScreen(ash::Shell::GetTargetRootWindow(),
+ &init_params->bounds);
}
}
« no previous file with comments | « chrome/browser/chromeos/accessibility/magnification_controller_browsertest.cc ('k') | ui/wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698