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

Side by Side Diff: app/x11_util.h

Issue 3136025: Remove obviously unneeded forward declarations from headers under src/{app,base,net}. (Closed)
Patch Set: it was the best of times Created 10 years, 4 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 | « app/surface/transport_dib.h ('k') | base/file_version_info_mac.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 APP_X11_UTIL_H_ 5 #ifndef APP_X11_UTIL_H_
6 #define APP_X11_UTIL_H_ 6 #define APP_X11_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 // This file declares utility functions for X11 (Linux only). 9 // This file declares utility functions for X11 (Linux only).
10 // 10 //
11 // These functions do not require the Xlib headers to be included (which is why 11 // These functions do not require the Xlib headers to be included (which is why
12 // we use a void* for Visual*). The Xlib headers are highly polluting so we try 12 // we use a void* for Visual*). The Xlib headers are highly polluting so we try
13 // hard to limit their spread into the rest of the code. 13 // hard to limit their spread into the rest of the code.
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/basictypes.h" 18 #include "base/basictypes.h"
19 19
20 typedef struct _GdkDrawable GdkWindow; 20 typedef struct _GdkDrawable GdkWindow;
21 typedef struct _GtkWidget GtkWidget; 21 typedef struct _GtkWidget GtkWidget;
22 typedef struct _GtkWindow GtkWindow; 22 typedef struct _GtkWindow GtkWindow;
23 typedef unsigned long XID; 23 typedef unsigned long XID;
24 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers. 24 typedef unsigned long XSharedMemoryId; // ShmSeg in the X headers.
25 typedef struct _XDisplay Display; 25 typedef struct _XDisplay Display;
26 26
27 namespace base {
28 class Thread;
29 }
30
31 namespace gfx { 27 namespace gfx {
32 class Rect; 28 class Rect;
33 class Size;
34 } 29 }
35 30
36 namespace x11_util { 31 namespace x11_util {
37 32
38 // These functions use the GDK default display and this /must/ be called from 33 // These functions use the GDK default display and this /must/ be called from
39 // the UI thread. Thus, they don't support multiple displays. 34 // the UI thread. Thus, they don't support multiple displays.
40 35
41 // These functions cache their results --------------------------------- 36 // These functions cache their results ---------------------------------
42 37
43 // Check if there's an open connection to an X server. 38 // Check if there's an open connection to an X server.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 172
178 // Change desktop for |window| to the desktop of |destination| window. 173 // Change desktop for |window| to the desktop of |destination| window.
179 bool ChangeWindowDesktop(XID window, XID destination); 174 bool ChangeWindowDesktop(XID window, XID destination);
180 175
181 // Sets the X Error Handlers so we can catch X errors and crash. 176 // Sets the X Error Handlers so we can catch X errors and crash.
182 void SetX11ErrorHandlers(); 177 void SetX11ErrorHandlers();
183 178
184 } // namespace x11_util 179 } // namespace x11_util
185 180
186 #endif // APP_X11_UTIL_H_ 181 #endif // APP_X11_UTIL_H_
OLDNEW
« no previous file with comments | « app/surface/transport_dib.h ('k') | base/file_version_info_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698