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

Side by Side Diff: ui/ozone/platform/dri/dri_window_delegate_manager.h

Issue 883783002: [Ozone-DRI] Assume window IPC arrives before surface IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 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 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // Removes the delegate for |widget|. Note: |widget| must have a delegate 25 // Removes the delegate for |widget|. Note: |widget| must have a delegate
26 // associated with it when calling this function. 26 // associated with it when calling this function.
27 scoped_ptr<DriWindowDelegate> RemoveWindowDelegate( 27 scoped_ptr<DriWindowDelegate> RemoveWindowDelegate(
28 gfx::AcceleratedWidget widget); 28 gfx::AcceleratedWidget widget);
29 29
30 // Returns the delegate associated with |widget|. Note: This function should 30 // Returns the delegate associated with |widget|. Note: This function should
31 // be called only if a valid delegate has been associated with |widget|. 31 // be called only if a valid delegate has been associated with |widget|.
32 DriWindowDelegate* GetWindowDelegate(gfx::AcceleratedWidget widget); 32 DriWindowDelegate* GetWindowDelegate(gfx::AcceleratedWidget widget);
33 33
34 // Check if |widget| has a valid delegate associated with it.
35 bool HasWindowDelegate(gfx::AcceleratedWidget widget);
36
37 private: 34 private:
38 typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate> 35 typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate>
39 WidgetToDelegateMap; 36 WidgetToDelegateMap;
40 37
41 WidgetToDelegateMap delegate_map_; 38 WidgetToDelegateMap delegate_map_;
42 39
43 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateManager); 40 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateManager);
44 }; 41 };
45 42
46 } // namespace ui 43 } // namespace ui
47 44
48 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_ 45 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window.h ('k') | ui/ozone/platform/dri/dri_window_delegate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698