blob: 606e556b6f8c3f1562f8dbfa5b7d9eae12b85637 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/mus/ws/server_window_surface_manager_test_api.h"
#include "components/mus/ws/server_window.h"
namespace mus {
namespace ws {
ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi(
ServerWindowSurfaceManager* manager)
: manager_(manager) {}
ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {}
void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() {
manager_->type_to_surface_map_[mojom::SURFACE_TYPE_DEFAULT] = nullptr;
}
void EnableHitTest(ServerWindow* window) {
ServerWindowSurfaceManagerTestApi test_api(
window->GetOrCreateSurfaceManager());
test_api.CreateEmptyDefaultSurface();
}
} // namespace ws
} // namespace mus
|