blob: 04f7194aa75e0224f875271007d157d19dee7b70 [file] [log] [blame]
[email protected]1eea3092012-05-25 04:12:181// 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
3// found in the LICENSE file.
4
hashimotof784afd2014-09-05 02:38:315#ifndef EXTENSIONS_RENDERER_APP_WINDOW_CUSTOM_BINDINGS_H_
6#define EXTENSIONS_RENDERER_APP_WINDOW_CUSTOM_BINDINGS_H_
[email protected]1eea3092012-05-25 04:12:187
[email protected]bcd9580f2014-04-17 19:17:598#include "extensions/renderer/object_backed_native_handler.h"
[email protected]1eea3092012-05-25 04:12:189
[email protected]1eea3092012-05-25 04:12:1810namespace extensions {
[email protected]8fe74bf2012-08-07 21:08:4211class Dispatcher;
[email protected]1eea3092012-05-25 04:12:1812
[email protected]f0233ff2012-07-20 20:14:5013// Implements custom bindings for the app.window API.
[email protected]bcd9580f2014-04-17 19:17:5914class AppWindowCustomBindings : public ObjectBackedNativeHandler {
[email protected]1eea3092012-05-25 04:12:1815 public:
[email protected]bcd9580f2014-04-17 19:17:5916 AppWindowCustomBindings(Dispatcher* dispatcher, ScriptContext* context);
[email protected]1eea3092012-05-25 04:12:1817
18 private:
[email protected]d8c5fbb2013-06-14 11:35:2519 void GetView(const v8::FunctionCallbackInfo<v8::Value>& args);
[email protected]1eea3092012-05-25 04:12:1820
[email protected]1f4da9e2013-06-27 05:23:4421 // Return string containing the HTML <template> for the <window-controls>
22 // custom element.
23 void GetWindowControlsHtmlTemplate(
24 const v8::FunctionCallbackInfo<v8::Value>& args);
25
[email protected]bcd9580f2014-04-17 19:17:5926 // Dispatcher handle. Not owned.
27 Dispatcher* dispatcher_;
28
[email protected]1eea3092012-05-25 04:12:1829 DISALLOW_COPY_AND_ASSIGN(AppWindowCustomBindings);
30};
31
32} // namespace extensions
33
hashimotof784afd2014-09-05 02:38:3134#endif // EXTENSIONS_RENDERER_APP_WINDOW_CUSTOM_BINDINGS_H_