OLD | NEW |
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 #include "chrome/browser/chromeos/wm_ipc.h" | 5 #include "chrome/browser/chromeos/wm_ipc.h" |
6 | 6 |
7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.h> |
8 extern "C" { | 8 extern "C" { |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 } | 10 } |
11 | 11 |
12 #include "app/x11_util.h" | 12 #include "app/x11_util.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/scoped_ptr.h" |
14 #include "base/singleton.h" | 15 #include "base/singleton.h" |
15 #include "base/scoped_ptr.h" | |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // A value from the Atom enum and the actual name that should be used to | 21 // A value from the Atom enum and the actual name that should be used to |
22 // look up its ID on the X server. | 22 // look up its ID on the X server. |
23 struct AtomInfo { | 23 struct AtomInfo { |
24 WmIpc::AtomType atom; | 24 WmIpc::AtomType atom; |
25 const char* name; | 25 const char* name; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // Let the window manager know which version of the IPC messages we support. | 201 // Let the window manager know which version of the IPC messages we support. |
202 Message msg(chromeos::WM_IPC_MESSAGE_WM_NOTIFY_IPC_VERSION); | 202 Message msg(chromeos::WM_IPC_MESSAGE_WM_NOTIFY_IPC_VERSION); |
203 // TODO: The version number is the latest listed in wm_ipc.h -- | 203 // TODO: The version number is the latest listed in wm_ipc.h -- |
204 // ideally, once this header is shared between Chrome and the Chrome OS window | 204 // ideally, once this header is shared between Chrome and the Chrome OS window |
205 // manager, we'll just define the version statically in the header. | 205 // manager, we'll just define the version statically in the header. |
206 msg.set_param(0, 1); | 206 msg.set_param(0, 1); |
207 SendMessage(msg); | 207 SendMessage(msg); |
208 } | 208 } |
209 | 209 |
210 } // namespace chromeos | 210 } // namespace chromeos |
OLD | NEW |