1// Copyright 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 UI_VIEWS_WIDGET_ROOT_VIEW_TEST_HELPER_H_
6#define UI_VIEWS_WIDGET_ROOT_VIEW_TEST_HELPER_H_
7
8#include "ui/views/widget/root_view.h"
9
10namespace views {
11namespace test {
12
13class RootViewTestHelper {
14 public:
15  explicit RootViewTestHelper(internal::RootView* root_view)
16      : root_view_(root_view) {
17  }
18  ~RootViewTestHelper() {}
19
20  void DispatchKeyEventStartAt(View* view, ui::KeyEvent* event) {
21    root_view_->DispatchKeyEventStartAt(view, event);
22  }
23
24 private:
25  internal::RootView* root_view_;
26
27  DISALLOW_COPY_AND_ASSIGN(RootViewTestHelper);
28};
29
30}  // namespace test
31}  // namespace views
32
33#endif  // UI_VIEWS_WIDGET_ROOT_VIEW_TEST_HELPER_H_
34