OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_MUS_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_MUS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "components/mus/public/cpp/window.h" |
| 10 #include "components/mus/public/cpp/window_observer.h" |
| 11 #include "components/mus/public/cpp/window_surface.h" |
| 12 #include "components/mus/public/cpp/window_tree_connection.h" |
| 13 #include "components/mus/public/cpp/window_tree_delegate.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" |
| 15 |
| 16 namespace content { |
| 17 |
| 18 class RenderWidgetMus : public mus::WindowTreeDelegate, |
| 19 public mus::WindowObserver { |
| 20 public: |
| 21 explicit RenderWidgetMus(int routing_id); |
| 22 ~RenderWidgetMus() override; |
| 23 |
| 24 private: |
| 25 // WindowTreeDelegate implementation: |
| 26 void OnConnectionLost(mus::WindowTreeConnection* connection) override; |
| 27 void OnEmbed(mus::Window* root) override; |
| 28 void OnUnembed() override; |
| 29 void OnWindowBoundsChanged(mus::Window* window, |
| 30 const gfx::Rect& old_bounds, |
| 31 const gfx::Rect& new_bounds) override; |
| 32 |
| 33 scoped_ptr<mojo::Binding<mus::mojom::WindowTreeClient>> binding_; |
| 34 scoped_ptr<mus::WindowSurface> surface_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMus); |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_RENDERER_RENDER_WIDGET_MUS_H_ |
OLD | NEW |