| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "athena/activity/public/activity.h" |
| |
| #include "athena/activity/public/activity_manager.h" |
| #include "ui/views/widget/widget.h" |
| |
| namespace athena { |
| |
| // static |
| void Activity::Show(Activity* activity) { |
| views::Widget* widget = |
| views::Widget::GetWidgetForNativeWindow(activity->GetWindow()); |
| DCHECK(widget); |
| widget->Show(); |
| } |
| |
| // static |
| void Activity::Delete(Activity* activity) { |
| ActivityManager::Get()->RemoveActivity(activity); |
| delete activity; |
| } |
| |
| } // namespace athena |