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

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

Issue 2274353003: Add PlatformScreenDelegate and start implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes for comments. Created 4 years, 3 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
« no previous file with comments | « services/ui/ws/display_unittest.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 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 // WindowServerDelegate: 480 // WindowServerDelegate:
481 void OnNoMoreDisplays() override; 481 void OnNoMoreDisplays() override;
482 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( 482 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding(
483 BindingType type, 483 BindingType type,
484 ws::WindowServer* window_server, 484 ws::WindowServer* window_server,
485 ws::WindowTree* tree, 485 ws::WindowTree* tree,
486 mojom::WindowTreeRequest* tree_request, 486 mojom::WindowTreeRequest* tree_request,
487 mojom::WindowTreeClientPtr* client) override; 487 mojom::WindowTreeClientPtr* client) override;
488 void CreateDefaultDisplays() override; 488 void CreateDefaultDisplays() override;
489 bool IsTestConfig() const override; 489 bool IsTestConfig() const override;
490 void UpdateTouchTransforms() override {}
490 491
491 private: 492 private:
492 // If CreateDefaultDisplays() this is the number of Displays that are 493 // If CreateDefaultDisplays() this is the number of Displays that are
493 // created. The default is 0, which results in a DCHECK. 494 // created. The default is 0, which results in a DCHECK.
494 int num_displays_to_create_ = 0; 495 int num_displays_to_create_ = 0;
495 WindowServer* window_server_ = nullptr; 496 WindowServer* window_server_ = nullptr;
496 bool got_on_no_more_displays_ = false; 497 bool got_on_no_more_displays_ = false;
497 // All TestWindowTreeBinding objects created via CreateWindowTreeBinding. 498 // All TestWindowTreeBinding objects created via CreateWindowTreeBinding.
498 // These are owned by the corresponding WindowTree. 499 // These are owned by the corresponding WindowTree.
499 std::vector<TestWindowTreeBinding*> bindings_; 500 std::vector<TestWindowTreeBinding*> bindings_;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 576 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
576 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 577 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
577 ServerWindow* parent, 578 ServerWindow* parent,
578 ClientWindowId* client_id); 579 ClientWindowId* client_id);
579 580
580 } // namespace test 581 } // namespace test
581 } // namespace ws 582 } // namespace ws
582 } // namespace ui 583 } // namespace ui
583 584
584 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 585 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display_unittest.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698