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

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

Issue 2230963003: Fix window/display bounds with multiple windows in mus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 4 years, 4 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/platform_display_init_params.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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 WindowServer* window_server_; 230 WindowServer* window_server_;
231 231
232 DISALLOW_COPY_AND_ASSIGN(TestDisplayBinding); 232 DISALLOW_COPY_AND_ASSIGN(TestDisplayBinding);
233 }; 233 };
234 234
235 // ----------------------------------------------------------------------------- 235 // -----------------------------------------------------------------------------
236 236
237 // Factory that dispenses TestPlatformDisplays. 237 // Factory that dispenses TestPlatformDisplays.
238 class TestPlatformDisplayFactory : public PlatformDisplayFactory { 238 class TestPlatformDisplayFactory : public PlatformDisplayFactory {
239 public: 239 public:
240 static const int64_t kFirstDisplayId;
241
240 explicit TestPlatformDisplayFactory(int32_t* cursor_id_storage); 242 explicit TestPlatformDisplayFactory(int32_t* cursor_id_storage);
241 ~TestPlatformDisplayFactory(); 243 ~TestPlatformDisplayFactory();
242 244
243 // PlatformDisplayFactory: 245 // PlatformDisplayFactory:
244 PlatformDisplay* CreatePlatformDisplay() override; 246 PlatformDisplay* CreatePlatformDisplay() override;
245 247
246 private: 248 private:
247 int32_t* cursor_id_storage_; 249 int32_t* cursor_id_storage_;
248 int64_t next_display_id_ = 1; 250 int64_t next_display_id_;
249 251
250 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); 252 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory);
251 }; 253 };
252 254
253 // ----------------------------------------------------------------------------- 255 // -----------------------------------------------------------------------------
254 256
255 // A stub implementation of FrameGeneratorDelegate. 257 // A stub implementation of FrameGeneratorDelegate.
256 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { 258 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
257 public: 259 public:
258 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); 260 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root);
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 574 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
573 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 575 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
574 ServerWindow* parent, 576 ServerWindow* parent,
575 ClientWindowId* client_id); 577 ClientWindowId* client_id);
576 578
577 } // namespace test 579 } // namespace test
578 } // namespace ws 580 } // namespace ws
579 } // namespace ui 581 } // namespace ui
580 582
581 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 583 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_init_params.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698