| 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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" | 8 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" |
| 9 #include "chrome/browser/ui/zoom/zoom_observer.h" | 9 #include "chrome/browser/ui/zoom/zoom_observer.h" |
| 10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // WebViewGuestDelegate implementation. | 30 // WebViewGuestDelegate implementation. |
| 31 double GetZoom() override; | 31 double GetZoom() override; |
| 32 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 32 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 33 void OnAttachWebViewHelpers(content::WebContents* contents) override; | 33 void OnAttachWebViewHelpers(content::WebContents* contents) override; |
| 34 void OnDidAttachToEmbedder() override; | 34 void OnDidAttachToEmbedder() override; |
| 35 void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) override; | 35 void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) override; |
| 36 void OnDidInitialize() override; | 36 void OnDidInitialize() override; |
| 37 void OnDocumentLoadedInFrame( | 37 void OnDocumentLoadedInFrame( |
| 38 content::RenderFrameHost* render_frame_host) override; | 38 content::RenderFrameHost* render_frame_host) override; |
| 39 void OnGuestReady() override; | 39 void OnGuestReady() override; |
| 40 void OnWillDetachFromEmbedder() override; |
| 40 void OnGuestDestroyed() override; | 41 void OnGuestDestroyed() override; |
| 41 void OnSetZoom(double zoom_factor) override; | 42 void OnSetZoom(double zoom_factor) override; |
| 42 void OnShowContextMenu(int request_id, const MenuItemVector* items) override; | 43 void OnShowContextMenu(int request_id, const MenuItemVector* items) override; |
| 43 | 44 |
| 44 // ZoomObserver implementation. | 45 // ZoomObserver implementation. |
| 45 void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) override; | 46 void OnZoomChanged(const ZoomController::ZoomChangedEventData& data) override; |
| 46 | 47 |
| 47 extensions::WebViewGuest* web_view_guest() const { return web_view_guest_; } | 48 extensions::WebViewGuest* web_view_guest() const { return web_view_guest_; } |
| 48 | 49 |
| 49 private: | 50 private: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 88 |
| 88 // This is used to ensure pending tasks will not fire after this object is | 89 // This is used to ensure pending tasks will not fire after this object is |
| 89 // destroyed. | 90 // destroyed. |
| 90 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; | 91 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); | 93 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ | 96 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ |
| 96 | 97 |
| OLD | NEW |