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

Side by Side Diff: ui/gfx/gtk_native_view_id_manager.h

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gfx_paths.cc ('k') | ui/gfx/gtk_native_view_id_manager.cc » ('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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ 5 #ifndef UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_
6 #define UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ 6 #define UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/singleton.h" 11 #include "base/singleton.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 #include "gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 typedef unsigned long XID; 15 typedef unsigned long XID;
16 struct _GtkPreserveWindow; 16 struct _GtkPreserveWindow;
17 17
18 // NativeViewIds are the opaque values which the renderer holds as a reference 18 // NativeViewIds are the opaque values which the renderer holds as a reference
19 // to a window. These ids are often used in sync calls from the renderer and 19 // to a window. These ids are often used in sync calls from the renderer and
20 // one cannot terminate sync calls on the UI thread as that can lead to 20 // one cannot terminate sync calls on the UI thread as that can lead to
21 // deadlocks. 21 // deadlocks.
22 // 22 //
23 // Because of this, we have the BACKGROUND_X11 thread for these calls and this 23 // Because of this, we have the BACKGROUND_X11 thread for these calls and this
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // 132 //
133 // An XID will map to NULL, if there is an outstanding reference but the 133 // An XID will map to NULL, if there is an outstanding reference but the
134 // widget was destroyed. In this case, the destruction of the X window 134 // widget was destroyed. In this case, the destruction of the X window
135 // is deferred to the dropping of all references. 135 // is deferred to the dropping of all references.
136 std::map<XID, PermanentXIDInfo> perm_xid_to_info_; 136 std::map<XID, PermanentXIDInfo> perm_xid_to_info_;
137 137
138 DISALLOW_COPY_AND_ASSIGN(GtkNativeViewManager); 138 DISALLOW_COPY_AND_ASSIGN(GtkNativeViewManager);
139 }; 139 };
140 140
141 #endif // UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_ 141 #endif // UI_GFX_GTK_NATIVE_VIEW_ID_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/gfx/gfx_paths.cc ('k') | ui/gfx/gtk_native_view_id_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698