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

Side by Side Diff: services/ui/ws/test_utils.h

Issue 2511883006: Mojo C++ bindings: switch services/ui/public/interfaces mojom target to use STL types. (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 | « services/ui/ws/test_change_tracker.cc ('k') | services/ui/ws/test_utils.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_WS_TEST_UTILS_H_ 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_
6 #define SERVICES_UI_WS_TEST_UTILS_H_ 6 #define SERVICES_UI_WS_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // WindowManager: 308 // WindowManager:
309 void OnConnect(uint16_t client_id) override {} 309 void OnConnect(uint16_t client_id) override {}
310 void WmNewDisplayAdded(const display::Display& display, 310 void WmNewDisplayAdded(const display::Display& display,
311 ui::mojom::WindowDataPtr root, 311 ui::mojom::WindowDataPtr root,
312 bool drawn) override {} 312 bool drawn) override {}
313 void WmDisplayRemoved(int64_t display_id) override; 313 void WmDisplayRemoved(int64_t display_id) override;
314 void WmDisplayModified(const display::Display& display) override {} 314 void WmDisplayModified(const display::Display& display) override {}
315 void WmSetBounds(uint32_t change_id, 315 void WmSetBounds(uint32_t change_id,
316 uint32_t window_id, 316 uint32_t window_id,
317 const gfx::Rect& bounds) override {} 317 const gfx::Rect& bounds) override {}
318 void WmSetProperty(uint32_t change_id, 318 void WmSetProperty(
319 uint32_t window_id, 319 uint32_t change_id,
320 const mojo::String& name, 320 uint32_t window_id,
321 mojo::Array<uint8_t> value) override {} 321 const std::string& name,
322 const base::Optional<std::vector<uint8_t>>& value) override {}
322 void WmCreateTopLevelWindow( 323 void WmCreateTopLevelWindow(
323 uint32_t change_id, 324 uint32_t change_id,
324 ClientSpecificId requesting_client_id, 325 ClientSpecificId requesting_client_id,
325 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; 326 const std::unordered_map<std::string, std::vector<uint8_t>>& properties)
327 override;
326 void WmClientJankinessChanged(ClientSpecificId client_id, 328 void WmClientJankinessChanged(ClientSpecificId client_id,
327 bool janky) override; 329 bool janky) override;
328 void WmPerformMoveLoop(uint32_t change_id, 330 void WmPerformMoveLoop(uint32_t change_id,
329 uint32_t window_id, 331 uint32_t window_id,
330 mojom::MoveLoopSource source, 332 mojom::MoveLoopSource source,
331 const gfx::Point& cursor_location) override; 333 const gfx::Point& cursor_location) override;
332 void WmCancelMoveLoop(uint32_t window_id) override; 334 void WmCancelMoveLoop(uint32_t window_id) override;
333 void OnAccelerator(uint32_t ack_id, 335 void OnAccelerator(uint32_t ack_id,
334 uint32_t accelerator_id, 336 uint32_t accelerator_id,
335 std::unique_ptr<ui::Event> event) override; 337 std::unique_ptr<ui::Event> event) override;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 void OnTopLevelCreated(uint32_t change_id, 381 void OnTopLevelCreated(uint32_t change_id,
380 mojom::WindowDataPtr data, 382 mojom::WindowDataPtr data,
381 int64_t display_id, 383 int64_t display_id,
382 bool drawn) override; 384 bool drawn) override;
383 void OnWindowBoundsChanged(uint32_t window, 385 void OnWindowBoundsChanged(uint32_t window,
384 const gfx::Rect& old_bounds, 386 const gfx::Rect& old_bounds,
385 const gfx::Rect& new_bounds) override; 387 const gfx::Rect& new_bounds) override;
386 void OnClientAreaChanged( 388 void OnClientAreaChanged(
387 uint32_t window_id, 389 uint32_t window_id,
388 const gfx::Insets& new_client_area, 390 const gfx::Insets& new_client_area,
389 mojo::Array<gfx::Rect> new_additional_client_areas) override; 391 const std::vector<gfx::Rect>& new_additional_client_areas) override;
390 void OnTransientWindowAdded(uint32_t window_id, 392 void OnTransientWindowAdded(uint32_t window_id,
391 uint32_t transient_window_id) override; 393 uint32_t transient_window_id) override;
392 void OnTransientWindowRemoved(uint32_t window_id, 394 void OnTransientWindowRemoved(uint32_t window_id,
393 uint32_t transient_window_id) override; 395 uint32_t transient_window_id) override;
394 void OnWindowHierarchyChanged( 396 void OnWindowHierarchyChanged(
395 uint32_t window, 397 uint32_t window,
396 uint32_t old_parent, 398 uint32_t old_parent,
397 uint32_t new_parent, 399 uint32_t new_parent,
398 mojo::Array<mojom::WindowDataPtr> windows) override; 400 std::vector<mojom::WindowDataPtr> windows) override;
399 void OnWindowReordered(uint32_t window_id, 401 void OnWindowReordered(uint32_t window_id,
400 uint32_t relative_window_id, 402 uint32_t relative_window_id,
401 mojom::OrderDirection direction) override; 403 mojom::OrderDirection direction) override;
402 void OnWindowDeleted(uint32_t window) override; 404 void OnWindowDeleted(uint32_t window) override;
403 void OnWindowVisibilityChanged(uint32_t window, bool visible) override; 405 void OnWindowVisibilityChanged(uint32_t window, bool visible) override;
404 void OnWindowOpacityChanged(uint32_t window, 406 void OnWindowOpacityChanged(uint32_t window,
405 float old_opacity, 407 float old_opacity,
406 float new_opacity) override; 408 float new_opacity) override;
407 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override; 409 void OnWindowParentDrawnStateChanged(uint32_t window, bool drawn) override;
408 void OnWindowSharedPropertyChanged(uint32_t window, 410 void OnWindowSharedPropertyChanged(
409 const mojo::String& name, 411 uint32_t window,
410 mojo::Array<uint8_t> new_data) override; 412 const std::string& name,
413 const base::Optional<std::vector<uint8_t>>& new_data) override;
411 void OnWindowInputEvent(uint32_t event_id, 414 void OnWindowInputEvent(uint32_t event_id,
412 uint32_t window, 415 uint32_t window,
413 std::unique_ptr<ui::Event> event, 416 std::unique_ptr<ui::Event> event,
414 bool matches_pointer_watcher) override; 417 bool matches_pointer_watcher) override;
415 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, 418 void OnPointerEventObserved(std::unique_ptr<ui::Event> event,
416 uint32_t window_id) override; 419 uint32_t window_id) override;
417 void OnWindowFocused(uint32_t focused_window_id) override; 420 void OnWindowFocused(uint32_t focused_window_id) override;
418 void OnWindowPredefinedCursorChanged(uint32_t window_id, 421 void OnWindowPredefinedCursorChanged(uint32_t window_id,
419 mojom::Cursor cursor_id) override; 422 mojom::Cursor cursor_id) override;
420 void OnWindowSurfaceChanged(Id window_id, 423 void OnWindowSurfaceChanged(Id window_id,
421 const cc::SurfaceId& surface_id, 424 const cc::SurfaceId& surface_id,
422 const gfx::Size& frame_size, 425 const gfx::Size& frame_size,
423 float device_scale_factor) override; 426 float device_scale_factor) override;
424 void OnDragDropStart( 427 void OnDragDropStart(
425 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data) override; 428 const std::unordered_map<std::string, std::vector<uint8_t>>& mime_data)
429 override;
426 void OnDragEnter(uint32_t window, 430 void OnDragEnter(uint32_t window,
427 uint32_t key_state, 431 uint32_t key_state,
428 const gfx::Point& position, 432 const gfx::Point& position,
429 uint32_t effect_bitmask, 433 uint32_t effect_bitmask,
430 const OnDragEnterCallback& callback) override; 434 const OnDragEnterCallback& callback) override;
431 void OnDragOver(uint32_t window, 435 void OnDragOver(uint32_t window,
432 uint32_t key_state, 436 uint32_t key_state,
433 const gfx::Point& position, 437 const gfx::Point& position,
434 uint32_t effect_bitmask, 438 uint32_t effect_bitmask,
435 const OnDragOverCallback& callback) override; 439 const OnDragOverCallback& callback) override;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 648 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
645 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 649 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
646 ServerWindow* parent, 650 ServerWindow* parent,
647 ClientWindowId* client_id); 651 ClientWindowId* client_id);
648 652
649 } // namespace test 653 } // namespace test
650 } // namespace ws 654 } // namespace ws
651 } // namespace ui 655 } // namespace ui
652 656
653 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 657 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_change_tracker.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698