Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: mojo/services/window_manager/window_manager_test_util.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_
6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_
7
8 #include <set>
9
10 #include "mojo/services/window_manager/view_target.h"
11 #include "third_party/mojo_services/src/view_manager/public/cpp/lib/view_private .h"
12 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h"
13
14 namespace gfx {
15 class Rect;
16 }
17
18 namespace window_manager {
19
20 // A wrapper around View so we can instantiate these directly without a
21 // ViewManager.
22 class TestView : public mojo::View {
23 public:
24 TestView(int id, const gfx::Rect& rect);
25 TestView(int id, const gfx::Rect& rect, mojo::View* parent);
26 ~TestView();
27
28 // Builds a child view as a pointer. The caller is responsible for making
29 // sure that the root of any tree allocated this way is Destroy()ed.
30 static TestView* Build(int id, const gfx::Rect& rect);
31 static TestView* Build(int id, const gfx::Rect& rect, View* parent);
32
33 ViewTarget* target() { return target_; }
34
35 private:
36 ViewTarget* target_;
37
38 DISALLOW_COPY_AND_ASSIGN(TestView);
39 };
40
41 } // namespace window_manager
42
43 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « mojo/services/window_manager/window_manager_impl.cc ('k') | mojo/services/window_manager/window_manager_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698