Chromium Code Reviews| Index: content/renderer/render_widget_view_mus.h |
| diff --git a/content/renderer/render_widget_view_mus.h b/content/renderer/render_widget_view_mus.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a487ebc0f9188171678847a9d15d1d4445fe352a |
| --- /dev/null |
| +++ b/content/renderer/render_widget_view_mus.h |
| @@ -0,0 +1,41 @@ |
| +// 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_VIEW_MUS_H_ |
| +#define CONTENT_RENDERER_RENDER_WIDGET_VIEW_MUS_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 RenderWidgetViewMus : public mus::WindowTreeDelegate, |
|
Ben Goodger (Google)
2015/11/24 15:30:05
OK at this point maybe just call this RenderWidget
Fady Samuel
2015/11/24 17:06:36
Done.
|
| + public mus::WindowObserver { |
| + public: |
| + explicit RenderWidgetViewMus(int routing_id); |
| + ~RenderWidgetViewMus() override; |
| + |
| + private: |
| + // 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; |
| + |
| + scoped_ptr<mojo::Binding<mus::mojom::WindowTreeClient>> binding_; |
| + scoped_ptr<mus::WindowSurface> surface_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(RenderWidgetViewMus); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_RENDER_WIDGET_VIEW_MUS_H_ |