OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "athena/main/athena_views_delegate.h" |
| 6 |
| 7 #include "athena/main/athena_frame_view.h" |
| 8 #include "athena/screen/public/screen_manager.h" |
| 9 |
| 10 namespace athena { |
| 11 |
| 12 void AthenaViewsDelegate::OnBeforeWidgetInit( |
| 13 views::Widget::InitParams* params, |
| 14 views::internal::NativeWidgetDelegate* delegate) { |
| 15 params->context = athena::ScreenManager::Get()->GetContext(); |
| 16 } |
| 17 |
| 18 views::NonClientFrameView* AthenaViewsDelegate::CreateDefaultNonClientFrameView( |
| 19 views::Widget* widget) { |
| 20 return new AthenaFrameView(widget); |
| 21 } |
| 22 |
| 23 } // namespace athena |
OLD | NEW |