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

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

Issue 2400723003: Mus+Ash: Use standard cc mechanism for surface lifetime. (Closed)
Patch Set: Only AddObserver once Created 4 years, 2 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/test_server_window_delegate.cc ('k') | services/ui/ws/window_server.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // ----------------------------------------------------------------------------- 277 // -----------------------------------------------------------------------------
278 278
279 // A stub implementation of FrameGeneratorDelegate. 279 // A stub implementation of FrameGeneratorDelegate.
280 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate { 280 class TestFrameGeneratorDelegate : public FrameGeneratorDelegate {
281 public: 281 public:
282 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root); 282 explicit TestFrameGeneratorDelegate(std::unique_ptr<ServerWindow> root);
283 ~TestFrameGeneratorDelegate() override; 283 ~TestFrameGeneratorDelegate() override;
284 284
285 // FrameGeneratorDelegate: 285 // FrameGeneratorDelegate:
286 ServerWindow* GetRootWindow() override; 286 ServerWindow* GetRootWindow() override;
287 void OnCompositorFrameDrawn() override {}
288 bool IsInHighContrastMode() override; 287 bool IsInHighContrastMode() override;
289 const ViewportMetrics& GetViewportMetrics() override; 288 const ViewportMetrics& GetViewportMetrics() override;
290 289
291 private: 290 private:
292 std::unique_ptr<ServerWindow> root_; 291 std::unique_ptr<ServerWindow> root_;
293 ViewportMetrics metrics_; 292 ViewportMetrics metrics_;
294 293
295 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate); 294 DISALLOW_COPY_AND_ASSIGN(TestFrameGeneratorDelegate);
296 }; 295 };
297 296
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 660 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
662 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 661 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
663 ServerWindow* parent, 662 ServerWindow* parent,
664 ClientWindowId* client_id); 663 ClientWindowId* client_id);
665 664
666 } // namespace test 665 } // namespace test
667 } // namespace ws 666 } // namespace ws
668 } // namespace ui 667 } // namespace ui
669 668
670 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 669 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « services/ui/ws/test_server_window_delegate.cc ('k') | services/ui/ws/window_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698