Chromium Code Reviews| Index: content/renderer/render_widget_mus_connection.h |
| diff --git a/content/renderer/render_widget_mus_connection.h b/content/renderer/render_widget_mus_connection.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5ec9047d93a3be2c6c673b7fcd5aeff5a00696ac |
| --- /dev/null |
| +++ b/content/renderer/render_widget_mus_connection.h |
| @@ -0,0 +1,47 @@ |
| +// Copyright 2015 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. |
| + |
| +#ifndef CONTENT_RENDERER_RENDER_WIDGET_MUS_CONNECTION_H_ |
| +#define CONTENT_RENDERER_RENDER_WIDGET_MUS_CONNECTION_H_ |
| + |
| +#include "base/macros.h" |
| +#include "components/mus/public/cpp/window.h" |
| +#include "components/mus/public/cpp/window_observer.h" |
| +#include "components/mus/public/cpp/window_surface.h" |
| +#include "components/mus/public/cpp/window_tree_connection.h" |
| +#include "components/mus/public/cpp/window_tree_delegate.h" |
| +#include "mojo/public/cpp/bindings/binding.h" |
| + |
| +namespace content { |
| + |
| +class RenderWidgetMusConnection : public mus::WindowTreeDelegate, |
| + public mus::WindowObserver { |
| + public: |
| + RenderWidgetMusConnection( |
| + int routing_id, |
| + mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request); |
| + ~RenderWidgetMusConnection() override; |
| + |
| + private: |
| + void SubmitCompositorFrame(); |
| + |
| + // WindowTreeDelegate implementation: |
| + void OnConnectionLost(mus::WindowTreeConnection* connection) override; |
| + void OnEmbed(mus::Window* root) override; |
| + void OnUnembed() override; |
| + void OnWindowBoundsChanged(mus::Window* window, |
| + const gfx::Rect& old_bounds, |
| + const gfx::Rect& new_bounds) override; |
| + |
| + const int routing_id_; |
| + mus::Window* root_; |
| + scoped_ptr<mus::WindowSurface> surface_; |
| + scoped_ptr<mojo::Binding<mus::mojom::WindowTreeClient>> binding_; |
|
Ben Goodger (Google)
2015/11/25 04:07:28
what is this used for?
Fady Samuel
2015/11/25 17:45:53
Removed.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_RENDER_WIDGET_MUS_CONNECTION_H_ |