OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const char* GetAPINamespace() const override; | 87 const char* GetAPINamespace() const override; |
88 int GetTaskPrefix() const override; | 88 int GetTaskPrefix() const override; |
89 void CreateWebContents(const std::string& embedder_extension_id, | 89 void CreateWebContents(const std::string& embedder_extension_id, |
90 int embedder_render_process_id, | 90 int embedder_render_process_id, |
91 const GURL& embedder_site_url, | 91 const GURL& embedder_site_url, |
92 const base::DictionaryValue& create_params, | 92 const base::DictionaryValue& create_params, |
93 const WebContentsCreatedCallback& callback) override; | 93 const WebContentsCreatedCallback& callback) override; |
94 void DidAttachToEmbedder() override; | 94 void DidAttachToEmbedder() override; |
95 void DidInitialize() override; | 95 void DidInitialize() override; |
96 void DidStopLoading() override; | 96 void DidStopLoading() override; |
| 97 void WillDetachFromEmbedder() override; |
97 void EmbedderDestroyed() override; | 98 void EmbedderDestroyed() override; |
98 void GuestDestroyed() override; | 99 void GuestDestroyed() override; |
99 void GuestReady() override; | 100 void GuestReady() override; |
100 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, | 101 void GuestSizeChangedDueToAutoSize(const gfx::Size& old_size, |
101 const gfx::Size& new_size) override; | 102 const gfx::Size& new_size) override; |
102 bool IsAutoSizeSupported() const override; | 103 bool IsAutoSizeSupported() const override; |
103 bool IsDragAndDropEnabled() const override; | 104 bool IsDragAndDropEnabled() const override; |
104 void WillAttachToEmbedder() override; | 105 void WillAttachToEmbedder() override; |
105 void WillDestroy() override; | 106 void WillDestroy() override; |
106 | 107 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 // This is used to ensure pending tasks will not fire after this object is | 366 // This is used to ensure pending tasks will not fire after this object is |
366 // destroyed. | 367 // destroyed. |
367 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 368 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
368 | 369 |
369 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 370 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
370 }; | 371 }; |
371 | 372 |
372 } // namespace extensions | 373 } // namespace extensions |
373 | 374 |
374 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 375 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |