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

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

Issue 2613903003: Reland of "Mustash: Ensure surfaces submitted to Mus by WM and embedders contain Surfaces with embe… (Closed)
Patch Set: fix Created 3 years, 11 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 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 mojom::Cursor* cursor_storage_; 278 mojom::Cursor* cursor_storage_;
279 279
280 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory); 280 DISALLOW_COPY_AND_ASSIGN(TestPlatformDisplayFactory);
281 }; 281 };
282 282
283 // ----------------------------------------------------------------------------- 283 // -----------------------------------------------------------------------------
284 284
285 // A stub implementation of FrameGeneratorDelegate. 285 // A stub implementation of FrameGeneratorDelegate.
286 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { 286 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
287 public: 287 public:
288 TestFrameGeneratorDelegate(); 288 TestFrameGeneratorDelegate(ServerWindow* root_window);
289 ~TestFrameGeneratorDelegate() override; 289 ~TestFrameGeneratorDelegate() override;
290 290
291 // FrameGeneratorDelegate: 291 // FrameGeneratorDelegate:
292 ServerWindow* GetActiveRootWindow() override;
292 bool IsInHighContrastMode() override; 293 bool IsInHighContrastMode() override;
293 294
294 private: 295 private:
296 ServerWindow* root_window_;
297
295 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); 298 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
296 }; 299 };
297 300
298 // ----------------------------------------------------------------------------- 301 // -----------------------------------------------------------------------------
299 302
300 class TestWindowManager : public mojom::WindowManager { 303 class TestWindowManager : public mojom::WindowManager {
301 public: 304 public:
302 TestWindowManager() 305 TestWindowManager()
303 : got_create_top_level_window_(false), 306 : got_create_top_level_window_(false),
304 change_id_(0u), 307 change_id_(0u),
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 673 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
671 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 674 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
672 ServerWindow* parent, 675 ServerWindow* parent,
673 ClientWindowId* client_id); 676 ClientWindowId* client_id);
674 677
675 } // namespace test 678 } // namespace test
676 } // namespace ws 679 } // namespace ws
677 } // namespace ui 680 } // namespace ui
678 681
679 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 682 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_compositor_frame_sink_manager.cc ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698