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

Side by Side Diff: components/mus/ws/server_window_surface_manager_test_api.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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 2015 The Chromium Authors. All rights reserved. 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 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 #include "components/mus/ws/server_window_surface_manager_test_api.h" 5 #include "components/mus/ws/server_window_surface_manager_test_api.h"
6 6
7 #include "components/mus/ws/server_window.h" 7 #include "components/mus/ws/server_window.h"
8 8
9 namespace mus { 9 namespace mus {
10 namespace ws { 10 namespace ws {
11 11
12 ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi( 12 ServerWindowSurfaceManagerTestApi::ServerWindowSurfaceManagerTestApi(
13 ServerWindowSurfaceManager* manager) 13 ServerWindowSurfaceManager* manager)
14 : manager_(manager) {} 14 : manager_(manager) {}
15 15
16 ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {} 16 ServerWindowSurfaceManagerTestApi::~ServerWindowSurfaceManagerTestApi() {}
17 17
18 void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() { 18 void ServerWindowSurfaceManagerTestApi::CreateEmptyDefaultSurface() {
19 manager_->type_to_surface_map_[mojom::SURFACE_TYPE_DEFAULT] = nullptr; 19 manager_->type_to_surface_map_[mojom::SurfaceType::DEFAULT] = nullptr;
20 } 20 }
21 21
22 void EnableHitTest(ServerWindow* window) { 22 void EnableHitTest(ServerWindow* window) {
23 ServerWindowSurfaceManagerTestApi test_api( 23 ServerWindowSurfaceManagerTestApi test_api(
24 window->GetOrCreateSurfaceManager()); 24 window->GetOrCreateSurfaceManager());
25 test_api.CreateEmptyDefaultSurface(); 25 test_api.CreateEmptyDefaultSurface();
26 } 26 }
27 27
28 } // namespace ws 28 } // namespace ws
29 } // namespace mus 29 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/server_window_surface_manager.cc ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698