| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <set> |
| 12 #include <string> | 13 #include <string> |
| 13 #include <vector> | 14 #include <vector> |
| 14 | 15 |
| 15 #include "base/macros.h" | 16 #include "base/macros.h" |
| 16 #include "services/shell/public/cpp/identity.h" | 17 #include "services/shell/public/cpp/identity.h" |
| 17 #include "services/ui/public/cpp/window_tree_client_delegate.h" | 18 #include "services/ui/public/cpp/window_tree_client_delegate.h" |
| 18 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" | 19 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" |
| 19 #include "ui/views/mus/mus_export.h" | 20 #include "ui/views/mus/mus_export.h" |
| 20 #include "ui/views/mus/screen_mus_delegate.h" | 21 #include "ui/views/mus/screen_mus_delegate.h" |
| 21 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // ui::WindowTreeClientDelegate: | 91 // ui::WindowTreeClientDelegate: |
| 91 void OnEmbed(ui::Window* root) override; | 92 void OnEmbed(ui::Window* root) override; |
| 92 void OnLostConnection(ui::WindowTreeClient* client) override; | 93 void OnLostConnection(ui::WindowTreeClient* client) override; |
| 93 void OnEmbedRootDestroyed(ui::Window* root) override; | 94 void OnEmbedRootDestroyed(ui::Window* root) override; |
| 94 void OnPointerEventObserved(const ui::PointerEvent& event, | 95 void OnPointerEventObserved(const ui::PointerEvent& event, |
| 95 ui::Window* target) override; | 96 ui::Window* target) override; |
| 96 | 97 |
| 97 // ScreenMusDelegate: | 98 // ScreenMusDelegate: |
| 98 void OnWindowManagerFrameValuesChanged() override; | 99 void OnWindowManagerFrameValuesChanged() override; |
| 99 gfx::Point GetCursorScreenPoint() override; | 100 gfx::Point GetCursorScreenPoint() override; |
| 101 ui::Window* GetWindowAtScreenPoint(const gfx::Point& point) override; |
| 100 | 102 |
| 101 // ui:OSExchangeDataProviderFactory::Factory: | 103 // ui:OSExchangeDataProviderFactory::Factory: |
| 102 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; | 104 std::unique_ptr<OSExchangeData::Provider> BuildProvider() override; |
| 103 | 105 |
| 104 shell::Connector* connector_; | 106 shell::Connector* connector_; |
| 105 shell::Identity identity_; | 107 shell::Identity identity_; |
| 106 std::unique_ptr<ScreenMus> screen_; | 108 std::unique_ptr<ScreenMus> screen_; |
| 107 std::unique_ptr<ui::WindowTreeClient> client_; | 109 std::unique_ptr<ui::WindowTreeClient> client_; |
| 108 std::unique_ptr<ui::GpuService> gpu_service_; | 110 std::unique_ptr<ui::GpuService> gpu_service_; |
| 109 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; | 111 std::unique_ptr<PointerWatcherEventRouter> pointer_watcher_event_router_; |
| 110 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; | 112 std::unique_ptr<SurfaceContextFactory> compositor_context_factory_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); | 114 DISALLOW_COPY_AND_ASSIGN(WindowManagerConnection); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace views | 117 } // namespace views |
| 116 | 118 |
| 117 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ | 119 #endif // UI_VIEWS_MUS_WINDOW_MANAGER_CONNECTION_H_ |
| OLD | NEW |