Move navigator related APIs to webContents.

This commit is contained in:
Cheng Zhao 2014-04-25 12:52:30 +08:00
parent e70d195cde
commit c8a82e6e50
5 changed files with 67 additions and 74 deletions

View file

@ -103,18 +103,6 @@ class Window : public mate::EventEmitter,
mate::Handle<WebContents> GetWebContents(v8::Isolate* isolate) const;
mate::Handle<WebContents> GetDevToolsWebContents(v8::Isolate* isolate) const;
// APIs for NavigationController.
void LoadURL(const GURL& url);
bool CanGoBack();
bool CanGoForward();
bool CanGoToOffset(int offset);
void GoBack();
void GoForward();
void GoToIndex(int index);
void GoToOffset(int offset);
void Reload();
void ReloadIgnoringCache();
scoped_ptr<NativeWindow> window_;
DISALLOW_COPY_AND_ASSIGN(Window);