OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
danakj
2013/02/21 01:33:15
2013 for all everything now
reveman
2013/02/22 01:26:44
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WM_FOREIGN_TEST_WINDOW_H_ | |
6 #define WM_FOREIGN_TEST_WINDOW_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/callback.h" | |
10 #include "base/compiler_specific.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "ui/gfx/native_widget_types.h" | |
13 | |
14 namespace wm { | |
15 class ForeignTestWindowHost; | |
16 | |
17 // This class implements a foreign window to use for testing purposes. | |
18 class ForeignTestWindow { | |
19 public: | |
20 struct CreateParams { | |
21 explicit CreateParams(gfx::AcceleratedWidget parent); | |
22 | |
23 gfx::AcceleratedWidget parent; | |
24 }; | |
25 explicit ForeignTestWindow(const CreateParams& params); | |
26 virtual ~ForeignTestWindow(); | |
27 | |
28 void Show(); | |
29 void Hide(); | |
30 void Destroy(); | |
31 void Sync(); | |
32 | |
33 private: | |
34 ForeignTestWindowHost* host_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(ForeignTestWindow); | |
37 }; | |
38 | |
39 } // namespace wm | |
40 | |
41 #endif // WM_FOREIGN_TEST_WINDOW_H_ | |
OLD | NEW |