| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // Sets the transparency of the guest. | 77 // Sets the transparency of the guest. |
| 78 void SetAllowTransparency(bool allow); | 78 void SetAllowTransparency(bool allow); |
| 79 | 79 |
| 80 // GuestViewBase implementation. | 80 // GuestViewBase implementation. |
| 81 virtual const char* GetAPINamespace() const OVERRIDE; | 81 virtual const char* GetAPINamespace() const OVERRIDE; |
| 82 virtual int GetTaskPrefix() const OVERRIDE; | 82 virtual int GetTaskPrefix() const OVERRIDE; |
| 83 virtual void CreateWebContents( | 83 virtual void CreateWebContents( |
| 84 const std::string& embedder_extension_id, | 84 const std::string& embedder_extension_id, |
| 85 int embedder_render_process_id, | 85 int embedder_render_process_id, |
| 86 const GURL& embedder_site_url, |
| 86 const base::DictionaryValue& create_params, | 87 const base::DictionaryValue& create_params, |
| 87 const WebContentsCreatedCallback& callback) OVERRIDE; | 88 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 88 virtual void DidAttachToEmbedder() OVERRIDE; | 89 virtual void DidAttachToEmbedder() OVERRIDE; |
| 89 virtual void DidInitialize() OVERRIDE; | 90 virtual void DidInitialize() OVERRIDE; |
| 90 virtual void DidStopLoading() OVERRIDE; | 91 virtual void DidStopLoading() OVERRIDE; |
| 91 virtual void EmbedderDestroyed() OVERRIDE; | 92 virtual void EmbedderDestroyed() OVERRIDE; |
| 92 virtual void GuestDestroyed() OVERRIDE; | 93 virtual void GuestDestroyed() OVERRIDE; |
| 93 virtual void GuestReady() OVERRIDE; | 94 virtual void GuestReady() OVERRIDE; |
| 94 virtual void GuestSizeChangedDueToAutoSize( | 95 virtual void GuestSizeChangedDueToAutoSize( |
| 95 const gfx::Size& old_size, | 96 const gfx::Size& old_size, |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 | 359 |
| 359 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 360 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
| 360 PendingWindowMap pending_new_windows_; | 361 PendingWindowMap pending_new_windows_; |
| 361 | 362 |
| 362 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 363 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 363 }; | 364 }; |
| 364 | 365 |
| 365 } // namespace extensions | 366 } // namespace extensions |
| 366 | 367 |
| 367 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 368 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |