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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager_util.h

Issue 9594037: Revert 124975 - [filebrowser] Introduce "Open" action for supported file types (e.g. pdf). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Opens file in the browser. 59 // Opens file in the browser.
60 // TODO(kaznacheev): remove the obsolete enqueue parameter. 60 // TODO(kaznacheev): remove the obsolete enqueue parameter.
61 void ViewFile(const FilePath& full_path, bool enqueue); 61 void ViewFile(const FilePath& full_path, bool enqueue);
62 62
63 // Tries to open |file| directly in the browser. Returns false if the browser 63 // Tries to open |file| directly in the browser. Returns false if the browser
64 // can't directly handle this type of file. 64 // can't directly handle this type of file.
65 bool TryViewingFile(const FilePath& file); 65 bool TryViewingFile(const FilePath& file);
66 66
67 void InstallCRX(Profile* profile, const FilePath& full_path); 67 void InstallCRX(Profile* profile, const FilePath& full_path);
68 68
69 bool ShouldBeOpenedWithPdfPlugin(const char* file_extension);
70
71 } // namespace file_manager_util 69 } // namespace file_manager_util
72 70
73 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_ 71 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698