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 | 4 |
5 #include "athena/main/athena_views_delegate.h" | 5 #include "athena/main/athena_views_delegate.h" |
6 | 6 |
7 #include "athena/main/athena_frame_view.h" | 7 #include "athena/main/athena_frame_view.h" |
8 #include "athena/screen/public/screen_manager.h" | 8 #include "athena/screen/public/screen_manager.h" |
9 #include "ui/views/views_delegate.h" | 9 #include "ui/views/views_delegate.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 } // namespace | 38 } // namespace |
39 | 39 |
40 void CreateAthenaViewsDelegate() { | 40 void CreateAthenaViewsDelegate() { |
41 views::ViewsDelegate::views_delegate = new AthenaViewsDelegate; | 41 views::ViewsDelegate::views_delegate = new AthenaViewsDelegate; |
42 } | 42 } |
43 | 43 |
44 void ShutdownAthenaViewsDelegate() { | 44 void ShutdownAthenaViewsDelegate() { |
45 CHECK(views::ViewsDelegate::views_delegate); | 45 CHECK(views::ViewsDelegate::views_delegate); |
46 delete views::ViewsDelegate::views_delegate; | 46 delete views::ViewsDelegate::views_delegate; |
47 views::ViewsDelegate::views_delegate = NULL; | 47 views::ViewsDelegate::views_delegate = nullptr; |
48 } | 48 } |
49 | 49 |
50 } // namespace athena | 50 } // namespace athena |
OLD | NEW |