OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 WINDOW_MANAGER_WINDOW_MANAGER_H_ | 5 #ifndef WINDOW_MANAGER_WINDOW_MANAGER_H_ |
6 #define WINDOW_MANAGER_WINDOW_MANAGER_H_ | 6 #define WINDOW_MANAGER_WINDOW_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 XWindow root() const { return root_; } | 51 XWindow root() const { return root_; } |
52 XWindow background_xid() const { return background_xid_; } | 52 XWindow background_xid() const { return background_xid_; } |
53 | 53 |
54 ClutterInterface::StageActor* stage() { return stage_; } | 54 ClutterInterface::StageActor* stage() { return stage_; } |
55 ClutterInterface::Actor* background() { return background_.get(); } | 55 ClutterInterface::Actor* background() { return background_.get(); } |
56 | 56 |
57 int width() const { return width_; } | 57 int width() const { return width_; } |
58 int height() const { return height_; } | 58 int height() const { return height_; } |
59 | 59 |
| 60 XWindow wm_xid() const { return wm_xid_; } |
60 XWindow active_window_xid() const { return active_window_xid_; } | 61 XWindow active_window_xid() const { return active_window_xid_; } |
61 | 62 |
62 KeyBindings* key_bindings() { return key_bindings_.get(); } | 63 KeyBindings* key_bindings() { return key_bindings_.get(); } |
63 WmIpc* wm_ipc() { return wm_ipc_.get(); } | 64 WmIpc* wm_ipc() { return wm_ipc_.get(); } |
| 65 int wm_ipc_version() const { return wm_ipc_version_; } |
64 | 66 |
65 // Get the title for the window that we create to take ownership of management | 67 // Get the title for the window that we create to take ownership of management |
66 // selections. This is also used to name our log files. | 68 // selections. This is also used to name our log files. |
67 static const char* GetWmName() { return "chromeos-wm"; } | 69 static const char* GetWmName() { return "chromeos-wm"; } |
68 | 70 |
69 bool Init(); | 71 bool Init(); |
70 | 72 |
71 bool HandleEvent(XEvent* event); | 73 bool HandleEvent(XEvent* event); |
72 | 74 |
73 // Create a new X window for receiving input. | 75 // Create a new X window for receiving input. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 296 |
295 // GLib source ID for the timer that calls QueryKeyboardStateThunk(). | 297 // GLib source ID for the timer that calls QueryKeyboardStateThunk(). |
296 guint query_keyboard_state_timer_; | 298 guint query_keyboard_state_timer_; |
297 | 299 |
298 // Is the hotkey overlay currently being shown? | 300 // Is the hotkey overlay currently being shown? |
299 bool showing_hotkey_overlay_; | 301 bool showing_hotkey_overlay_; |
300 | 302 |
301 // Shows overlayed images containing hotkeys. | 303 // Shows overlayed images containing hotkeys. |
302 scoped_ptr<HotkeyOverlay> hotkey_overlay_; | 304 scoped_ptr<HotkeyOverlay> hotkey_overlay_; |
303 | 305 |
| 306 // Version of the IPC protocol that Chrome is currently using. See |
| 307 // WM_NOTIFY_IPC_VERSION in wm_ipc.h for details. |
| 308 int wm_ipc_version_; |
| 309 |
304 DISALLOW_COPY_AND_ASSIGN(WindowManager); | 310 DISALLOW_COPY_AND_ASSIGN(WindowManager); |
305 }; | 311 }; |
306 | 312 |
307 } // namespace window_manager | 313 } // namespace window_manager |
308 | 314 |
309 #endif // WINDOW_MANAGER_WINDOW_MANAGER_H_ | 315 #endif // WINDOW_MANAGER_WINDOW_MANAGER_H_ |
OLD | NEW |