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

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client_impl.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Id focused_window_id, 194 Id focused_window_id,
195 bool drawn) override; 195 bool drawn) override;
196 void OnEmbeddedAppDisconnected(Id window_id) override; 196 void OnEmbeddedAppDisconnected(Id window_id) override;
197 void OnUnembed(Id window_id) override; 197 void OnUnembed(Id window_id) override;
198 void OnLostCapture(Id window_id) override; 198 void OnLostCapture(Id window_id) override;
199 void OnTopLevelCreated(uint32_t change_id, 199 void OnTopLevelCreated(uint32_t change_id,
200 mojom::WindowDataPtr data, 200 mojom::WindowDataPtr data,
201 int64_t display_id, 201 int64_t display_id,
202 bool drawn) override; 202 bool drawn) override;
203 void OnWindowBoundsChanged(Id window_id, 203 void OnWindowBoundsChanged(Id window_id,
204 mojo::RectPtr old_bounds, 204 const gfx::Rect& old_bounds,
205 mojo::RectPtr new_bounds) override; 205 const gfx::Rect& new_bounds) override;
206 void OnClientAreaChanged( 206 void OnClientAreaChanged(
207 uint32_t window_id, 207 uint32_t window_id,
208 mojo::InsetsPtr new_client_area, 208 const gfx::Insets& new_client_area,
209 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; 209 mojo::Array<gfx::Rect> new_additional_client_areas) override;
210 void OnTransientWindowAdded(uint32_t window_id, 210 void OnTransientWindowAdded(uint32_t window_id,
211 uint32_t transient_window_id) override; 211 uint32_t transient_window_id) override;
212 void OnTransientWindowRemoved(uint32_t window_id, 212 void OnTransientWindowRemoved(uint32_t window_id,
213 uint32_t transient_window_id) override; 213 uint32_t transient_window_id) override;
214 void OnWindowHierarchyChanged( 214 void OnWindowHierarchyChanged(
215 Id window_id, 215 Id window_id,
216 Id old_parent_id, 216 Id old_parent_id,
217 Id new_parent_id, 217 Id new_parent_id,
218 mojo::Array<mojom::WindowDataPtr> windows) override; 218 mojo::Array<mojom::WindowDataPtr> windows) override;
219 void OnWindowReordered(Id window_id, 219 void OnWindowReordered(Id window_id,
(...skipping 18 matching lines...) Expand all
238 void OnWindowPredefinedCursorChanged(Id window_id, 238 void OnWindowPredefinedCursorChanged(Id window_id,
239 mojom::Cursor cursor) override; 239 mojom::Cursor cursor) override;
240 void OnChangeCompleted(uint32_t change_id, bool success) override; 240 void OnChangeCompleted(uint32_t change_id, bool success) override;
241 void RequestClose(uint32_t window_id) override; 241 void RequestClose(uint32_t window_id) override;
242 void GetWindowManager( 242 void GetWindowManager(
243 mojo::AssociatedInterfaceRequest<WindowManager> internal) override; 243 mojo::AssociatedInterfaceRequest<WindowManager> internal) override;
244 244
245 // Overridden from WindowManager: 245 // Overridden from WindowManager:
246 void WmSetBounds(uint32_t change_id, 246 void WmSetBounds(uint32_t change_id,
247 Id window_id, 247 Id window_id,
248 mojo::RectPtr transit_bounds) override; 248 const gfx::Rect& transit_bounds) override;
249 void WmSetProperty(uint32_t change_id, 249 void WmSetProperty(uint32_t change_id,
250 Id window_id, 250 Id window_id,
251 const mojo::String& name, 251 const mojo::String& name,
252 mojo::Array<uint8_t> transit_data) override; 252 mojo::Array<uint8_t> transit_data) override;
253 void WmCreateTopLevelWindow(uint32_t change_id, 253 void WmCreateTopLevelWindow(uint32_t change_id,
254 ClientSpecificId requesting_client_id, 254 ClientSpecificId requesting_client_id,
255 mojo::Map<mojo::String, mojo::Array<uint8_t>> 255 mojo::Map<mojo::String, mojo::Array<uint8_t>>
256 transport_properties) override; 256 transport_properties) override;
257 void WmClientJankinessChanged(ClientSpecificId client_id, 257 void WmClientJankinessChanged(ClientSpecificId client_id,
258 bool janky) override; 258 bool janky) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 uint32_t event_observer_id_ = 0u; 329 uint32_t event_observer_id_ = 0u;
330 330
331 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_; 331 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_;
332 332
333 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); 333 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl);
334 }; 334 };
335 335
336 } // namespace mus 336 } // namespace mus
337 337
338 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ 338 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698