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

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

Issue 2463753003: Changes ScreenMusDelegate::GetWindowAtScreenPoint to return aura::Window (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « ui/views/mus/test_utils.h ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/views/mus/test_utils.h ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698