OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 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 |
| 13 namespace aura { |
| 14 class RootWindow; |
| 15 } |
| 16 |
| 17 namespace wm { |
| 18 class ForeignTestWindowHost; |
| 19 |
| 20 // This class implements a foreign window to use for testing purposes. |
| 21 class ForeignTestWindow { |
| 22 public: |
| 23 struct CreateParams { |
| 24 explicit CreateParams(aura::RootWindow* root_window); |
| 25 |
| 26 aura::RootWindow* root_window; |
| 27 }; |
| 28 explicit ForeignTestWindow(const CreateParams& params); |
| 29 virtual ~ForeignTestWindow(); |
| 30 |
| 31 void Show(); |
| 32 void Hide(); |
| 33 void Destroy(); |
| 34 void Sync(); |
| 35 |
| 36 private: |
| 37 ForeignTestWindowHost* host_; |
| 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ForeignTestWindow); |
| 40 }; |
| 41 |
| 42 } // namespace wm |
| 43 |
| 44 #endif // WM_FOREIGN_TEST_WINDOW_H_ |
OLD | NEW |