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

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

Issue 213113005: Remove web_app_ui.[cc|h]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes for Win Created 6 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 | Annotate | Revision Log
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/shell_integration.h" 9 #include "chrome/browser/shell_integration.h"
10 10
11 namespace content {
12 class WebContents;
13 }
14
11 namespace gfx { 15 namespace gfx {
12 class ImageFamily; 16 class ImageFamily;
13 } 17 }
14 18
15 namespace web_app { 19 namespace web_app {
16 20
17 // Create a shortcut in the given web app data dir, returning the name of the 21 // Create a shortcut in the given web app data dir, returning the name of the
18 // created shortcut. 22 // created shortcut.
19 base::FilePath CreateShortcutInWebAppDir( 23 base::FilePath CreateShortcutInWebAppDir(
20 const base::FilePath& web_app_path, 24 const base::FilePath& web_app_path,
21 const ShellIntegration::ShortcutInfo& shortcut_info); 25 const ShellIntegration::ShortcutInfo& shortcut_info);
22 26
23 namespace internals { 27 namespace internals {
24 28
25 bool CheckAndSaveIcon(const base::FilePath& icon_file, 29 bool CheckAndSaveIcon(const base::FilePath& icon_file,
26 const gfx::ImageFamily& image); 30 const gfx::ImageFamily& image);
27 31
28 } // namespace internals 32 } // namespace internals
29 33
34 // Updates web app shortcut of the WebContents. This function checks and
35 // updates web app icon and shortcuts if needed. For icon, the check is based
36 // on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu
37 // and quick launch (as well as pinned shortcut) for shortcut and only
38 // updates (recreates) them if they exits.
39 void UpdateShortcutForTabContents(content::WebContents* web_contents);
40
30 } // namespace web_app 41 } // namespace web_app
31 42
32 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_ 43 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698