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

Unified Diff: ash/wm/dock/docked_window_resizer.cc

Issue 138003007: [Cleanup] Screen cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make sure screen_for_shutdown is reset everytime Created 6 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
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_resizer.cc
diff --git a/ash/wm/dock/docked_window_resizer.cc b/ash/wm/dock/docked_window_resizer.cc
index 3ee18ded4af53398b07f25228bbe018960b66c8b..bfc08b36620822082448b309b7a2f82135510393 100644
--- a/ash/wm/dock/docked_window_resizer.cc
+++ b/ash/wm/dock/docked_window_resizer.cc
@@ -6,7 +6,7 @@
#include "ash/display/display_controller.h"
#include "ash/root_window_controller.h"
-#include "ash/screen_ash.h"
+#include "ash/screen_util.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_types.h"
#include "ash/shelf/shelf_widget.h"
@@ -38,7 +38,7 @@ namespace {
DockedWindowLayoutManager* GetDockedLayoutManagerAtPoint(
const gfx::Point& point) {
- gfx::Display display = ScreenAsh::FindDisplayContainingPoint(point);
+ gfx::Display display = ScreenUtil::FindDisplayContainingPoint(point);
if (!display.is_valid())
return NULL;
aura::Window* root = Shell::GetInstance()->display_controller()->
@@ -157,7 +157,7 @@ void DockedWindowResizer::MaybeSnapToEdge(const gfx::Rect& bounds,
if (!was_docked_)
return;
DockedAlignment dock_alignment = dock_layout_->CalculateAlignment();
- gfx::Rect dock_bounds = ScreenAsh::ConvertRectFromScreen(
+ gfx::Rect dock_bounds = ScreenUtil::ConvertRectFromScreen(
GetTarget()->parent(),
dock_layout_->dock_container()->GetBoundsInScreen());
@@ -226,7 +226,7 @@ void DockedWindowResizer::FinishedDragging() {
// When drag is completed the dragged docked window is resized to the bounds
// calculated by the layout manager that conform to other docked windows.
if (!is_attached_panel && is_docked_ && !is_resized) {
- gfx::Rect bounds = ScreenAsh::ConvertRectFromScreen(
+ gfx::Rect bounds = ScreenUtil::ConvertRectFromScreen(
window->parent(), dock_layout_->dragged_bounds());
if (!bounds.IsEmpty() && bounds.width() != window->bounds().width()) {
window->SetBounds(bounds);
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698