Prevent chrome://net-internals/#export from flickering
[chromium-blink-merge.git] / chrome / browser / web_applications / web_app_win.h
blobb86f91a50221670a926894bbcbc33f2ba2eb2e26
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
6 #define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_
8 #include "base/files/file_path.h"
9 #include "chrome/browser/web_applications/web_app.h"
11 class Profile;
13 namespace content {
14 class WebContents;
17 namespace extensions {
18 class Extension;
21 namespace gfx {
22 class ImageFamily;
25 namespace web_app {
27 // Create a shortcut in the given web app data dir, returning the name of the
28 // created shortcut.
29 base::FilePath CreateShortcutInWebAppDir(const base::FilePath& web_app_path,
30 const ShortcutInfo& shortcut_info);
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);
38 namespace internals {
40 bool CheckAndSaveIcon(const base::FilePath& icon_file,
41 const gfx::ImageFamily& image);
43 base::FilePath GetIconFilePath(const base::FilePath& web_app_path,
44 const base::string16& title);
46 } // namespace internals
48 } // namespace web_app
50 #endif // CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_WIN_H_