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_CLUTTER_INTERFACE_H__ | 5 #ifndef WINDOW_MANAGER_CLUTTER_INTERFACE_H_ |
6 #define __PLATFORM_WINDOW_MANAGER_CLUTTER_INTERFACE_H__ | 6 #define WINDOW_MANAGER_CLUTTER_INTERFACE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 extern "C" { | 12 extern "C" { |
13 #include <clutter/clutter.h> | 13 #include <clutter/clutter.h> |
14 #if __arm__ | 14 #if __arm__ |
15 #include <clutter/eglx/clutter-eglx-egl-image.h> | 15 #include <clutter/eglx/clutter-eglx-egl-image.h> |
16 #else // x86 | 16 #else // x86 |
17 #include <clutter/glx/clutter-glx.h> | 17 #include <clutter/glx/clutter-glx.h> |
18 #endif | 18 #endif |
19 #include <clutter/x11/clutter-x11.h> | 19 #include <clutter/x11/clutter-x11.h> |
20 #include <X11/Xlib.h> | 20 #include <X11/Xlib.h> |
21 } | 21 } |
22 | 22 |
23 #include "base/basictypes.h" | 23 #include "base/basictypes.h" |
24 #include "base/scoped_ptr.h" | 24 #include "base/scoped_ptr.h" |
25 | 25 |
26 typedef ::Window XWindow; | 26 typedef ::Window XWindow; |
27 | 27 |
28 namespace chromeos { | 28 namespace window_manager { |
29 | 29 |
30 template<class T> class Stacker; // from util.h | 30 template<class T> class Stacker; // from util.h |
31 | 31 |
32 // A wrapper around Clutter's C API. | 32 // A wrapper around Clutter's C API. |
33 // | 33 // |
34 // TODO: We'll almost certainly need something more flexible here. For | 34 // TODO: We'll almost certainly need something more flexible here. For |
35 // example, it'd be nice to still have control over which alpha function | 35 // example, it'd be nice to still have control over which alpha function |
36 // is used, or to specify multiple parameters to be animated at once (as | 36 // is used, or to specify multiple parameters to be animated at once (as |
37 // can be done with implicit animations), or to be able to chain sequential | 37 // can be done with implicit animations), or to be able to chain sequential |
38 // animations together. | 38 // animations together. |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 Actor* CloneActor(ClutterInterface::Actor* orig) { return new Actor; } | 424 Actor* CloneActor(ClutterInterface::Actor* orig) { return new Actor; } |
425 StageActor* GetDefaultStage() { return &default_stage_; } | 425 StageActor* GetDefaultStage() { return &default_stage_; } |
426 // End ClutterInterface methods | 426 // End ClutterInterface methods |
427 | 427 |
428 private: | 428 private: |
429 StageActor default_stage_; | 429 StageActor default_stage_; |
430 | 430 |
431 DISALLOW_COPY_AND_ASSIGN(MockClutterInterface); | 431 DISALLOW_COPY_AND_ASSIGN(MockClutterInterface); |
432 }; | 432 }; |
433 | 433 |
434 } // namespace chromeos | 434 } // namespace window_manager |
435 | 435 |
436 #endif | 436 #endif |
OLD | NEW |