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

Side by Side Diff: athena/main/web_task.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, 7 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
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_TASK_H_
6 #define ATHENA_MAIN_WEB_TASK_H_
7
8 #include "athena/task/public/task.h"
9 #include "content/public/browser/web_contents_observer.h"
10
11 namespace content {
12 class WebContents;
13 }
14
15 class WebTask : public athena::Task,
16 public content::WebContentsObserver {
17 public:
18 explicit WebTask(content::WebContents* contents);
19 virtual ~WebTask();
20
21 protected:
22 // Task:
23 virtual SkColor GetRepresentativeColor() OVERRIDE;
24 virtual std::string GetTitle() OVERRIDE;
25 virtual aura::Window* GetNativeWindow() OVERRIDE;
26
27 // content::WebContentsObserver:
28 virtual void TitleWasSet(content::NavigationEntry* entry,
29 bool explicit_set) OVERRIDE;
30 virtual void DidUpdateFaviconURL(
31 const std::vector<content::FaviconURL>& candidates) OVERRIDE;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(WebTask);
35 };
36
37 #endif // ATHENA_MAIN_WEB_TASK_H_
OLDNEW
« no previous file with comments | « athena/main/placeholder.cc ('k') | athena/main/web_task.cc » ('j') | athena/task/public/task.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698