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

Side by Side Diff: chrome/browser/platform_util_internal.h

Issue 209613002: Download shelf autohides on showing in shell, just same as regular open Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser and unit tests. Renamed 'UserActed' to 'OpenedOrShown'. Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/platform_util.cc ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PLATFORM_UTIL_INTERNAL_H_ 5 #ifndef CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
6 #define CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_ 6 #define CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
7 7
8 #include "chrome/browser/platform_util.h" 8 #include "chrome/browser/platform_util.h"
9 9
10 namespace base { 10 namespace base {
11 class FilePath; 11 class FilePath;
12 } 12 }
13 13
14 namespace platform_util { 14 namespace platform_util {
15 namespace internal { 15 namespace internal {
16 16
17 // Called by platform_util.cc on desktop platforms to invoke platform specific 17 // Called by platform_util.cc on desktop platforms to invoke platform specific
18 // logic to open |path| using a suitable handler. |path| has been verified to be 18 // logic to open |path| using a suitable handler. |path| has been verified to be
19 // of type |type|. 19 // of type |type|.
20 // Always called on the blocking pool. 20 // Always called on the blocking pool.
21 void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type); 21 void PlatformOpenVerifiedItem(const base::FilePath& path, OpenItemType type);
22 22
23 // Called by platform_util.cc on desktop platforms to invoke platform specific
24 // logic to open the folder containing the item specified by |full_path| in the
25 // desktop's default manner.
26 void PlatformShowItemInFolder(Profile* profile,
27 const base::FilePath& full_path);
28
23 // Prevent shell or external applications from being invoked during testing. 29 // Prevent shell or external applications from being invoked during testing.
24 void DisableShellOperationsForTesting(); 30 void DisableShellOperationsForTesting();
25 31
26 } // namespace internal 32 } // namespace internal
27 } // namespace platform_util 33 } // namespace platform_util
28 34
29 #endif // CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_ 35 #endif // CHROME_BROWSER_PLATFORM_UTIL_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/platform_util.cc ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698