| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ |
| 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ | 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void NativeWindowChanged(NativeAppWindow* native_app_window) override; | 35 void NativeWindowChanged(NativeAppWindow* native_app_window) override; |
| 36 void NativeWindowClosed() override; | 36 void NativeWindowClosed() override; |
| 37 void DispatchWindowShownForTests() const override; | 37 void DispatchWindowShownForTests() const override; |
| 38 void OnWindowReady() override; | 38 void OnWindowReady() override; |
| 39 content::WebContents* GetWebContents() const override; | 39 content::WebContents* GetWebContents() const override; |
| 40 WindowController* GetWindowController() const override; | 40 WindowController* GetWindowController() const override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // content::WebContentsObserver | 43 // content::WebContentsObserver |
| 44 bool OnMessageReceived(const IPC::Message& message) override; | 44 bool OnMessageReceived(const IPC::Message& message) override; |
| 45 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; |
| 45 | 46 |
| 46 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); | 47 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); |
| 47 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); | 48 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); |
| 48 | 49 |
| 49 AppWindow* host_; // This class is owned by |host_| | 50 AppWindow* host_; // This class is owned by |host_| |
| 50 GURL url_; | 51 GURL url_; |
| 51 scoped_ptr<content::WebContents> web_contents_; | 52 scoped_ptr<content::WebContents> web_contents_; |
| 52 bool is_blocking_requests_; | 53 bool is_blocking_requests_; |
| 53 bool is_window_ready_; | 54 bool is_window_ready_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); | 56 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace extensions | 59 } // namespace extensions |
| 59 | 60 |
| 60 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ | 61 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ |
| OLD | NEW |