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.
5 #ifndef ATHENA_CONTENT_PUBLIC_APP_ACTIVITY_H_
6 #define ATHENA_CONTENT_PUBLIC_APP_ACTIVITY_H_
8 #include "athena/activity/public/activity.h"
9 #include "athena/activity/public/activity_view_model.h"
10 #include "content/public/browser/web_contents_observer.h"
22 class AppActivity
: public Activity
,
23 public ActivityViewModel
,
24 public content::WebContentsObserver
{
26 explicit AppActivity(apps::ShellAppWindow
* app_window
);
27 virtual ~AppActivity();
31 virtual athena::ActivityViewModel
* GetActivityViewModel() OVERRIDE
;
34 virtual void Init() OVERRIDE
;
35 virtual SkColor
GetRepresentativeColor() OVERRIDE
;
36 virtual base::string16
GetTitle() OVERRIDE
;
37 virtual views::View
* GetContentsView() OVERRIDE
;
39 // content::WebContentsObserver:
40 virtual void TitleWasSet(content::NavigationEntry
* entry
,
41 bool explicit_set
) OVERRIDE
;
42 virtual void DidUpdateFaviconURL(
43 const std::vector
<content::FaviconURL
>& candidates
) OVERRIDE
;
46 scoped_ptr
<apps::ShellAppWindow
> app_window_
;
47 views::WebView
* web_view_
;
49 DISALLOW_COPY_AND_ASSIGN(AppActivity
);
54 #endif // ATHENA_CONTENT_APP_ACTIVITY_H_