| 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/content/app_activity.h" | 5 #include "athena/content/app_activity.h" |
| 6 | 6 |
| 7 #include "apps/shell/browser/shell_app_window.h" | |
| 8 #include "athena/activity/public/activity_manager.h" | 7 #include "athena/activity/public/activity_manager.h" |
| 9 #include "content/public/browser/web_contents.h" | 8 #include "content/public/browser/web_contents.h" |
| 9 #include "extensions/shell/browser/shell_app_window.h" |
| 10 #include "ui/views/controls/webview/webview.h" | 10 #include "ui/views/controls/webview/webview.h" |
| 11 | 11 |
| 12 namespace athena { | 12 namespace athena { |
| 13 | 13 |
| 14 // TODO(mukai): specifies the same accelerators of WebActivity. | 14 // TODO(mukai): specifies the same accelerators of WebActivity. |
| 15 AppActivity::AppActivity(apps::ShellAppWindow* app_window) | 15 AppActivity::AppActivity(extensions::ShellAppWindow* app_window) |
| 16 : app_window_(app_window), | 16 : app_window_(app_window), |
| 17 web_view_(NULL), | 17 web_view_(NULL), |
| 18 current_state_(ACTIVITY_UNLOADED) { | 18 current_state_(ACTIVITY_UNLOADED) { |
| 19 DCHECK(app_window_); | 19 DCHECK(app_window_); |
| 20 } | 20 } |
| 21 | 21 |
| 22 AppActivity::~AppActivity() { | 22 AppActivity::~AppActivity() { |
| 23 if (GetCurrentState() != ACTIVITY_UNLOADED) | 23 if (GetCurrentState() != ACTIVITY_UNLOADED) |
| 24 SetCurrentState(ACTIVITY_UNLOADED); | 24 SetCurrentState(ACTIVITY_UNLOADED); |
| 25 } | 25 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool explicit_set) { | 124 bool explicit_set) { |
| 125 ActivityManager::Get()->UpdateActivity(this); | 125 ActivityManager::Get()->UpdateActivity(this); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void AppActivity::DidUpdateFaviconURL( | 128 void AppActivity::DidUpdateFaviconURL( |
| 129 const std::vector<content::FaviconURL>& candidates) { | 129 const std::vector<content::FaviconURL>& candidates) { |
| 130 ActivityManager::Get()->UpdateActivity(this); | 130 ActivityManager::Get()->UpdateActivity(this); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace athena | 133 } // namespace athena |
| OLD | NEW |