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

Unified Diff: ash/wm/window_state.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/window_resizer.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.cc
diff --git a/ash/wm/window_state.cc b/ash/wm/window_state.cc
index 7a5dacc79cbe5c91ffd02ff842192e99e53d9c0e..8553b9cb27c411a4f17a1dc088ad337048b8ddb7 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"
@@ -203,14 +203,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);
}
@@ -220,7 +220,7 @@ gfx::Rect WindowState::GetRestoreBoundsInScreen() const {
}
gfx::Rect WindowState::GetRestoreBoundsInParent() const {
- return ScreenAsh::ConvertRectFromScreen(window_->parent(),
+ return ScreenUtil::ConvertRectFromScreen(window_->parent(),
GetRestoreBoundsInScreen());
}
@@ -230,7 +230,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() {
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/window_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698