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

Unified Diff: ash/wm/window_state.cc

Issue 138003007: [Cleanup] Screen cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix conflict 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
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 185372e5eab24982323ab776eef30680cf98f4f5..2c96e308e52be5ef1cf8176ac6aab24684ce601c 100644
--- a/ash/wm/window_state.cc
+++ b/ash/wm/window_state.cc
@@ -6,7 +6,7 @@
#include "ash/ash_switches.h"
#include "ash/root_window_controller.h"
-#include "ash/screen_ash.h"
+#include "ash/screen_util.h"
#include "ash/shell_window_ids.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state_delegate.h"
@@ -204,14 +204,14 @@ void WindowState::ToggleFullscreen() {
void WindowState::SetBoundsInScreen(
const gfx::Rect& bounds_in_screen) {
gfx::Rect bounds_in_parent =
- ScreenAsh::ConvertRectFromScreen(window_->parent(),
+ ScreenUtil::ConvertRectFromScreen(window_->parent(),
bounds_in_screen);
window_->SetBounds(bounds_in_parent);
}
void WindowState::SaveCurrentBoundsForRestore() {
gfx::Rect bounds_in_screen =
- ScreenAsh::ConvertRectToScreen(window_->parent(),
+ ScreenUtil::ConvertRectToScreen(window_->parent(),
window_->bounds());
SetRestoreBoundsInScreen(bounds_in_screen);
}
@@ -221,7 +221,7 @@ gfx::Rect WindowState::GetRestoreBoundsInScreen() const {
}
gfx::Rect WindowState::GetRestoreBoundsInParent() const {
- return ScreenAsh::ConvertRectFromScreen(window_->parent(),
+ return ScreenUtil::ConvertRectFromScreen(window_->parent(),
GetRestoreBoundsInScreen());
}
@@ -231,7 +231,7 @@ void WindowState::SetRestoreBoundsInScreen(const gfx::Rect& bounds) {
void WindowState::SetRestoreBoundsInParent(const gfx::Rect& bounds) {
SetRestoreBoundsInScreen(
- ScreenAsh::ConvertRectToScreen(window_->parent(), bounds));
+ ScreenUtil::ConvertRectToScreen(window_->parent(), bounds));
}
void WindowState::ClearRestoreBounds() {

Powered by Google App Engine
This is Rietveld 408576698