Chromium Code Reviews| 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_CONNECTION_H_ | |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_MUS_CONNECTION_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 RenderWidgetMusConnection : public mus::WindowTreeDelegate, | |
| 19 public mus::WindowObserver { | |
| 20 public: | |
| 21 RenderWidgetMusConnection( | |
| 22 int routing_id, | |
| 23 mojo::InterfaceRequest<mus::mojom::WindowTreeClient> request); | |
| 24 ~RenderWidgetMusConnection() override; | |
| 25 | |
| 26 private: | |
| 27 void SubmitCompositorFrame(); | |
| 28 | |
| 29 // WindowTreeDelegate implementation: | |
| 30 void OnConnectionLost(mus::WindowTreeConnection* connection) override; | |
| 31 void OnEmbed(mus::Window* root) override; | |
| 32 void OnUnembed() override; | |
| 33 void OnWindowBoundsChanged(mus::Window* window, | |
| 34 const gfx::Rect& old_bounds, | |
| 35 const gfx::Rect& new_bounds) override; | |
| 36 | |
| 37 const int routing_id_; | |
| 38 mus::Window* root_; | |
| 39 scoped_ptr<mus::WindowSurface> surface_; | |
| 40 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.
| |
| 41 | |
| 42 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMusConnection); | |
| 43 }; | |
| 44 | |
| 45 } // namespace content | |
| 46 | |
| 47 #endif // CONTENT_RENDERER_RENDER_WIDGET_MUS_CONNECTION_H_ | |
| OLD | NEW |