summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 06:29:54 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-06 06:29:54 +0000
commit6b2d4a0b58fedbc3b9c646b05b0eeadddc218e03 (patch)
treeb1188d06247a00f4ad2bfb33e48ff19d67e43ea8 /ash
parent3ea429189890fd2fc2f71760c4ccb73373ffa9c7 (diff)
downloadchromium_src-6b2d4a0b58fedbc3b9c646b05b0eeadddc218e03.zip
chromium_src-6b2d4a0b58fedbc3b9c646b05b0eeadddc218e03.tar.gz
chromium_src-6b2d4a0b58fedbc3b9c646b05b0eeadddc218e03.tar.bz2
Move GetRootWindowController to root_window_controller.h
Remove unnecessary includes, forward decls BUG=272460 Review URL: https://chromiumcodereview.appspot.com/24020002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/desktop_background/desktop_background_controller.cc8
-rw-r--r--ash/desktop_background/desktop_background_view.cc1
-rw-r--r--ash/display/display_controller.cc11
-rw-r--r--ash/extended_desktop_unittest.cc3
-rw-r--r--ash/root_window_controller.cc12
-rw-r--r--ash/root_window_controller.h5
-rw-r--r--ash/screen_ash.cc3
-rw-r--r--ash/shelf/shelf_layout_manager.cc1
-rw-r--r--ash/shell.cc7
-rw-r--r--ash/system/tray/tray_event_filter.cc7
-rw-r--r--ash/touch/touch_hud_debug.cc1
-rw-r--r--ash/touch/touch_observer_hud.cc1
-rw-r--r--ash/touch/touch_observer_hud_unittest.cc1
-rw-r--r--ash/wm/app_list_controller.cc1
-rw-r--r--ash/wm/gestures/long_press_affordance_handler.cc13
-rw-r--r--ash/wm/property_util.cc15
-rw-r--r--ash/wm/property_util.h13
-rw-r--r--ash/wm/root_window_layout_manager.cc1
-rw-r--r--ash/wm/stacking_controller.cc4
-rw-r--r--ash/wm/system_gesture_event_filter.cc1
-rw-r--r--ash/wm/window_util.h2
-rw-r--r--ash/wm/workspace/workspace_layout_manager.cc1
22 files changed, 38 insertions, 74 deletions
diff --git a/ash/desktop_background/desktop_background_controller.cc b/ash/desktop_background/desktop_background_controller.cc
index 1456def..d8348eb 100644
--- a/ash/desktop_background/desktop_background_controller.cc
+++ b/ash/desktop_background/desktop_background_controller.cc
@@ -14,7 +14,6 @@
#include "ash/shell.h"
#include "ash/shell_factory.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/root_window_layout_manager.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -414,10 +413,11 @@ void DesktopBackgroundController::InstallDesktopController(
NOTREACHED();
return;
}
- GetRootWindowController(root_window)->SetAnimatingWallpaperController(
- new internal::AnimatingDesktopController(component));
+ internal::GetRootWindowController(root_window)->
+ SetAnimatingWallpaperController(
+ new internal::AnimatingDesktopController(component));
- component->StartAnimating(GetRootWindowController(root_window));
+ component->StartAnimating(internal::GetRootWindowController(root_window));
}
void DesktopBackgroundController::InstallDesktopControllerForAllWindows() {
diff --git a/ash/desktop_background/desktop_background_view.cc b/ash/desktop_background/desktop_background_view.cc
index 6f16850..b46109f 100644
--- a/ash/desktop_background/desktop_background_view.cc
+++ b/ash/desktop_background/desktop_background_view.cc
@@ -15,7 +15,6 @@
#include "ash/session_state_delegate.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_animations.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index 7475379..2141e0c 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -19,7 +19,6 @@
#include "ash/screen_ash.h"
#include "ash/shell.h"
#include "ash/wm/coordinate_conversion.h"
-#include "ash/wm/property_util.h"
#include "base/command_line.h"
#include "base/strings/stringprintf.h"
#include "third_party/skia/include/utils/SkMatrix44.h"
@@ -260,7 +259,7 @@ void DisplayController::Shutdown() {
for (std::map<int64, aura::RootWindow*>::const_reverse_iterator it =
root_windows_.rbegin(); it != root_windows_.rend(); ++it) {
internal::RootWindowController* controller =
- GetRootWindowController(it->second);
+ internal::GetRootWindowController(it->second);
DCHECK(controller);
delete controller;
}
@@ -322,7 +321,7 @@ void DisplayController::CloseChildWindows() {
root_windows_.begin(); it != root_windows_.end(); ++it) {
aura::RootWindow* root_window = it->second;
internal::RootWindowController* controller =
- GetRootWindowController(root_window);
+ internal::GetRootWindowController(root_window);
if (controller) {
controller->CloseChildWindows();
} else {
@@ -339,7 +338,7 @@ std::vector<aura::RootWindow*> DisplayController::GetAllRootWindows() {
for (std::map<int64, aura::RootWindow*>::const_iterator it =
root_windows_.begin(); it != root_windows_.end(); ++it) {
DCHECK(it->second);
- if (GetRootWindowController(it->second))
+ if (internal::GetRootWindowController(it->second))
windows.push_back(it->second);
}
return windows;
@@ -360,7 +359,7 @@ DisplayController::GetAllRootWindowControllers() {
for (std::map<int64, aura::RootWindow*>::const_iterator it =
root_windows_.begin(); it != root_windows_.end(); ++it) {
internal::RootWindowController* controller =
- GetRootWindowController(it->second);
+ internal::GetRootWindowController(it->second);
if (controller)
controllers.push_back(controller);
}
@@ -684,7 +683,7 @@ void DisplayController::OnDisplayRemoved(const gfx::Display& display) {
GetDisplayManager()->GetDisplayForId(primary_display_id));
}
internal::RootWindowController* controller =
- GetRootWindowController(root_to_delete);
+ internal::GetRootWindowController(root_to_delete);
DCHECK(controller);
controller->MoveWindowsTo(GetPrimaryRootWindow());
// Delete most of root window related objects, but don't delete
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index d36e824..31dbd15 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -11,7 +11,6 @@
#include "ash/system/tray/system_tray.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/coordinate_conversion.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_cycle_controller.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
@@ -168,7 +167,7 @@ TEST_F(ExtendedDesktopTest, Basic) {
ASSERT_EQ(2U, root_windows.size());
for (Shell::RootWindowList::const_iterator iter = root_windows.begin();
iter != root_windows.end(); ++iter) {
- EXPECT_TRUE(GetRootWindowController(*iter) != NULL);
+ EXPECT_TRUE(internal::GetRootWindowController(*iter) != NULL);
}
// Make sure root windows share the same controllers.
EXPECT_EQ(aura::client::GetFocusClient(root_windows[0]),
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index b0c52462..cd3ecdf 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -32,7 +32,6 @@
#include "ash/wm/dock/docked_window_layout_manager.h"
#include "ash/wm/panels/panel_layout_manager.h"
#include "ash/wm/panels/panel_window_event_handler.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/root_window_layout_manager.h"
#include "ash/wm/screen_dimmer.h"
#include "ash/wm/stacking_controller.h"
@@ -219,7 +218,7 @@ RootWindowController::RootWindowController(aura::RootWindow* root_window)
panel_layout_manager_(NULL),
touch_hud_debug_(NULL),
touch_hud_projection_(NULL) {
- SetRootWindowController(root_window, this);
+ GetRootWindowSettings(root_window)->controller = this;
screen_dimmer_.reset(new ScreenDimmer(root_window));
stacking_controller_.reset(new StackingController);
@@ -248,7 +247,7 @@ RootWindowController* RootWindowController::ForWindow(
// static
RootWindowController* RootWindowController::ForActiveRootWindow() {
- return GetRootWindowController(Shell::GetActiveRootWindow());
+ return internal::GetRootWindowController(Shell::GetActiveRootWindow());
}
void RootWindowController::SetWallpaperController(
@@ -282,7 +281,7 @@ void RootWindowController::Shutdown() {
}
CloseChildWindows();
- SetRootWindowController(root_window_.get(), NULL);
+ GetRootWindowSettings(root_window_.get())->controller = NULL;
screen_dimmer_.reset();
workspace_controller_.reset();
// Forget with the display ID so that display lookup
@@ -819,5 +818,10 @@ void RootWindowController::OnTouchHudProjectionToggled(bool enabled) {
DisableTouchHudProjection();
}
+RootWindowController* GetRootWindowController(
+ const aura::RootWindow* root_window) {
+ return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
+}
+
} // namespace internal
} // namespace ash
diff --git a/ash/root_window_controller.h b/ash/root_window_controller.h
index 211cf0c..8bdbdb2 100644
--- a/ash/root_window_controller.h
+++ b/ash/root_window_controller.h
@@ -286,6 +286,11 @@ class ASH_EXPORT RootWindowController : public ShellObserver {
DISALLOW_COPY_AND_ASSIGN(RootWindowController);
};
+
+// Gets the RootWindowController for |root_window|.
+ASH_EXPORT RootWindowController* GetRootWindowController(
+ const aura::RootWindow* root_window);
+
} // namespace internal
} // ash
diff --git a/ash/screen_ash.cc b/ash/screen_ash.cc
index 31c5bcc..b0ade92 100644
--- a/ash/screen_ash.cc
+++ b/ash/screen_ash.cc
@@ -10,7 +10,6 @@
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/coordinate_conversion.h"
#include "base/logging.h"
#include "ui/aura/client/screen_position_client.h"
@@ -44,7 +43,7 @@ gfx::Display ScreenAsh::FindDisplayContainingPoint(const gfx::Point& point) {
// static
gfx::Rect ScreenAsh::GetMaximizedWindowBoundsInParent(aura::Window* window) {
- if (GetRootWindowController(window->GetRootWindow())->shelf())
+ if (internal::GetRootWindowController(window->GetRootWindow())->shelf())
return GetDisplayWorkAreaBoundsInParent(window);
else
return GetDisplayBoundsInParent(window);
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 1ea2d98..c3cf7f99 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -24,7 +24,6 @@
#include "ash/system/status_area_widget.h"
#include "ash/wm/gestures/shelf_gesture_handler.h"
#include "ash/wm/mru_window_tracker.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_animations.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
diff --git a/ash/shell.cc b/ash/shell.cc
index 5348542..b99fc90 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -56,7 +56,6 @@
#include "ash/wm/overlay_event_filter.h"
#include "ash/wm/overview/window_selector_controller.h"
#include "ash/wm/power_button_controller.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/resize_shadow_controller.h"
#include "ash/wm/root_window_layout_manager.h"
#include "ash/wm/screen_dimmer.h"
@@ -368,7 +367,7 @@ void Shell::DeleteInstance() {
// static
internal::RootWindowController* Shell::GetPrimaryRootWindowController() {
- return GetRootWindowController(GetPrimaryRootWindow());
+ return internal::GetRootWindowController(GetPrimaryRootWindow());
}
// static
@@ -646,7 +645,7 @@ void Shell::ShowContextMenu(const gfx::Point& location_in_screen,
// NULL even for the out-of-bounds |location_in_screen| (It should
// return the primary root). Investigate why/how this is
// happening. crbug.com/165214.
- internal::RootWindowController* rwc = GetRootWindowController(root);
+ internal::RootWindowController* rwc = internal::GetRootWindowController(root);
CHECK(rwc) << "root=" << root
<< ", location:" << location_in_screen.ToString();
if (rwc)
@@ -796,7 +795,7 @@ void Shell::SetShelfAlignment(ShelfAlignment alignment,
}
ShelfAlignment Shell::GetShelfAlignment(aura::RootWindow* root_window) {
- return GetRootWindowController(root_window)->
+ return internal::GetRootWindowController(root_window)->
GetShelfLayoutManager()->GetAlignment();
}
diff --git a/ash/system/tray/tray_event_filter.cc b/ash/system/tray/tray_event_filter.cc
index 949b2f9..a5ea3a2 100644
--- a/ash/system/tray/tray_event_filter.cc
+++ b/ash/system/tray/tray_event_filter.cc
@@ -12,7 +12,6 @@
#include "ash/system/tray/tray_bubble_wrapper.h"
#include "ash/system/tray/tray_constants.h"
#include "ash/system/tray/tray_event_filter.h"
-#include "ash/wm/property_util.h"
#include "ui/aura/client/screen_position_client.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -57,10 +56,10 @@ bool TrayEventFilter::ProcessLocatedEvent(ui::LocatedEvent* event) {
if (event->target()) {
aura::Window* target = static_cast<aura::Window*>(event->target());
// Don't process events that occurred inside an embedded menu.
- ash::internal::RootWindowController* root_controller =
- ash::GetRootWindowController(target->GetRootWindow());
+ internal::RootWindowController* root_controller =
+ internal::GetRootWindowController(target->GetRootWindow());
if (root_controller && root_controller->GetContainer(
- ash::internal::kShellWindowId_MenuContainer)->Contains(target)) {
+ internal::kShellWindowId_MenuContainer)->Contains(target)) {
return false;
}
}
diff --git a/ash/touch/touch_hud_debug.cc b/ash/touch/touch_hud_debug.cc
index 5b7c120..769bffa 100644
--- a/ash/touch/touch_hud_debug.cc
+++ b/ash/touch/touch_hud_debug.cc
@@ -7,7 +7,6 @@
#include "ash/display/display_manager.h"
#include "ash/root_window_controller.h"
#include "ash/shell.h"
-#include "ash/wm/property_util.h"
#include "base/json/json_string_value_serializer.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
diff --git a/ash/touch/touch_observer_hud.cc b/ash/touch/touch_observer_hud.cc
index ed208c8..0af6c67 100644
--- a/ash/touch/touch_observer_hud.cc
+++ b/ash/touch/touch_observer_hud.cc
@@ -8,7 +8,6 @@
#include "ash/root_window_settings.h"
#include "ash/shell.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/property_util.h"
#include "ui/aura/root_window.h"
#include "ui/gfx/display.h"
#include "ui/gfx/rect.h"
diff --git a/ash/touch/touch_observer_hud_unittest.cc b/ash/touch/touch_observer_hud_unittest.cc
index 4d74982..df992ba 100644
--- a/ash/touch/touch_observer_hud_unittest.cc
+++ b/ash/touch/touch_observer_hud_unittest.cc
@@ -12,7 +12,6 @@
#include "ash/test/ash_test_base.h"
#include "ash/test/display_manager_test_api.h"
#include "ash/touch/touch_hud_debug.h"
-#include "ash/wm/property_util.h"
#include "base/command_line.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
diff --git a/ash/wm/app_list_controller.cc b/ash/wm/app_list_controller.cc
index ea5e4f4..b142288 100644
--- a/ash/wm/app_list_controller.cc
+++ b/ash/wm/app_list_controller.cc
@@ -11,7 +11,6 @@
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/shell_window_ids.h"
-#include "ash/wm/property_util.h"
#include "base/command_line.h"
#include "ui/app_list/app_list_constants.h"
#include "ui/app_list/pagination_model.h"
diff --git a/ash/wm/gestures/long_press_affordance_handler.cc b/ash/wm/gestures/long_press_affordance_handler.cc
index 5450e97..8b8468f 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();
diff --git a/ash/wm/property_util.cc b/ash/wm/property_util.cc
index 4c0470a..5aac996 100644
--- a/ash/wm/property_util.cc
+++ b/ash/wm/property_util.cc
@@ -4,13 +4,9 @@
#include "ash/wm/property_util.h"
-#include "ash/ash_export.h"
-#include "ash/root_window_settings.h"
#include "ash/screen_ash.h"
#include "ash/wm/window_properties.h"
-#include "ash/wm/window_util.h"
#include "ui/aura/client/aura_constants.h"
-#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/base/ui_base_types.h"
#include "ui/gfx/rect.h"
@@ -65,15 +61,4 @@ bool GetWindowAlwaysRestoresToRestoreBounds(const aura::Window* window) {
return window->GetProperty(internal::kWindowRestoresToRestoreBounds);
}
-internal::RootWindowController* GetRootWindowController(
- const aura::RootWindow* root_window) {
- return root_window ?
- internal::GetRootWindowSettings(root_window)->controller : NULL;
-}
-
-void SetRootWindowController(aura::RootWindow* root_window,
- internal::RootWindowController* controller) {
- internal::GetRootWindowSettings(root_window)->controller = controller;
-}
-
} // namespace ash
diff --git a/ash/wm/property_util.h b/ash/wm/property_util.h
index 41a9d93..365a373e 100644
--- a/ash/wm/property_util.h
+++ b/ash/wm/property_util.h
@@ -8,7 +8,6 @@
#include "ash/ash_export.h"
namespace aura {
-class RootWindow;
class Window;
}
@@ -17,9 +16,6 @@ class Rect;
}
namespace ash {
-namespace internal {
-class RootWindowController;
-}
// Sets the restore bounds property on |window| in the virtual screen
// coordinates. Deletes existing bounds value if exists.
@@ -63,13 +59,6 @@ ASH_EXPORT bool GetWindowAlwaysRestoresToRestoreBounds(
ASH_EXPORT void SetTrackedByWorkspace(aura::Window* window, bool value);
ASH_EXPORT bool GetTrackedByWorkspace(const aura::Window* window);
-// Sets/Gets the RootWindowController for |root_window|.
-ASH_EXPORT void SetRootWindowController(
- aura::RootWindow* root_window,
- internal::RootWindowController* controller);
-ASH_EXPORT internal::RootWindowController* GetRootWindowController(
- const aura::RootWindow* root_window);
-
-}
+} // namespace ash
#endif // ASH_WM_PROPERTY_UTIL_H_
diff --git a/ash/wm/root_window_layout_manager.cc b/ash/wm/root_window_layout_manager.cc
index 584bc06..16620f6 100644
--- a/ash/wm/root_window_layout_manager.cc
+++ b/ash/wm/root_window_layout_manager.cc
@@ -6,7 +6,6 @@
#include "ash/desktop_background/desktop_background_widget_controller.h"
#include "ash/root_window_controller.h"
-#include "ash/wm/property_util.h"
#include "ui/aura/root_window.h"
#include "ui/compositor/layer.h"
#include "ui/views/widget/widget.h"
diff --git a/ash/wm/stacking_controller.cc b/ash/wm/stacking_controller.cc
index 026924c..4476a86 100644
--- a/ash/wm/stacking_controller.cc
+++ b/ash/wm/stacking_controller.cc
@@ -10,7 +10,6 @@
#include "ash/shell_window_ids.h"
#include "ash/wm/always_on_top_controller.h"
#include "ash/wm/coordinate_conversion.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_properties.h"
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/root_window.h"
@@ -56,7 +55,8 @@ bool IsPanelAttached(aura::Window* window) {
internal::AlwaysOnTopController*
GetAlwaysOnTopController(aura::RootWindow* root_window) {
- return GetRootWindowController(root_window)->always_on_top_controller();
+ return internal::GetRootWindowController(root_window)->
+ always_on_top_controller();
}
} // namespace
diff --git a/ash/wm/system_gesture_event_filter.cc b/ash/wm/system_gesture_event_filter.cc
index b368822..4371bd0 100644
--- a/ash/wm/system_gesture_event_filter.cc
+++ b/ash/wm/system_gesture_event_filter.cc
@@ -14,7 +14,6 @@
#include "ash/wm/gestures/long_press_affordance_handler.h"
#include "ash/wm/gestures/system_pinch_handler.h"
#include "ash/wm/gestures/two_finger_drag_handler.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_util.h"
#include "base/command_line.h"
#include "ui/aura/root_window.h"
diff --git a/ash/wm/window_util.h b/ash/wm/window_util.h
index 6822a77..c114b8d 100644
--- a/ash/wm/window_util.h
+++ b/ash/wm/window_util.h
@@ -10,7 +10,6 @@
#include "ui/base/ui_base_types.h"
namespace aura {
-class RootWindow;
class Window;
}
@@ -20,7 +19,6 @@ class Rect;
namespace ui {
class Event;
-class Layer;
}
namespace ash {
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc
index 44e7bfa5..b39213e 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -12,7 +12,6 @@
#include "ash/wm/always_on_top_controller.h"
#include "ash/wm/base_layout_manager.h"
#include "ash/wm/frame_painter.h"
-#include "ash/wm/property_util.h"
#include "ash/wm/window_animations.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"