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

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

Issue 2795883002: Eliminate OnConnect usage (Closed)
Patch Set: . Created 3 years, 8 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/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_service_test_base.h » ('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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // and returns it. Calls OnDisplayAdded() on delegate. 58 // and returns it. Calls OnDisplayAdded() on delegate.
59 int64_t AddDisplay(const display::Display& display); 59 int64_t AddDisplay(const display::Display& display);
60 60
61 // Calls OnDisplayModified() on delegate. 61 // Calls OnDisplayModified() on delegate.
62 void ModifyDisplay(const display::Display& display); 62 void ModifyDisplay(const display::Display& display);
63 63
64 // Calls OnDisplayRemoved() on delegate. 64 // Calls OnDisplayRemoved() on delegate.
65 void RemoveDisplay(int64_t id); 65 void RemoveDisplay(int64_t id);
66 66
67 // display::ScreenManager: 67 // display::ScreenManager:
68 void AddInterfaces(service_manager::InterfaceRegistry* registry) override {} 68 void AddInterfaces(service_manager::BinderRegistry* registry) override {}
69 void Init(display::ScreenManagerDelegate* delegate) override; 69 void Init(display::ScreenManagerDelegate* delegate) override;
70 void RequestCloseDisplay(int64_t display_id) override {} 70 void RequestCloseDisplay(int64_t display_id) override {}
71 71
72 private: 72 private:
73 display::ScreenManagerDelegate* delegate_ = nullptr; 73 display::ScreenManagerDelegate* delegate_ = nullptr;
74 std::unique_ptr<display::ScreenBase> screen_; 74 std::unique_ptr<display::ScreenBase> screen_;
75 std::set<int64_t> display_ids_; 75 std::set<int64_t> display_ids_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(TestScreenManager); 77 DISALLOW_COPY_AND_ASSIGN(TestScreenManager);
78 }; 78 };
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 695 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
696 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 696 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
697 ServerWindow* parent, 697 ServerWindow* parent,
698 ClientWindowId* client_id = nullptr); 698 ClientWindowId* client_id = nullptr);
699 699
700 } // namespace test 700 } // namespace test
701 } // namespace ws 701 } // namespace ws
702 } // namespace ui 702 } // namespace ui
703 703
704 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 704 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_service_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698