Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: athena/content/app_activity.cc

Issue 412713002: Move apps/shell to extensions/shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 40% Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « athena/content/app_activity.h ('k') | athena/content/content_activity_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « athena/content/app_activity.h ('k') | athena/content/content_activity_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698