OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/web_applications/web_app.h" | 5 #include "chrome/browser/web_applications/web_app.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 #endif // defined(OS_WIN) | 10 #endif // defined(OS_WIN) |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "chrome/common/web_apps.h" | 35 #include "chrome/common/web_apps.h" |
36 | 36 |
37 #if defined(OS_LINUX) | 37 #if defined(OS_LINUX) |
38 #include "base/environment.h" | 38 #include "base/environment.h" |
39 #endif // defined(OS_LINUX) | 39 #endif // defined(OS_LINUX) |
40 | 40 |
41 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
42 #include "base/win/win_util.h" | 42 #include "base/win/win_util.h" |
43 #include "chrome/common/notification_details.h" | 43 #include "chrome/common/notification_details.h" |
44 #include "chrome/common/notification_source.h" | 44 #include "chrome/common/notification_source.h" |
45 #include "gfx/icon_util.h" | 45 #include "ui/gfx/icon_util.h" |
46 #endif // defined(OS_WIN) | 46 #endif // defined(OS_WIN) |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
51 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); | 51 const FilePath::CharType kIconChecksumFileExt[] = FILE_PATH_LITERAL(".ico.md5"); |
52 | 52 |
53 // Returns true if |ch| is in visible ASCII range and not one of | 53 // Returns true if |ch| is in visible ASCII range and not one of |
54 // "/ \ : * ? " < > | ; ,". | 54 // "/ \ : * ? " < > | ; ,". |
55 bool IsValidFilePathChar(char16 c) { | 55 bool IsValidFilePathChar(char16 c) { |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 790 |
791 void UpdateShortcutForTabContents(TabContents* tab_contents) { | 791 void UpdateShortcutForTabContents(TabContents* tab_contents) { |
792 #if defined(OS_WIN) | 792 #if defined(OS_WIN) |
793 // UpdateShortcutWorker will delete itself when it's done. | 793 // UpdateShortcutWorker will delete itself when it's done. |
794 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); | 794 UpdateShortcutWorker* worker = new UpdateShortcutWorker(tab_contents); |
795 worker->Run(); | 795 worker->Run(); |
796 #endif // defined(OS_WIN) | 796 #endif // defined(OS_WIN) |
797 } | 797 } |
798 | 798 |
799 }; // namespace web_app | 799 }; // namespace web_app |
OLD | NEW |