gn vim: apply to *.gni also
[chromium-blink-merge.git] / ash / test / ash_test_views_delegate.h
blob1a23ea5dbfe5d6b5b9129b1cfba19ff2ebf3845e
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.
5 #ifndef ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_
6 #define ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_
8 #include "ui/views/test/test_views_delegate.h"
10 namespace ash {
11 namespace test {
13 // Ash specific ViewsDelegate. In addition to creating a TestWebContents this
14 // parents widget with no parent/context to the shell. This is created by
15 // default AshTestHelper.
16 class AshTestViewsDelegate : public views::TestViewsDelegate {
17 public:
18 AshTestViewsDelegate();
19 ~AshTestViewsDelegate() override;
21 // Overriden from TestViewsDelegate.
22 content::WebContents* CreateWebContents(
23 content::BrowserContext* browser_context,
24 content::SiteInstance* site_instance) override;
25 void OnBeforeWidgetInit(
26 views::Widget::InitParams* params,
27 views::internal::NativeWidgetDelegate* delegate) override;
29 private:
30 DISALLOW_COPY_AND_ASSIGN(AshTestViewsDelegate);
33 } // namespace test
34 } // namespace ash
36 #endif // ASH_TEST_ASH_TEST_VIEWS_DELEGATE_H_