| OLD | NEW |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 const std::set<ui::Window*>& GetRoots() const; | 87 const std::set<ui::Window*>& GetRoots() const; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 friend class test::WindowManagerConnectionTestApi; | 90 friend class test::WindowManagerConnectionTestApi; |
| 91 | 91 |
| 92 WindowManagerConnection( | 92 WindowManagerConnection( |
| 93 service_manager::Connector* connector, | 93 service_manager::Connector* connector, |
| 94 const service_manager::Identity& identity, | 94 const service_manager::Identity& identity, |
| 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner); | 95 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
| 96 | 96 |
| 97 // Exposed for tests. |
| 98 ui::Window* GetUiWindowAtScreenPoint(const gfx::Point& point); |
| 99 |
| 97 // ui::WindowTreeClientDelegate: | 100 // ui::WindowTreeClientDelegate: |
| 98 void OnEmbed(ui::Window* root) override; | 101 void OnEmbed(ui::Window* root) override; |
| 99 void OnLostConnection(ui::WindowTreeClient* client) override; | 102 void OnLostConnection(ui::WindowTreeClient* client) override; |
| 100 void OnEmbedRootDestroyed(ui::Window* root) override; | 103 void OnEmbedRootDestroyed(ui::Window* root) override; |
| 101 void OnPointerEventObserved(const ui::PointerEvent& event, | 104 void OnPointerEventObserved(const ui::PointerEvent& event, |
| 102 ui::Window* target) override; | 105 ui::Window* target) override; |
| 103 | 106 |
| 104 // ScreenMusDelegate: | 107 // ScreenMusDelegate: |
| 105 void OnWindowManagerFrameValuesChanged() override; | 108 void OnWindowManagerFrameValuesChanged() override; |
| 106 gfx::Point GetCursorScreenPoint() override; | 109 gfx::Point GetCursorScreenPoint() override; |
| 107 ui::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; | 110 aura::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 108 | 111 |
| 109 // ui:OSExchangeDataProviderFactory::Factory: | 112 // ui:OSExchangeDataProviderFactory::Factory: |
| 110 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; | 113 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; |
| 111 | 114 |
| 112 service_manager::Connector* connector_; | 115 service_manager::Connector* connector_; |
| 113 service_manager::Identity identity_; | 116 service_manager::Identity identity_; |
| 114 std::unique_ptr<ScreenMus> screen_; | 117 std::unique_ptr<ScreenMus> screen_; |
| 115 std::unique_ptr<ui::WindowTreeClient> client_; | 118 std::unique_ptr<ui::WindowTreeClient> client_; |
| 116 std::unique_ptr<ui::GpuService> gpu_service_; | 119 std::unique_ptr<ui::GpuService> gpu_service_; |
| 117 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; | 120 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; |
| 118 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; | 121 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; |
| 119 | 122 |
| 120 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); | 123 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace views | 126 } // namespace views |
| 124 | 127 |
| 125 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ | 128 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ |
| OLD | NEW |