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

Side by Side Diff: athena/main/athena_views_delegate.h

Issue 597543002: Fix crash which occurs when combining AthenaTestBase tests and other tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #ifndef ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_ 4 #ifndef ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_
5 #define ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_ 5 #define ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_
6 6
7 #include "ui/views/views_delegate.h" 7 namespace views {
8 class ViewsDelegate;
9 }
8 10
9 namespace athena { 11 namespace athena {
10 12
11 class AthenaViewsDelegate : public views::ViewsDelegate { 13 class AthenaViewsDelegate {
12 public: 14 public:
13 AthenaViewsDelegate() {} 15 static views::ViewsDelegate* Create();
oshima 2014/09/23 20:35:53 You don't have to return the instance, do you?
16 static void Shutdown();
17
14 virtual ~AthenaViewsDelegate() {} 18 virtual ~AthenaViewsDelegate() {}
15
16 private:
17 // views::ViewsDelegate:
18 virtual void OnBeforeWidgetInit(
19 views::Widget::InitParams* params,
20 views::internal::NativeWidgetDelegate* delegate) OVERRIDE;
21 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView(
22 views::Widget* widget) OVERRIDE;
23
24 DISALLOW_COPY_AND_ASSIGN(AthenaViewsDelegate);
25 }; 19 };
26 20
27 } // namespace athena 21 } // namespace athena
28 22
29 #endif // ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_ 23 #endif // ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698