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

Side by Side Diff: services/ui/ws/server_window_surface_manager_test_api.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 1 month 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/server_window_surface_manager_test_api.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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/ui/ws/server_window_surface_manager_test_api.h"
6
7 #include "services/ui/ws/server_window.h"
8
9 namespace ui {
10 namespace ws {
11
12 ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi(
13 ServerWindowSurfaceManager* manager)
14 : manager_(manager) {}
15
16 ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {}
17
18 void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() {
19 manager_->type_to_surface_map_[mojom::SurfaceType::DEFAULT] = nullptr;
20 }
21
22 void ServerWindowSurfaceManagerTestApi::DestroyDefaultSurface() {
23 manager_->type_to_surface_map_.erase(mojom::SurfaceType::DEFAULT);
24 }
25
26 void EnableHitTest(ServerWindow* window) {
27 ServerWindowSurfaceManagerTestApi test_api(
28 window->GetOrCreateSurfaceManager());
29 test_api.CreateEmptyDefaultSurface();
30 }
31
32 void DisableHitTest(ServerWindow* window) {
33 ServerWindowSurfaceManagerTestApi test_api(
34 window->GetOrCreateSurfaceManager());
35 test_api.DestroyDefaultSurface();
36 }
37
38 } // namespace ws
39 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/server_window_surface_manager_test_api.h ('k') | services/ui/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698