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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 27 matching lines...) Expand all Loading... |
38 const GURL& url) override; | 38 const GURL& url) override; |
39 void LoadContents(int32_t creator_process_id) override; | 39 void LoadContents(int32_t creator_process_id) override; |
40 void NativeWindowChanged(NativeAppWindow* native_app_window) override; | 40 void NativeWindowChanged(NativeAppWindow* native_app_window) override; |
41 void NativeWindowClosed() override; | 41 void NativeWindowClosed() override; |
42 void OnWindowReady() override; | 42 void OnWindowReady() override; |
43 content::WebContents* GetWebContents() const override; | 43 content::WebContents* GetWebContents() const override; |
44 WindowController* GetWindowController() const override; | 44 WindowController* GetWindowController() const override; |
45 | 45 |
46 private: | 46 private: |
47 // content::WebContentsObserver | 47 // content::WebContentsObserver |
48 bool OnMessageReceived(const IPC::Message& message) override; | 48 bool OnMessageReceived(const IPC::Message& message, |
| 49 content::RenderFrameHost* sender) override; |
49 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; | 50 void ReadyToCommitNavigation(content::NavigationHandle* handle) override; |
50 | 51 |
51 void UpdateDraggableRegions(const std::vector<DraggableRegion>& regions); | 52 void UpdateDraggableRegions(content::RenderFrameHost* sender, |
| 53 const std::vector<DraggableRegion>& regions); |
52 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); | 54 void SuspendRenderFrameHost(content::RenderFrameHost* rfh); |
53 | 55 |
54 AppWindow* host_; // This class is owned by |host_| | 56 AppWindow* host_; // This class is owned by |host_| |
55 GURL url_; | 57 GURL url_; |
56 std::unique_ptr<content::WebContents> web_contents_; | 58 std::unique_ptr<content::WebContents> web_contents_; |
57 bool is_blocking_requests_; | 59 bool is_blocking_requests_; |
58 bool is_window_ready_; | 60 bool is_window_ready_; |
59 | 61 |
60 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); | 62 DISALLOW_COPY_AND_ASSIGN(AppWindowContentsImpl); |
61 }; | 63 }; |
62 | 64 |
63 } // namespace extensions | 65 } // namespace extensions |
64 | 66 |
65 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ | 67 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_CONTENTS_H_ |
OLD | NEW |