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

Unified Diff: ash/wm/gestures/long_press_affordance_handler.cc

Issue 24020002: Move GetRootWindowController() to root_window_controller.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/app_list_controller.cc ('k') | ash/wm/property_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/gestures/long_press_affordance_handler.cc
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 5450e97c27ff7b543b5b0a74c38d23cd8ce4af9a..8b8468f0063275fc2082ac9ada44e29d1ec044d2 100644
--- a/ash/wm/gestures/long_press_affordance_handler.cc
+++ b/ash/wm/gestures/long_press_affordance_handler.cc
@@ -8,7 +8,6 @@
#include "ash/shell.h"
#include "ash/root_window_controller.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/property_util.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
@@ -26,6 +25,8 @@
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
+namespace ash {
+namespace internal {
namespace {
const int kAffordanceOuterRadius = 60;
@@ -69,9 +70,8 @@ views::Widget* CreateAffordanceWidget(aura::RootWindow* root_window) {
params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
widget->Init(params);
widget->SetOpacity(0xFF);
- ash::GetRootWindowController(root_window)->GetContainer(
- ash::internal::kShellWindowId_OverlayContainer)->AddChild(
- widget->GetNativeWindow());
+ GetRootWindowController(root_window)->GetContainer(
+ kShellWindowId_OverlayContainer)->AddChild(widget->GetNativeWindow());
return widget;
}
@@ -133,9 +133,6 @@ void PaintAffordanceGlow(gfx::Canvas* canvas,
} // namespace
-namespace ash {
-namespace internal {
-
// View of the LongPressAffordanceHandler. Draws the actual contents and
// updates as the animation proceeds. It also maintains the views::Widget that
// the animation is shown in.
@@ -297,7 +294,7 @@ void LongPressAffordanceHandler::StartAnimation() {
aura::RootWindow* root_window = NULL;
switch (current_animation_type_) {
case GROW_ANIMATION:
- root_window = ash::Shell::GetInstance()->display_controller()->
+ root_window = Shell::GetInstance()->display_controller()->
GetRootWindowForDisplayId(tap_down_display_id_);
if (!root_window) {
StopAnimation();
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/property_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698