Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Unified Diff: content/renderer/mus/compositor_mus_connection.h

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/mus/compositor_mus_connection.h
diff --git a/content/renderer/mus/compositor_mus_connection.h b/content/renderer/mus/compositor_mus_connection.h
index d8a75a67df5d9fc85320c84a49dde7fc77b1d071..a49b3a7bc2fa4f34b9079ac440741b8162429e94 100644
--- a/content/renderer/mus/compositor_mus_connection.h
+++ b/content/renderer/mus/compositor_mus_connection.h
@@ -10,8 +10,8 @@
#include "base/macros.h"
#include "components/mus/public/cpp/input_event_handler.h"
#include "components/mus/public/cpp/window.h"
-#include "components/mus/public/cpp/window_tree_connection.h"
-#include "components/mus/public/cpp/window_tree_delegate.h"
+#include "components/mus/public/cpp/window_tree_client.h"
+#include "components/mus/public/cpp/window_tree_client_delegate.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
@@ -26,7 +26,7 @@ class InputHandlerManager;
// default all other methods are assumed to run on the compositor thread unless
// explicited suffixed with OnMainThread.
class CONTENT_EXPORT CompositorMusConnection
- : NON_EXPORTED_BASE(public mus::WindowTreeDelegate),
+ : NON_EXPORTED_BASE(public mus::WindowTreeClientDelegate),
NON_EXPORTED_BASE(public mus::InputEventHandler),
public base::RefCountedThreadSafe<CompositorMusConnection> {
public:
@@ -52,8 +52,8 @@ class CONTENT_EXPORT CompositorMusConnection
void AttachSurfaceOnCompositorThread(
std::unique_ptr<mus::WindowSurfaceBinding> surface_binding);
- void CreateWindowTreeConnectionOnCompositorThread(
- mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request);
+ void CreateWindowTreeClientOnCompositorThread(
+ mus::mojom::WindowTreeClientRequest request);
void OnConnectionLostOnMainThread();
@@ -65,8 +65,8 @@ class CONTENT_EXPORT CompositorMusConnection
const base::Callback<void(mus::mojom::EventResult)>& ack,
mus::mojom::EventResult result);
- // WindowTreeDelegate implementation:
- void OnConnectionLost(mus::WindowTreeConnection* connection) override;
+ // WindowTreeClientDelegate implementation:
+ void OnWindowTreeClientDestroyed(mus::WindowTreeClient* client) override;
void OnEmbed(mus::Window* root) override;
void OnEventObserved(const ui::Event& event, mus::Window* target) override;
« no previous file with comments | « content/browser/web_contents/web_contents_view_mus.cc ('k') | content/renderer/mus/compositor_mus_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698