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

Side by Side Diff: chrome/browser/web_applications/update_relaunch_details_worker_win.h

Issue 258243002: Support "Pin to taskbar" for hosted app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_
7
8 #include "chrome/browser/shell_integration.h"
jackhou1 2014/04/29 08:50:18 You probably need to sync. It's web_app::ShortcutI
calamity 2014/05/19 06:11:54 Done.
9 #include "chrome/browser/web_applications/web_app.h"
10
11 namespace extensions {
12 class Extension;
13 }
14
15 namespace web_app {
16
17 // UpdateRelaunchDetailsWorker holds all context data needed for updating the
18 // relaunch details of an app.
19 class UpdateRelaunchDetailsWorker {
20 public:
21 UpdateRelaunchDetailsWorker(Profile* profile,
22 const extensions::Extension* extension,
23 HWND hwnd);
24
25 void Run();
26
27 private:
28 ~UpdateRelaunchDetailsWorker();
29
30 void OnShortcutInfoLoaded(
31 const ShellIntegration::ShortcutInfo& shortcut_info);
32
33 // Sets the relaunch data so "Pin this program to taskbar" has the app's
34 // information.
35 void CreateIconAndSetRelaunchDetails(
36 const base::FilePath& web_app_path,
37 const base::FilePath& icon_file,
38 const ShellIntegration::ShortcutInfo& shortcut_info);
39
40 void DeleteMeOnUIThread();
41
42 Profile* profile_;
43
44 const extensions::Extension* extension_;
45
46 HWND hwnd_;
47
48 DISALLOW_COPY_AND_ASSIGN(UpdateRelaunchDetailsWorker);
49 };
50
51 } // namespace web_app
52
53 #endif // CHROME_BROWSER_WEB_APPLICATIONS_UPDATE_RELAUNCH_DETAILS_WORKER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698