| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 int request_id, | 67 int request_id, |
| 68 const WebViewGuestDelegate::MenuItemVector* items); | 68 const WebViewGuestDelegate::MenuItemVector* items); |
| 69 | 69 |
| 70 // Sets the frame name of the guest. | 70 // Sets the frame name of the guest. |
| 71 void SetName(const std::string& name); | 71 void SetName(const std::string& name); |
| 72 | 72 |
| 73 // Set the zoom factor. | 73 // Set the zoom factor. |
| 74 void SetZoom(double zoom_factor); | 74 void SetZoom(double zoom_factor); |
| 75 | 75 |
| 76 // GuestViewBase implementation. | 76 // GuestViewBase implementation. |
| 77 virtual const char* GetAPINamespace() OVERRIDE; | 77 virtual const char* GetAPINamespace() const OVERRIDE; |
| 78 virtual int GetTaskPrefix() const OVERRIDE; |
| 78 virtual void CreateWebContents( | 79 virtual void CreateWebContents( |
| 79 const std::string& embedder_extension_id, | 80 const std::string& embedder_extension_id, |
| 80 int embedder_render_process_id, | 81 int embedder_render_process_id, |
| 81 const base::DictionaryValue& create_params, | 82 const base::DictionaryValue& create_params, |
| 82 const WebContentsCreatedCallback& callback) OVERRIDE; | 83 const WebContentsCreatedCallback& callback) OVERRIDE; |
| 83 virtual void DidAttachToEmbedder() OVERRIDE; | 84 virtual void DidAttachToEmbedder() OVERRIDE; |
| 84 virtual void DidInitialize() OVERRIDE; | 85 virtual void DidInitialize() OVERRIDE; |
| 85 virtual void DidStopLoading() OVERRIDE; | 86 virtual void DidStopLoading() OVERRIDE; |
| 86 virtual void EmbedderDestroyed() OVERRIDE; | 87 virtual void EmbedderDestroyed() OVERRIDE; |
| 87 virtual void GuestDestroyed() OVERRIDE; | 88 virtual void GuestDestroyed() OVERRIDE; |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 348 |
| 348 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 349 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
| 349 PendingWindowMap pending_new_windows_; | 350 PendingWindowMap pending_new_windows_; |
| 350 | 351 |
| 351 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 352 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 } // namespace extensions | 355 } // namespace extensions |
| 355 | 356 |
| 356 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 357 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |