OLD | NEW |
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" | |
8 | |
9 namespace athena { | 7 namespace athena { |
10 | 8 |
11 class AthenaViewsDelegate : public views::ViewsDelegate { | 9 void CreateAthenaViewsDelegate(); |
12 public: | 10 void ShutdownAthenaViewsDelegate(); |
13 AthenaViewsDelegate() {} | |
14 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 }; | |
26 | 11 |
27 } // namespace athena | 12 } // namespace athena |
28 | 13 |
29 #endif // ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_ | 14 #endif // ATHENA_MAIN_ATHENA_VIEWS_DELEGATE_H_ |
OLD | NEW |