forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedia_galleries_custom_bindings.h
33 lines (23 loc) · 1.19 KB
/
media_galleries_custom_bindings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_RENDERER_EXTENSIONS_MEDIA_GALLERIES_CUSTOM_BINDINGS_H_
#define CHROME_RENDERER_EXTENSIONS_MEDIA_GALLERIES_CUSTOM_BINDINGS_H_
#include "chrome/renderer/extensions/chrome_v8_extension.h"
namespace extensions {
// Implements custom bindings for the media galleries API.
class MediaGalleriesCustomBindings : public ChromeV8Extension {
public:
MediaGalleriesCustomBindings();
private:
// FileSystemObject GetMediaFileSystem(string file_system_url): construct
// a file system object from a file system url.
v8::Handle<v8::Value> GetMediaFileSystemObject(const v8::Arguments& args);
// DirectoryReader GetMediaFileSystem(FileEntry): synchronously return a
// directory reader for a virtual directory. The directory will contain
// all of the thumbnails embedded in the passed file.
v8::Handle<v8::Value> ExtractEmbeddedThumbnails(const v8::Arguments& args);
DISALLOW_COPY_AND_ASSIGN(MediaGalleriesCustomBindings);
};
} // extensions
#endif // CHROME_RENDERER_EXTENSIONS_MEDIA_GALLERIES_CUSTOM_BINDINGS_H_