Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / views / test / test_views_delegate.h
1 // Copyright (c) 2012 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_TEST_TEST_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/views_delegate.h"
10
11 namespace wm {
12 class WMState;
13 }
14
15 namespace views {
16
17 class TestViewsDelegate : public ViewsDelegate {
18  public:
19   TestViewsDelegate();
20   virtual ~TestViewsDelegate();
21
22   void SetUseTransparentWindows(bool transparent);
23
24   // ViewsDelegate:
25   virtual void OnBeforeWidgetInit(
26       Widget::InitParams* params,
27       internal::NativeWidgetDelegate* delegate) OVERRIDE;
28
29  private:
30   bool use_transparent_windows_;
31   scoped_ptr<wm::WMState> wm_state_;
32
33   DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
34 };
35
36 }  // namespace views
37
38 #endif  // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_