Commit dccc4a73 authored by rjkroege's avatar rjkroege Committed by Commit bot

Relocate display_snapshot_mojo

Keeping DisplaySnapshotMojo in display/types enables tighter use of
DEPS in ozone/platform/drm so relocate it appropriately.

BUG=620927

Review-Url: https://codereview.chromium.org/2738043004
Cr-Commit-Position: refs/heads/master@{#456235}
parent e4a5c1d8
...@@ -22,8 +22,6 @@ component("display") { ...@@ -22,8 +22,6 @@ component("display") {
"display_list.h", "display_list.h",
"display_observer.cc", "display_observer.cc",
"display_observer.h", "display_observer.h",
"display_snapshot_mojo.cc",
"display_snapshot_mojo.h",
"display_switches.cc", "display_switches.cc",
"display_switches.h", "display_switches.h",
"fake_display_delegate.cc", "fake_display_delegate.cc",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# found in the LICENSE file. # found in the LICENSE file.
mojom = "//ui/display/mojo/display_snapshot_mojo.mojom" mojom = "//ui/display/mojo/display_snapshot_mojo.mojom"
public_headers = [ "//ui/display/display_snapshot_mojo.h" ] public_headers = [ "//ui/display/types/display_snapshot_mojo.h" ]
traits_headers = [ "//ui/display/mojo/display_snapshot_mojo_struct_traits.h" ] traits_headers = [ "//ui/display/mojo/display_snapshot_mojo_struct_traits.h" ]
sources = [ sources = [
"//ui/display/mojo/display_snapshot_mojo_struct_traits.cc", "//ui/display/mojo/display_snapshot_mojo_struct_traits.cc",
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#ifndef UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_STRUCT_TRAITS_H_ #ifndef UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_STRUCT_TRAITS_H_
#define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_STRUCT_TRAITS_H_ #define UI_DISPLAY_MOJO_DISPLAY_SNAPSHOT_MOJO_STRUCT_TRAITS_H_
#include "ui/display/display_snapshot_mojo.h"
#include "ui/display/mojo/display_snapshot_mojo.mojom.h" #include "ui/display/mojo/display_snapshot_mojo.mojom.h"
#include "ui/display/types/display_mode.h" #include "ui/display/types/display_mode.h"
#include "ui/display/types/display_snapshot_mojo.h"
namespace mojo { namespace mojo {
......
...@@ -10,10 +10,10 @@ ...@@ -10,10 +10,10 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "ui/display/display.h" #include "ui/display/display.h"
#include "ui/display/display_layout.h" #include "ui/display/display_layout.h"
#include "ui/display/display_snapshot_mojo.h"
#include "ui/display/mojo/display_struct_traits_test.mojom.h" #include "ui/display/mojo/display_struct_traits_test.mojom.h"
#include "ui/display/types/display_constants.h" #include "ui/display/types/display_constants.h"
#include "ui/display/types/display_mode.h" #include "ui/display/types/display_mode.h"
#include "ui/display/types/display_snapshot_mojo.h"
#include "ui/display/types/gamma_ramp_rgb_entry.h" #include "ui/display/types/gamma_ramp_rgb_entry.h"
#include "ui/gfx/geometry/rect.h" #include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h" #include "ui/gfx/geometry/size.h"
......
...@@ -10,6 +10,8 @@ component("types") { ...@@ -10,6 +10,8 @@ component("types") {
"display_mode.h", "display_mode.h",
"display_snapshot.cc", "display_snapshot.cc",
"display_snapshot.h", "display_snapshot.h",
"display_snapshot_mojo.cc",
"display_snapshot_mojo.h",
"display_types_export.h", "display_types_export.h",
"fake_display_controller.h", "fake_display_controller.h",
"gamma_ramp_rgb_entry.h", "gamma_ramp_rgb_entry.h",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#include "ui/display/display_snapshot_mojo.h" #include "ui/display/types/display_snapshot_mojo.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "ui/display/types/display_constants.h" #include "ui/display/types/display_constants.h"
......
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
#include <memory> #include <memory>
#include "base/macros.h" #include "base/macros.h"
#include "ui/display/display_export.h"
#include "ui/display/types/display_snapshot.h" #include "ui/display/types/display_snapshot.h"
#include "ui/display/types/display_types_export.h"
namespace display { namespace display {
// DisplaySnapshot implementation that can be used with Mojo IPC. // DisplaySnapshot implementation that can be used with Mojo IPC.
class DISPLAY_EXPORT DisplaySnapshotMojo : public DisplaySnapshot { class DISPLAY_TYPES_EXPORT DisplaySnapshotMojo : public DisplaySnapshot {
public: public:
DisplaySnapshotMojo(int64_t display_id, DisplaySnapshotMojo(int64_t display_id,
const gfx::Point& origin, const gfx::Point& origin,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment