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

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

Issue 1489923002: Wire up inset of SetUnderlaySurfaceOffsetAndExtendedHitArea (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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.h" 5 #include "components/mus/ws/server_window_surface_manager.h"
6 6
7 #include "components/mus/ws/server_window.h" 7 #include "components/mus/ws/server_window.h"
8 #include "components/mus/ws/server_window_delegate.h" 8 #include "components/mus/ws/server_window_delegate.h"
9 #include "components/mus/ws/server_window_surface.h" 9 #include "components/mus/ws/server_window_surface.h"
10 10
(...skipping 21 matching lines...) Expand all
32 ServerWindowSurface* ServerWindowSurfaceManager::GetUnderlaySurface() { 32 ServerWindowSurface* ServerWindowSurfaceManager::GetUnderlaySurface() {
33 return GetSurfaceByType(mojom::SURFACE_TYPE_UNDERLAY); 33 return GetSurfaceByType(mojom::SURFACE_TYPE_UNDERLAY);
34 } 34 }
35 35
36 ServerWindowSurface* ServerWindowSurfaceManager::GetSurfaceByType( 36 ServerWindowSurface* ServerWindowSurfaceManager::GetSurfaceByType(
37 mojom::SurfaceType type) { 37 mojom::SurfaceType type) {
38 auto iter = type_to_surface_map_.find(type); 38 auto iter = type_to_surface_map_.find(type);
39 return iter == type_to_surface_map_.end() ? nullptr : iter->second.get(); 39 return iter == type_to_surface_map_.end() ? nullptr : iter->second.get();
40 } 40 }
41 41
42 bool ServerWindowSurfaceManager::HasSurfaceOfType(mojom::SurfaceType type) {
43 return type_to_surface_map_.count(type) > 0;
44 }
45
42 cc::SurfaceId ServerWindowSurfaceManager::GenerateId() { 46 cc::SurfaceId ServerWindowSurfaceManager::GenerateId() {
43 return surface_id_allocator_.GenerateId(); 47 return surface_id_allocator_.GenerateId();
44 } 48 }
45 49
46 } // namespace ws 50 } // namespace ws
47 } // namespace mus 51 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/ws/server_window_surface_manager.h ('k') | components/mus/ws/server_window_surface_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698