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

Side by Side Diff: content/renderer/render_widget_view_mus.h

Issue 1461243002: [OLD ATTEMPT, DO NOT REVIEW] mustash: Enable connections to mus from the Chrome renderer Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Ben's comments Created 5 years 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 unified diff | Download patch
OLDNEW
(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_VIEW_MUS_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_VIEW_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 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.
19 public mus::WindowObserver {
20 public:
21 explicit RenderWidgetViewMus(int routing_id);
22 ~RenderWidgetViewMus() 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(RenderWidgetViewMus);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_RENDERER_RENDER_WIDGET_VIEW_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698