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

Side by Side Diff: mojo/services/view_manager/window_tree_host_impl.h

Issue 354933002: Connect X11 ConfigureNotify events to Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed X11 support for --start-fullscreen, --start-maximized Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 5 #ifndef MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 6 #define MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h" 9 #include "mojo/services/public/interfaces/native_viewport/native_viewport.mojom. h"
10 #include "ui/aura/window_tree_host.h" 10 #include "ui/aura/window_tree_host.h"
11 #include "ui/events/event_source.h" 11 #include "ui/events/event_source.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 13
14 namespace ui { 14 namespace ui {
15 class ContextFactory; 15 class ContextFactory;
16 } 16 }
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace view_manager { 19 namespace view_manager {
20 namespace service { 20 namespace service {
21 21
22 class ContextFactoryImpl; 22 class ContextFactoryImpl;
23 23
24 class WindowTreeHostImpl : public aura::WindowTreeHost, 24 class WindowTreeHostImpl : public aura::WindowTreeHost,
25 public ui::EventSource, 25 public ui::EventSource,
26 public NativeViewportClient { 26 public NativeViewportClient {
27 public: 27 public:
28 WindowTreeHostImpl(NativeViewportPtr viewport, 28 WindowTreeHostImpl(NativeViewportPtr viewport,
29 const gfx::Rect& bounds, 29 const gfx::Rect& bounds,
30 RootNodeManager* root_node_manager,
30 const base::Callback<void()>& compositor_created_callback); 31 const base::Callback<void()>& compositor_created_callback);
31 virtual ~WindowTreeHostImpl(); 32 virtual ~WindowTreeHostImpl();
32 33
33 gfx::Rect bounds() const { return bounds_; } 34 gfx::Rect bounds() const { return bounds_; }
34 35
35 private: 36 private:
36 // WindowTreeHost: 37 // WindowTreeHost:
37 virtual ui::EventSource* GetEventSource() OVERRIDE; 38 virtual ui::EventSource* GetEventSource() OVERRIDE;
38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 39 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
39 virtual void Show() OVERRIDE; 40 virtual void Show() OVERRIDE;
(...skipping 18 matching lines...) Expand all
58 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE; 59 virtual void OnBoundsChanged(RectPtr bounds) OVERRIDE;
59 virtual void OnEvent(EventPtr event, 60 virtual void OnEvent(EventPtr event,
60 const mojo::Callback<void()>& callback) OVERRIDE; 61 const mojo::Callback<void()>& callback) OVERRIDE;
61 62
62 static ContextFactoryImpl* context_factory_; 63 static ContextFactoryImpl* context_factory_;
63 64
64 NativeViewportPtr native_viewport_; 65 NativeViewportPtr native_viewport_;
65 base::Callback<void()> compositor_created_callback_; 66 base::Callback<void()> compositor_created_callback_;
66 67
67 gfx::Rect bounds_; 68 gfx::Rect bounds_;
69 RootNodeManager* root_node_manager_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 71 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
70 }; 72 };
71 73
72 } // namespace service 74 } // namespace service
73 } // namespace view_manager 75 } // namespace view_manager
74 } // namespace mojo 76 } // namespace mojo
75 77
76 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_ 78 #endif // MOJO_AURA_WINDOW_TREE_HOST_MOJO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698