Add web-view module.

This commit is contained in:
Cheng Zhao 2014-06-16 14:27:57 +08:00
parent 386ef9197c
commit accfabf569
5 changed files with 117 additions and 0 deletions

View file

@ -0,0 +1,43 @@
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_RENDERER_API_ATOM_API_WEB_VIEW_H_
#define ATOM_RENDERER_API_ATOM_API_WEB_VIEW_H_
#include "native_mate/handle.h"
#include "native_mate/wrappable.h"
namespace WebKit {
class WebView;
}
namespace atom {
namespace api {
class WebView : public mate::Wrappable {
public:
static mate::Handle<WebView> Create(v8::Isolate* isolate);
private:
WebView();
virtual ~WebView();
void SetZoomLevel(double level);
double GetZoomLevel() const;
// mate::Wrappable:
virtual mate::ObjectTemplateBuilder GetObjectTemplateBuilder(
v8::Isolate* isolate);
WebKit::WebView* web_view_;
DISALLOW_COPY_AND_ASSIGN(WebView);
};
} // namespace api
} // namespace atom
#endif // ATOM_RENDERER_API_ATOM_API_WEB_VIEW_H_