Initial empty api_web_contents.

This commit is contained in:
Cheng Zhao 2014-04-24 16:45:25 +08:00
parent 486dd9edfa
commit 26e93e8798
5 changed files with 95 additions and 0 deletions

View file

@ -11,6 +11,7 @@
#include "base/memory/scoped_ptr.h"
#include "atom/browser/native_window_observer.h"
#include "atom/browser/api/event_emitter.h"
#include "native_mate/handle.h"
class GURL;
@ -29,6 +30,8 @@ class NativeWindow;
namespace api {
class WebContents;
class Window : public mate::EventEmitter,
public NativeWindowObserver {
public:
@ -100,6 +103,8 @@ class Window : public mate::EventEmitter,
void CapturePage(mate::Arguments* args);
// APIs for WebContents.
mate::Handle<WebContents> GetWebContents(v8::Isolate* isolate) const;
mate::Handle<WebContents> GetDevToolsWebContents(v8::Isolate* isolate) const;
string16 GetPageTitle();
bool IsLoading();
bool IsWaitingForResponse();