Commit 587d6298 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Split window_tree_host.mojom into smaller interfaces

This CL splits window_tree_host.mojom, separating WindowTreeHostFactory
interface declaration into its own mojom file.

In practice, there is no behavior change at all, but the separation makes
it easier for downstreamers to having a Mojo interface sibling of
WindowTreeHostFactory (for instance, in case of external window mode,
there is a ExternalWindowTreeHostFactory, which has a different API).

BUG=666958

Change-Id: I664f9ac3895612b53c6a4b1cfc85785554fe9bab
Reviewed-on: https://chromium-review.googlesource.com/767527Reviewed-by: default avatarTom Sepez <tsepez@chromium.org>
Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarMaksim Sisov <msisov@igalia.com>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#517070}
parent 569f942d
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <vector> #include <vector>
#include "services/ui/demo/mus_demo.h" #include "services/ui/demo/mus_demo.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host_factory.mojom.h"
namespace ui { namespace ui {
namespace demo { namespace demo {
......
...@@ -24,6 +24,7 @@ mojom("interfaces") { ...@@ -24,6 +24,7 @@ mojom("interfaces") {
"window_tree.mojom", "window_tree.mojom",
"window_tree_constants.mojom", "window_tree_constants.mojom",
"window_tree_host.mojom", "window_tree_host.mojom",
"window_tree_host_factory.mojom",
] ]
import_dirs = [ import_dirs = [
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
module ui.mojom; module ui.mojom;
import "services/ui/public/interfaces/window_tree.mojom";
import "ui/gfx/geometry/mojo/geometry.mojom"; import "ui/gfx/geometry/mojo/geometry.mojom";
// WindowTreeHost encapsulates a unique underlying platform window, with a tree // WindowTreeHost encapsulates a unique underlying platform window, with a tree
...@@ -16,10 +15,3 @@ interface WindowTreeHost { ...@@ -16,10 +15,3 @@ interface WindowTreeHost {
// Sets a title string to be displayed on the platform window. // Sets a title string to be displayed on the platform window.
SetTitle(string title); SetTitle(string title);
}; };
interface WindowTreeHostFactory {
// Creates a new WindowTreeHost. |tree_client| is queried for the
// WindowManager.
CreateWindowTreeHost(WindowTreeHost& window_tree_host,
WindowTreeClient tree_client);
};
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module ui.mojom;
import "services/ui/public/interfaces/window_tree.mojom";
import "services/ui/public/interfaces/window_tree_host.mojom";
interface WindowTreeHostFactory {
// Creates a new WindowTreeHost. |tree_client| is queried for the
// WindowManager.
CreateWindowTreeHost(WindowTreeHost& window_tree_host,
WindowTreeClient tree_client);
};
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h" #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h"
#include "services/ui/public/interfaces/window_server_test.mojom.h" #include "services/ui/public/interfaces/window_server_test.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h" #include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host_factory.mojom.h"
#include "services/ui/ws/user_id.h" #include "services/ui/ws/user_id.h"
#include "services/ui/ws/window_server_delegate.h" #include "services/ui/ws/window_server_delegate.h"
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "base/macros.h" #include "base/macros.h"
#include "mojo/public/cpp/bindings/binding.h" #include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host.mojom.h"
#include "services/ui/ws/user_id.h" #include "services/ui/ws/user_id.h"
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include "services/service_manager/public/cpp/service_test.h" #include "services/service_manager/public/cpp/service_test.h"
#include "services/ui/public/interfaces/constants.mojom.h" #include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/window_tree.mojom.h" #include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host_factory.mojom.h"
#include "services/ui/ws/ids.h" #include "services/ui/ws/ids.h"
#include "services/ui/ws/test_change_tracker.h" #include "services/ui/ws/test_change_tracker.h"
#include "services/ui/ws/window_server_service_test_base.h" #include "services/ui/ws/window_server_service_test_base.h"
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <stdint.h> #include <stdint.h>
#include "mojo/public/cpp/bindings/binding_set.h" #include "mojo/public/cpp/bindings/binding_set.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host_factory.mojom.h"
#include "services/ui/ws/user_id.h" #include "services/ui/ws/user_id.h"
namespace ui { namespace ui {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "services/ui/public/interfaces/constants.mojom.h" #include "services/ui/public/interfaces/constants.mojom.h"
#include "services/ui/public/interfaces/window_manager.mojom.h" #include "services/ui/public/interfaces/window_manager.mojom.h"
#include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h" #include "services/ui/public/interfaces/window_manager_window_tree_factory.mojom.h"
#include "services/ui/public/interfaces/window_tree_host.mojom.h" #include "services/ui/public/interfaces/window_tree_host_factory.mojom.h"
#include "ui/aura/client/aura_constants.h" #include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/drag_drop_client.h" #include "ui/aura/client/drag_drop_client.h"
#include "ui/aura/client/transient_window_client.h" #include "ui/aura/client/transient_window_client.h"
......
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