🎁 Add 'win.closeFilePreview()'

This commit is contained in:
Daniel Pham 2016-11-21 13:30:13 -05:00 committed by Kevin Sawicki
parent ccabee764b
commit d5a0dd39a1
7 changed files with 23 additions and 0 deletions

View file

@ -179,8 +179,11 @@ class NativeWindow : public base::SupportsUserData,
double GetAspectRatio();
gfx::Size GetAspectRatioExtraSize();
virtual void SetAspectRatio(double aspect_ratio, const gfx::Size& extra_size);
// File preview APIs.
virtual void PreviewFile(const std::string& path,
const std::string& display_name);
virtual void CloseFilePreview();
base::WeakPtr<NativeWindow> GetWeakPtr() {
return weak_factory_.GetWeakPtr();