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

Unified Diff: ash/wm/caption_buttons/frame_maximize_button.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/caption_buttons/alternate_frame_size_button.cc ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/caption_buttons/frame_maximize_button.cc
diff --git a/ash/wm/caption_buttons/frame_maximize_button.cc b/ash/wm/caption_buttons/frame_maximize_button.cc
index d2f24f01d90a4b0075b3077d395622ffa0a638ce..03eaa81b57d52e836f56de0d88288025111cf43b 100644
--- a/ash/wm/caption_buttons/frame_maximize_button.cc
+++ b/ash/wm/caption_buttons/frame_maximize_button.cc
@@ -5,7 +5,7 @@
#include "ash/wm/caption_buttons/frame_maximize_button.h"
#include "ash/metrics/user_metrics_recorder.h"
-#include "ash/screen_ash.h"
+#include "ash/screen_util.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "ash/touch/touch_uma.h"
@@ -426,7 +426,7 @@ void FrameMaximizeButton::UpdateSnap(const gfx::Point& location,
if (type == snap_type_) {
if (snap_sizer_) {
snap_sizer_->Update(LocationForSnapSizer(location));
- phantom_window_->Show(ScreenAsh::ConvertRectToScreen(
+ phantom_window_->Show(ScreenUtil::ConvertRectToScreen(
frame_->GetNativeView()->parent(),
snap_sizer_->target_bounds()));
}
@@ -490,12 +490,12 @@ gfx::Rect FrameMaximizeButton::ScreenBoundsForType(
switch (type) {
case SNAP_LEFT:
case SNAP_RIGHT:
- return ScreenAsh::ConvertRectToScreen(window->parent(),
+ return ScreenUtil::ConvertRectToScreen(window->parent(),
snap_sizer.target_bounds());
case SNAP_MAXIMIZE:
- return ScreenAsh::ConvertRectToScreen(
+ return ScreenUtil::ConvertRectToScreen(
window->parent(),
- ScreenAsh::GetMaximizedWindowBoundsInParent(window));
+ ScreenUtil::GetMaximizedWindowBoundsInParent(window));
case SNAP_MINIMIZE: {
gfx::Rect rect = GetMinimizeAnimationTargetBoundsInScreen(window);
if (!rect.IsEmpty()) {
« no previous file with comments | « ash/wm/caption_buttons/alternate_frame_size_button.cc ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698