summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/chrome_app_bindings.h
blob: 1292eb21cf84ecb21564a03d203c6ce841d4d8fd (plain)
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
// Copyright (c) 2010 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.

// The AppObjectExtension is a v8 extension that creates an object
// at window.chrome.app.  This object allows javascript to get details
// on the app state of the page.
// The read-only property app.isInstalled is true if the current page is
// within the extent of an installed, enabled app.

#ifndef CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_
#define CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_
#pragma once

namespace v8 {
class Extension;
}

namespace extensions_v8 {

class ChromeAppExtension {
 public:
  static v8::Extension* Get();
};

}  // namespace extensions_v8

#endif  // CHROME_RENDERER_EXTENSIONS_CHROME_APP_BINDINGS_H_