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

Unified Diff: ash/common/wm/workspace/phantom_window_controller.cc

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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/common/wm/workspace/phantom_window_controller.cc
diff --git a/ash/common/wm/workspace/phantom_window_controller.cc b/ash/common/wm/workspace/phantom_window_controller.cc
index 58990839ea72b745bcb1a63753b502ec2234c7bc..ed41816ea30a40e4feb43c354e865d4575c9fa76 100644
--- a/ash/common/wm/workspace/phantom_window_controller.cc
+++ b/ash/common/wm/workspace/phantom_window_controller.cc
@@ -8,9 +8,9 @@
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/root_window_finder.h"
-#include "ash/common/wm/wm_lookup.h"
-#include "ash/common/wm/wm_root_window_controller.h"
-#include "ash/common/wm/wm_window.h"
+#include "ash/common/wm_lookup.h"
+#include "ash/common/wm_root_window_controller.h"
+#include "ash/common/wm_window.h"
#include "grit/ash_resources.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
@@ -61,10 +61,7 @@ void AnimateToBounds(views::Widget* widget,
return;
ui::ScopedLayerAnimationSettings scoped_setter(
- wm::WmLookup::Get()
- ->GetWindowForWidget(widget)
- ->GetLayer()
- ->GetAnimator());
+ WmLookup::Get()->GetWindowForWidget(widget)->GetLayer()->GetAnimator());
scoped_setter.SetTweenType(gfx::Tween::EASE_IN);
scoped_setter.SetPreemptionStrategy(
ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET);
@@ -77,7 +74,7 @@ void AnimateToBounds(views::Widget* widget,
// PhantomWindowController ----------------------------------------------------
-PhantomWindowController::PhantomWindowController(wm::WmWindow* window)
+PhantomWindowController::PhantomWindowController(WmWindow* window)
: window_(window) {}
PhantomWindowController::~PhantomWindowController() {}
@@ -106,7 +103,7 @@ void PhantomWindowController::Show(const gfx::Rect& bounds_in_screen) {
}
std::unique_ptr<views::Widget> PhantomWindowController::CreatePhantomWidget(
- wm::WmWindow* root_window,
+ WmWindow* root_window,
const gfx::Rect& bounds_in_screen) {
std::unique_ptr<views::Widget> phantom_widget(new views::Widget);
views::Widget::InitParams params(views::Widget::InitParams::TYPE_POPUP);
@@ -122,8 +119,8 @@ std::unique_ptr<views::Widget> PhantomWindowController::CreatePhantomWidget(
phantom_widget->set_focus_on_creation(false);
phantom_widget->Init(params);
phantom_widget->SetVisibilityChangedAnimationsEnabled(false);
- wm::WmWindow* phantom_widget_window =
- wm::WmLookup::Get()->GetWindowForWidget(phantom_widget.get());
+ WmWindow* phantom_widget_window =
+ WmLookup::Get()->GetWindowForWidget(phantom_widget.get());
phantom_widget_window->SetShellWindowId(kShellWindowId_PhantomWindow);
phantom_widget->SetBounds(bounds_in_screen);
// TODO(sky): I suspect this is never true, verify that.

Powered by Google App Engine
This is Rietveld 408576698