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

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

Issue 1026113003: Don't send a SHChangeNotify for creating an app icon when creating a shortcut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits Created 5 years, 9 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
(...skipping 19 matching lines...) Expand all
30 const ShortcutInfo& shortcut_info); 30 const ShortcutInfo& shortcut_info);
31 31
32 // Update the relaunch details for the given app's window, making the taskbar 32 // Update the relaunch details for the given app's window, making the taskbar
33 // group's "Pin to the taskbar" button function correctly. 33 // group's "Pin to the taskbar" button function correctly.
34 void UpdateRelaunchDetailsForApp(Profile* profile, 34 void UpdateRelaunchDetailsForApp(Profile* profile,
35 const extensions::Extension* extension, 35 const extensions::Extension* extension,
36 HWND hwnd); 36 HWND hwnd);
37 37
38 namespace internals { 38 namespace internals {
39 39
40 // Saves |image| to |icon_file| if the file is outdated. Returns true if
41 // icon_file is up to date or successfully updated.
42 // If |refresh_shell_icon_cache| is true, the shell's icon cache will be
43 // refreshed, ensuring the correct icon is displayed, but causing a flicker.
44 // Refreshing the icon cache is not necessary on shortcut creation as the shell
45 // will be notified when the shortcut is created.
40 bool CheckAndSaveIcon(const base::FilePath& icon_file, 46 bool CheckAndSaveIcon(const base::FilePath& icon_file,
41 const gfx::ImageFamily& image); 47 const gfx::ImageFamily& image,
48 bool refresh_shell_icon_cache);
42 49
43 base::FilePath GetIconFilePath(const base::FilePath& web_app_path, 50 base::FilePath GetIconFilePath(const base::FilePath& web_app_path,
44 const base::string16& title); 51 const base::string16& title);
45 52
46 } // namespace internals 53 } // namespace internals
47 54
48 } // namespace web_app 55 } // namespace web_app
49 56
50 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ 57 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/web_applications/update_shortcut_worker_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