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 __PLATFORM_WINDOW_MANAGER_LAYOUT_MANAGER_H__ | 5 #ifndef WINDOW_MANAGER_LAYOUT_MANAGER_H_ |
6 #define __PLATFORM_WINDOW_MANAGER_LAYOUT_MANAGER_H__ | 6 #define WINDOW_MANAGER_LAYOUT_MANAGER_H_ |
7 | 7 |
8 extern "C" { | 8 extern "C" { |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 } | 10 } |
11 #include <deque> | 11 #include <deque> |
12 #include <glib.h> // for guint | 12 #include <glib.h> // for guint |
13 #include <map> | 13 #include <map> |
14 #include <string> | 14 #include <string> |
15 #include <tr1/memory> | 15 #include <tr1/memory> |
16 | 16 |
17 #include <gtest/gtest_prod.h> // for FRIEND_TEST() macro | 17 #include <gtest/gtest_prod.h> // for FRIEND_TEST() macro |
18 | 18 |
19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
20 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
21 #include "window_manager/event_consumer.h" | 21 #include "window_manager/event_consumer.h" |
22 #include "window_manager/key_bindings.h" | 22 #include "window_manager/key_bindings.h" |
23 #include "window_manager/wm_ipc.h" // for WmIpc::Message | 23 #include "window_manager/wm_ipc.h" // for WmIpc::Message |
24 | 24 |
25 typedef ::Window XWindow; | 25 typedef ::Window XWindow; |
26 | 26 |
27 namespace chrome_os_pb { | 27 namespace chrome_os_pb { |
28 class SystemMetrics; | 28 class SystemMetrics; |
29 } | 29 } |
30 | 30 |
31 namespace chromeos { | 31 namespace window_manager { |
32 | 32 |
33 class MotionEventCoalescer; | 33 class MotionEventCoalescer; |
34 class Window; | 34 class Window; |
35 class WindowManager; | 35 class WindowManager; |
36 template<class T> class Stacker; // from util.h | 36 template<class T> class Stacker; // from util.h |
37 | 37 |
38 // Manages the placement of regular client windows. | 38 // Manages the placement of regular client windows. |
39 // | 39 // |
40 // It currently supports two modes: "active", where a single toplevel | 40 // It currently supports two modes: "active", where a single toplevel |
41 // window is displayed at full scale and given the input focus, and | 41 // window is displayed at full scale and given the input focus, and |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // already mapped or were in the process of being mapped when we were | 529 // already mapped or were in the process of being mapped when we were |
530 // started. | 530 // started. |
531 // TODO: This is yet another hack that could probably removed in favor of | 531 // TODO: This is yet another hack that could probably removed in favor of |
532 // something more elegant if/when we're sharing an X connection with | 532 // something more elegant if/when we're sharing an X connection with |
533 // Clutter and can safely grab the server at startup. | 533 // Clutter and can safely grab the server at startup. |
534 bool saw_map_request_; | 534 bool saw_map_request_; |
535 | 535 |
536 DISALLOW_COPY_AND_ASSIGN(LayoutManager); | 536 DISALLOW_COPY_AND_ASSIGN(LayoutManager); |
537 }; | 537 }; |
538 | 538 |
539 } // namespace chromeos | 539 } // namespace window_manager |
540 | 540 |
541 #endif | 541 #endif |
OLD | NEW |