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

Side by Side Diff: content/public/common/registry_utils_win.h

Issue 324593004: Windows: Add an "Open in Adobe Reader" menu item for PDF files in the download shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 6 years, 6 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
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_
6 #define CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_
7
8 #include "base/strings/string16.h"
9 #include "content/common/content_export.h"
10
11 #if !defined(OS_WIN)
12 #error "Windows only header"
13 #endif
14
15 namespace base {
16 class FilePath;
17 }
18
19 namespace content {
20
21 // Windows registry path constants and utility functions.
jam 2014/06/19 16:37:07 since this is generic-windows code with no content
Lei Zhang 2014/06/19 18:12:30 |kRegistryAcrobat| and |kRegistryAcrobatReader| do
Lei Zhang 2014/06/19 18:19:44 base/win/win_util.h seems to discourage stuffing m
Lei Zhang 2014/06/20 06:22:51 I decided to just leave content/ alone.
22 // When NPAPI is fully removed, this can be moved into chrome/.
23
24 // The key path and key name required to register applications on Windows such
25 // that it can be launched from Start->Run just by name (e.g. chrome.exe).
26 CONTENT_EXPORT extern const base::char16 kRegistryAppsKey[];
27 CONTENT_EXPORT extern const base::char16 kRegistryPath[];
28
29 // The key paths under |kRegistryAppsKey| to look for Adobe Acrobat and
30 // Acrobat Reader, respectively.
31 CONTENT_EXPORT extern const base::char16 kRegistryAcrobat[];
32 CONTENT_EXPORT extern const base::char16 kRegistryAcrobatReader[];
33
34 // Gets the installed path for a registered app. Returns true on success and
35 // write the path for |app| to |out|.
36 CONTENT_EXPORT bool GetInstalledPath(const base::char16* app,
37 base::FilePath* out);
38
39 } // namespace content
40
41 #endif // CONTENT_PUBLIC_COMMON_REGISTRY_UTILS_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698