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

Side by Side Diff: athena/main/web_activity.h

Issue 302683002: athena: Add the concept of Activity and related managers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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/main/sample_activity.cc ('k') | athena/main/web_activity.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef ATHENA_MAIN_WEB_ACTIVITY_H_
6 #define ATHENA_MAIN_WEB_ACTIVITY_H_
7
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"
11
12 namespace content {
13 class WebContents;
14 }
15
16 class WebActivity : public athena::Activity,
17 public athena::ActivityViewModel,
18 public content::WebContentsObserver {
19 public:
20 explicit WebActivity(content::WebContents* contents);
21 virtual ~WebActivity();
22
23 protected:
24 // athena::Activity:
25 virtual athena::ActivityViewModel* GetActivityViewModel() OVERRIDE;
26
27 // athena::ActivityViewModel:
28 virtual SkColor GetRepresentativeColor() OVERRIDE;
29 virtual std::string GetTitle() OVERRIDE;
30 virtual aura::Window* GetNativeWindow() OVERRIDE;
31
32 // content::WebContentsObserver:
33 virtual void TitleWasSet(content::NavigationEntry* entry,
34 bool explicit_set) OVERRIDE;
35 virtual void DidUpdateFaviconURL(
36 const std::vector<content::FaviconURL>& candidates) OVERRIDE;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(WebActivity);
40 };
41
42 #endif // ATHENA_MAIN_WEB_ACTIVITY_H_
OLDNEW
« no previous file with comments | « athena/main/sample_activity.cc ('k') | athena/main/web_activity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698