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_PANEL_BAR_H__ | 5 #ifndef WINDOW_MANAGER_PANEL_BAR_H_ |
6 #define __PLATFORM_WINDOW_MANAGER_PANEL_BAR_H__ | 6 #define WINDOW_MANAGER_PANEL_BAR_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 <map> | 12 #include <map> |
13 #include <tr1/memory> | 13 #include <tr1/memory> |
14 | 14 |
15 #include <gtest/gtest_prod.h> // for FRIEND_TEST() macro | 15 #include <gtest/gtest_prod.h> // for FRIEND_TEST() macro |
16 | 16 |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
19 #include "window_manager/clutter_interface.h" | 19 #include "window_manager/clutter_interface.h" |
20 #include "window_manager/event_consumer.h" | 20 #include "window_manager/event_consumer.h" |
21 #include "window_manager/motion_event_coalescer.h" | 21 #include "window_manager/motion_event_coalescer.h" |
22 #include "window_manager/wm_ipc.h" | 22 #include "window_manager/wm_ipc.h" |
23 | 23 |
24 typedef ::Window XWindow; | 24 typedef ::Window XWindow; |
25 | 25 |
26 namespace chromeos { | 26 namespace window_manager { |
27 | 27 |
28 class Panel; | 28 class Panel; |
29 class Shadow; | 29 class Shadow; |
30 class Window; | 30 class Window; |
31 class WindowManager; | 31 class WindowManager; |
32 | 32 |
33 // The panel bar positions and controls Chrome panel windows. | 33 // The panel bar positions and controls Chrome panel windows. |
34 class PanelBar : public EventConsumer { | 34 class PanelBar : public EventConsumer { |
35 public: | 35 public: |
36 PanelBar(WindowManager* wm, int x, int y, int width, int height); | 36 PanelBar(WindowManager* wm, int x, int y, int width, int height); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 // Is the panel bar visible? | 247 // Is the panel bar visible? |
248 bool is_visible_; | 248 bool is_visible_; |
249 | 249 |
250 // Have we already seen a MapRequest event? | 250 // Have we already seen a MapRequest event? |
251 bool saw_map_request_; | 251 bool saw_map_request_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(PanelBar); | 253 DISALLOW_COPY_AND_ASSIGN(PanelBar); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace chromeos | 256 } // namespace window_manager |
257 | 257 |
258 #endif | 258 #endif |
OLD | NEW |