Chromium Code Reviews| 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" | 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_ |
| OLD | NEW |