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

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

Issue 886323004: ozone: dri: Fix undefined references in DRI platform GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also fix gyp build 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
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.h ('k') | ui/ozone/platform/dri/dri_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/ozone/ozone_export.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 class DriWindowDelegate; 14 class DriWindowDelegate;
14 15
15 class DriWindowDelegateManager { 16 class OZONE_EXPORT DriWindowDelegateManager {
16 public: 17 public:
17 DriWindowDelegateManager(); 18 DriWindowDelegateManager();
18 ~DriWindowDelegateManager(); 19 ~DriWindowDelegateManager();
19 20
20 // Adds a delegate for |widget|. Note: |widget| should not be associated with 21 // Adds a delegate for |widget|. Note: |widget| should not be associated with
21 // a delegate when calling this function. 22 // a delegate when calling this function.
22 void AddWindowDelegate(gfx::AcceleratedWidget widget, 23 void AddWindowDelegate(gfx::AcceleratedWidget widget,
23 scoped_ptr<DriWindowDelegate> surface); 24 scoped_ptr<DriWindowDelegate> surface);
24 25
25 // Removes the delegate for |widget|. Note: |widget| must have a delegate 26 // Removes the delegate for |widget|. Note: |widget| must have a delegate
(...skipping 10 matching lines...) Expand all
36 WidgetToDelegateMap; 37 WidgetToDelegateMap;
37 38
38 WidgetToDelegateMap delegate_map_; 39 WidgetToDelegateMap delegate_map_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateManager); 41 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateManager);
41 }; 42 };
42 43
43 } // namespace ui 44 } // namespace ui
44 45
45 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_ 46 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.h ('k') | ui/ozone/platform/dri/dri_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698