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

Side by Side Diff: chrome/browser/task_management/providers/web_contents/extension_task.h

Issue 2006423002: Task Manager: Make double-clicking on an extension do something useful. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tm_selection
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_ 5 #ifndef CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_
6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_ 6 #define CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 public extensions::IconImage::Observer { 24 public extensions::IconImage::Observer {
25 public: 25 public:
26 ExtensionTask(content::WebContents* web_contents, 26 ExtensionTask(content::WebContents* web_contents,
27 const extensions::Extension* extension, 27 const extensions::Extension* extension,
28 extensions::ViewType view_type); 28 extensions::ViewType view_type);
29 ~ExtensionTask() override; 29 ~ExtensionTask() override;
30 30
31 // task_management::RendererTask: 31 // task_management::RendererTask:
32 void UpdateTitle() override; 32 void UpdateTitle() override;
33 void UpdateFavicon() override; 33 void UpdateFavicon() override;
34 void Activate() override;
34 Type GetType() const override; 35 Type GetType() const override;
35 36
36 // extensions::IconImage::Observer 37 // extensions::IconImage::Observer
37 void OnExtensionIconImageChanged(extensions::IconImage* image) override; 38 void OnExtensionIconImageChanged(extensions::IconImage* image) override;
38 39
39 private: 40 private:
40 // If |extension| is nullptr, this method will get the title from 41 // If |extension| is nullptr, this method will get the title from
41 // the |web_contents|. 42 // the |web_contents|.
42 base::string16 GetExtensionTitle( 43 base::string16 GetExtensionTitle(
43 content::WebContents* web_contents, 44 content::WebContents* web_contents,
44 const extensions::Extension* extension, 45 const extensions::Extension* extension,
45 extensions::ViewType view_type) const; 46 extensions::ViewType view_type) const;
46 47
47 // This is called upon the creation of this task to load the extension icon 48 // This is called upon the creation of this task to load the extension icon
48 // for the first time if any. 49 // for the first time if any.
49 void LoadExtensionIcon(const extensions::Extension* extension); 50 void LoadExtensionIcon(const extensions::Extension* extension);
50 51
51 // The favicon of the extension represented by this task. 52 // The favicon of the extension represented by this task.
52 std::unique_ptr<extensions::IconImage> extension_icon_; 53 std::unique_ptr<extensions::IconImage> extension_icon_;
54 std::string extension_id_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ExtensionTask); 56 DISALLOW_COPY_AND_ASSIGN(ExtensionTask);
55 }; 57 };
56 58
57 } // namespace task_management 59 } // namespace task_management
58 60
59 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_ H_ 61 #endif // CHROME_BROWSER_TASK_MANAGEMENT_PROVIDERS_WEB_CONTENTS_EXTENSION_TASK_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698