OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_ |
| 6 #define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_ |
| 7 |
| 8 #include <set> |
| 9 |
| 10 #include "mojo/services/public/cpp/view_manager/lib/view_private.h" |
| 11 #include "mojo/services/public/cpp/view_manager/view.h" |
| 12 #include "mojo/services/window_manager/view_target.h" |
| 13 |
| 14 namespace gfx { |
| 15 class Rect; |
| 16 } |
| 17 |
| 18 namespace mojo { |
| 19 |
| 20 // A wrapper around View so we can instantiate these directly without a |
| 21 // ViewManager. |
| 22 class TestView : public View { |
| 23 public: |
| 24 TestView(int id, const gfx::Rect& rect); |
| 25 ~TestView(); |
| 26 |
| 27 ViewTarget* target() { return target_; } |
| 28 |
| 29 private: |
| 30 ViewTarget* target_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(TestView); |
| 33 }; |
| 34 |
| 35 } // namespace mojo |
| 36 |
| 37 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_ |
OLD | NEW |