Skip to content

Commit

Permalink
Small improvements of header inclusion for ws/display.h
Browse files Browse the repository at this point in the history
This CL removes some inclusions of ws/display.h that are actually not
necessary or can just be replaced with a pre-declaration of ws::Display.

BUG=None

Review-Url: https://codereview.chromium.org/2679643002
Cr-Commit-Position: refs/heads/master@{#448289}
  • Loading branch information
fred-wang authored and Commit bot committed Feb 6, 2017
1 parent be2836e commit dac8ee8
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion services/ui/service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "services/ui/ime/ime_registrar_impl.h"
#include "services/ui/ime/ime_server_impl.h"
#include "services/ui/ws/accessibility_manager.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/display_binding.h"
#include "services/ui/ws/display_manager.h"
#include "services/ui/ws/gpu_host.h"
Expand Down
2 changes: 1 addition & 1 deletion services/ui/ws/display_binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#include "base/macros.h"
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/user_id.h"

namespace ui {
namespace ws {

class Display;
class ServerWindow;
class WindowServer;
class WindowTree;
Expand Down
1 change: 0 additions & 1 deletion services/ui/ws/event_dispatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "services/ui/ws/accelerator.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/drag_controller.h"
#include "services/ui/ws/drag_source.h"
#include "services/ui/ws/event_dispatcher_delegate.h"
Expand Down
1 change: 1 addition & 0 deletions services/ui/ws/window_manager_display_root.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "services/ui/ws/window_manager_display_root.h"

#include "services/ui/ws/display.h"
#include "services/ui/ws/display_manager.h"
#include "services/ui/ws/server_window.h"
#include "services/ui/ws/window_server.h"
Expand Down
1 change: 1 addition & 0 deletions services/ui/ws/window_manager_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "services/service_manager/public/interfaces/connector.mojom.h"
#include "services/ui/common/accelerator_util.h"
#include "services/ui/ws/accelerator.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/display_manager.h"
#include "services/ui/ws/platform_display.h"
#include "services/ui/ws/server_window.h"
Expand Down
1 change: 1 addition & 0 deletions services/ui/ws/window_manager_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace ui {
namespace ws {

class DisplayManager;
class PlatformDisplay;
class WindowManagerDisplayRoot;
class WindowTree;

Expand Down
2 changes: 1 addition & 1 deletion services/ui/ws/window_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/gpu_host_delegate.h"
#include "services/ui/ws/ids.h"
#include "services/ui/ws/operation.h"
Expand All @@ -33,6 +32,7 @@ namespace ui {
namespace ws {

class AccessPolicy;
class Display;
class DisplayManager;
class GpuHost;
class ServerWindow;
Expand Down

0 comments on commit dac8ee8

Please sign in to comment.