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

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

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c 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
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('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 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(ServerWindow* root_window); 288 TestFrameGeneratorDelegate();
289 ~TestFrameGeneratorDelegate() override; 289 ~TestFrameGeneratorDelegate() override;
290 290
291 // FrameGeneratorDelegate: 291 // FrameGeneratorDelegate:
292 ServerWindow* GetActiveRootWindow() override;
293 bool IsInHighContrastMode() override; 292 bool IsInHighContrastMode() override;
294 293
295 private:
296 ServerWindow* root_window_;
297
298 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); 294 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
299 }; 295 };
300 296
301 // ----------------------------------------------------------------------------- 297 // -----------------------------------------------------------------------------
302 298
303 class TestWindowManager : public mojom::WindowManager { 299 class TestWindowManager : public mojom::WindowManager {
304 public: 300 public:
305 TestWindowManager() 301 TestWindowManager()
306 : got_create_top_level_window_(false), 302 : got_create_top_level_window_(false),
307 change_id_(0u), 303 change_id_(0u),
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 669 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
674 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 670 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
675 ServerWindow* parent, 671 ServerWindow* parent,
676 ClientWindowId* client_id); 672 ClientWindowId* client_id);
677 673
678 } // namespace test 674 } // namespace test
679 } // namespace ws 675 } // namespace ws
680 } // namespace ui 676 } // namespace ui
681 677
682 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 678 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_delegate.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698