OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/ozone/platform/dri/dri_window_delegate_manager.h" | 5 #include "ui/ozone/platform/dri/dri_window_delegate_manager.h" |
6 | 6 |
7 #include "ui/ozone/platform/dri/dri_window_delegate.h" | 7 #include "ui/ozone/platform/dri/dri_window_delegate.h" |
8 | 8 |
9 namespace ui { | 9 namespace ui { |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 DriWindowDelegate* DriWindowDelegateManager::GetWindowDelegate( | 34 DriWindowDelegate* DriWindowDelegateManager::GetWindowDelegate( |
35 gfx::AcceleratedWidget widget) { | 35 gfx::AcceleratedWidget widget) { |
36 WidgetToDelegateMap::iterator it = delegate_map_.find(widget); | 36 WidgetToDelegateMap::iterator it = delegate_map_.find(widget); |
37 if (it != delegate_map_.end()) | 37 if (it != delegate_map_.end()) |
38 return it->second; | 38 return it->second; |
39 | 39 |
40 NOTREACHED() << "Attempting to get non-existing delegate for " << widget; | 40 NOTREACHED() << "Attempting to get non-existing delegate for " << widget; |
41 return NULL; | 41 return NULL; |
42 } | 42 } |
43 | 43 |
44 bool DriWindowDelegateManager::HasWindowDelegate( | |
45 gfx::AcceleratedWidget widget) { | |
46 return delegate_map_.find(widget) != delegate_map_.end(); | |
47 } | |
48 | |
49 } // namespace ui | 44 } // namespace ui |
OLD | NEW |