blob: 047223db97129cf944241bf6de1c6e9ada593226 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_
#define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_
#include <set>
#include "mojo/services/public/cpp/view_manager/lib/view_private.h"
#include "mojo/services/public/cpp/view_manager/view.h"
#include "services/window_manager/view_target.h"
namespace gfx {
class Rect;
}
namespace mojo {
// A wrapper around View so we can instantiate these directly without a
// ViewManager.
class TestView : public View {
public:
TestView(int id, const gfx::Rect& rect);
TestView(int id, const gfx::Rect& rect, View* parent);
~TestView();
ViewTarget* target() { return target_; }
private:
ViewTarget* target_;
DISALLOW_COPY_AND_ASSIGN(TestView);
};
} // namespace mojo
#endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_TEST_UTIL_H_