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

Side by Side Diff: ui/views/mus/window_manager_connection.h

Issue 2301353003: Changes ownership of WindowTreeClient (Closed)
Patch Set: fix navigation Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 5 #ifndef UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 6 #define UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const std::set<ui::Window*>& GetRoots() const; 82 const std::set<ui::Window*>& GetRoots() const;
83 83
84 private: 84 private:
85 WindowManagerConnection( 85 WindowManagerConnection(
86 shell::Connector* connector, 86 shell::Connector* connector,
87 const shell::Identity& identity, 87 const shell::Identity& identity,
88 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 88 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
89 89
90 // ui::WindowTreeClientDelegate: 90 // ui::WindowTreeClientDelegate:
91 void OnEmbed(ui::Window* root) override; 91 void OnEmbed(ui::Window* root) override;
92 void OnDidDestroyClient(ui::WindowTreeClient* client) override; 92 void OnLostConnection(ui::WindowTreeClient* client) override;
93 void OnEmbedRootDestroyed(ui::Window* root) override;
93 void OnPointerEventObserved(const ui::PointerEvent& event, 94 void OnPointerEventObserved(const ui::PointerEvent& event,
94 ui::Window* target) override; 95 ui::Window* target) override;
95 96
96 // ScreenMusDelegate: 97 // ScreenMusDelegate:
97 void OnWindowManagerFrameValuesChanged() override; 98 void OnWindowManagerFrameValuesChanged() override;
98 gfx::Point GetCursorScreenPoint() override; 99 gfx::Point GetCursorScreenPoint() override;
99 100
100 // ui:OSExchangeDataProviderFactory::Factory: 101 // ui:OSExchangeDataProviderFactory::Factory:
101 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; 102 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override;
102 103
103 shell::Connector* connector_; 104 shell::Connector* connector_;
104 shell::Identity identity_; 105 shell::Identity identity_;
105 std::unique_ptr<ScreenMus> screen_; 106 std::unique_ptr<ScreenMus> screen_;
106 std::unique_ptr<ui::WindowTreeClient> client_; 107 std::unique_ptr<ui::WindowTreeClient> client_;
107 std::unique_ptr<ui::GpuService> gpu_service_; 108 std::unique_ptr<ui::GpuService> gpu_service_;
108 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; 109 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_;
109 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; 110 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); 112 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection);
112 }; 113 };
113 114
114 } // namespace views 115 } // namespace views
115 116
116 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ 117 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_manager_client_unittest.cc ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698