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

Side by Side Diff: chrome/browser/web_applications/web_app_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: fix test for XP 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEB_APPLICATIONS_WEB_APP_WIN_H_ 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ 6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "chrome/browser/web_applications/web_app.h" 9 #include "chrome/browser/web_applications/web_app.h"
10 10
11 class Profile;
12
11 namespace content { 13 namespace content {
12 class WebContents; 14 class WebContents;
13 } 15 }
14 16
17 namespace extensions {
18 class Extension;
19 }
20
15 namespace gfx { 21 namespace gfx {
16 class ImageFamily; 22 class ImageFamily;
17 } 23 }
18 24
19 namespace web_app { 25 namespace web_app {
20 26
21 // Create a shortcut in the given web app data dir, returning the name of the 27 // Create a shortcut in the given web app data dir, returning the name of the
22 // created shortcut. 28 // created shortcut.
23 base::FilePath CreateShortcutInWebAppDir(const base::FilePath& web_app_path, 29 base::FilePath CreateShortcutInWebAppDir(const base::FilePath& web_app_path,
24 const ShortcutInfo& shortcut_info); 30 const ShortcutInfo& shortcut_info);
25 31
32 // Update the relaunch details for the given app's window, making the taskbar
33 // group's "Pin to the taskbar" button function correctly.
34 void UpdateRelaunchDetailsForApp(Profile* profile,
35 const extensions::Extension* extension,
36 HWND hwnd);
37
26 namespace internals { 38 namespace internals {
27 39
28 bool CheckAndSaveIcon(const base::FilePath& icon_file, 40 bool CheckAndSaveIcon(const base::FilePath& icon_file,
29 const gfx::ImageFamily& image); 41 const gfx::ImageFamily& image);
30 42
31 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, 43 base::FilePath GetIconFilePath(const base::FilePath& web_app_path,
32 const base::string16& title); 44 const base::string16& title);
33 45
34 } // namespace internals 46 } // namespace internals
35 47
36 } // namespace web_app 48 } // namespace web_app
37 49
38 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ 50 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_window_property_manager_win.cc ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698