Skip to content

Commit

Permalink
Moves ScreenDimmer to ash/common
Browse files Browse the repository at this point in the history
It no longer has any deps on non-common types.

BUG=640781
TEST=covered by tests
R=jamescook@chromium.org

Review-Url: https://codereview.chromium.org/2334013003
Cr-Commit-Position: refs/heads/master@{#418226}
  • Loading branch information
sky authored and Commit bot committed Sep 13, 2016
1 parent c42a74b commit f3bc2db
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ash/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,8 @@ component("ash") {
"common/wm/root_window_finder.h",
"common/wm/root_window_layout_manager.cc",
"common/wm/root_window_layout_manager.h",
"common/wm/screen_dimmer.cc",
"common/wm/screen_dimmer.h",
"common/wm/switchable_windows.cc",
"common/wm/switchable_windows.h",
"common/wm/system_modal_container_layout_manager.cc",
Expand Down Expand Up @@ -778,8 +780,6 @@ component("ash") {
"wm/resize_shadow.h",
"wm/resize_shadow_controller.cc",
"wm/resize_shadow_controller.h",
"wm/screen_dimmer.cc",
"wm/screen_dimmer.h",
"wm/screen_pinning_controller.cc",
"wm/screen_pinning_controller.h",
"wm/session_state_animator.cc",
Expand Down
2 changes: 1 addition & 1 deletion ash/wm/screen_dimmer.cc → ash/common/wm/screen_dimmer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/wm/screen_dimmer.h"
#include "ash/common/wm/screen_dimmer.h"

#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/container_finder.h"
Expand Down
6 changes: 3 additions & 3 deletions ash/wm/screen_dimmer.h → ash/common/wm/screen_dimmer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_WM_SCREEN_DIMMER_H_
#define ASH_WM_SCREEN_DIMMER_H_
#ifndef ASH_COMMON_WM_SCREEN_DIMMER_H_
#define ASH_COMMON_WM_SCREEN_DIMMER_H_

#include <memory>
#include <vector>
Expand Down Expand Up @@ -77,4 +77,4 @@ class ASH_EXPORT ScreenDimmer : public ShellObserver {

} // namespace ash

#endif // ASH_WM_SCREEN_DIMMER_H_
#endif // ASH_COMMON_WM_SCREEN_DIMMER_H_
2 changes: 1 addition & 1 deletion ash/wm/screen_dimmer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/wm/screen_dimmer.h"
#include "ash/common/wm/screen_dimmer.h"

#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

#include "chrome/browser/chromeos/dbus/chrome_display_power_service_provider_delegate.h"

#include "ash/common/wm/screen_dimmer.h"
#include "ash/shell.h"
#include "ash/wm/screen_dimmer.h"
#include "base/memory/ptr_util.h"
#include "ui/base/user_activity/user_activity_detector.h"
#include "ui/display/chromeos/display_configurator.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <memory>

#include "ash/wm/screen_dimmer.h"
#include "ash/common/wm/screen_dimmer.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "base/macros.h"
Expand Down

0 comments on commit f3bc2db

Please sign in to comment.