| 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_WEB_VIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define CHROME_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // |items| == NULL means no filtering will be applied. | 81 // |items| == NULL means no filtering will be applied. |
| 82 void ShowContextMenu(int request_id, const MenuItemVector* items); | 82 void ShowContextMenu(int request_id, const MenuItemVector* items); |
| 83 | 83 |
| 84 // Sets the frame name of the guest. | 84 // Sets the frame name of the guest. |
| 85 void SetName(const std::string& name); | 85 void SetName(const std::string& name); |
| 86 | 86 |
| 87 // Set the zoom factor. | 87 // Set the zoom factor. |
| 88 void SetZoom(double zoom_factor); | 88 void SetZoom(double zoom_factor); |
| 89 | 89 |
| 90 // GuestViewBase implementation. | 90 // GuestViewBase implementation. |
| 91 virtual void Attach(content::WebContents* embedder_web_contents, | 91 virtual void DidAttach() OVERRIDE; |
| 92 const base::DictionaryValue& args) OVERRIDE; | |
| 93 virtual void DidStopLoading() OVERRIDE; | 92 virtual void DidStopLoading() OVERRIDE; |
| 94 virtual void EmbedderDestroyed() OVERRIDE; | 93 virtual void EmbedderDestroyed() OVERRIDE; |
| 95 virtual void GuestDestroyed() OVERRIDE; | 94 virtual void GuestDestroyed() OVERRIDE; |
| 96 virtual bool IsDragAndDropEnabled() const OVERRIDE; | 95 virtual bool IsDragAndDropEnabled() const OVERRIDE; |
| 97 virtual void WillDestroy() OVERRIDE; | 96 virtual void WillDestroy() OVERRIDE; |
| 98 | 97 |
| 99 // WebContentsDelegate implementation. | 98 // WebContentsDelegate implementation. |
| 100 virtual bool AddMessageToConsole(content::WebContents* source, | 99 virtual bool AddMessageToConsole(content::WebContents* source, |
| 101 int32 level, | 100 int32 level, |
| 102 const base::string16& message, | 101 const base::string16& message, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 virtual content::WebContents* OpenURLFromTab( | 143 virtual content::WebContents* OpenURLFromTab( |
| 145 content::WebContents* source, | 144 content::WebContents* source, |
| 146 const content::OpenURLParams& params) OVERRIDE; | 145 const content::OpenURLParams& params) OVERRIDE; |
| 147 virtual void WebContentsCreated(content::WebContents* source_contents, | 146 virtual void WebContentsCreated(content::WebContents* source_contents, |
| 148 int opener_render_frame_id, | 147 int opener_render_frame_id, |
| 149 const base::string16& frame_name, | 148 const base::string16& frame_name, |
| 150 const GURL& target_url, | 149 const GURL& target_url, |
| 151 content::WebContents* new_contents) OVERRIDE; | 150 content::WebContents* new_contents) OVERRIDE; |
| 152 | 151 |
| 153 // BrowserPluginGuestDelegate implementation. | 152 // BrowserPluginGuestDelegate implementation. |
| 154 virtual void DidAttach(const base::DictionaryValue& extra_params) OVERRIDE; | |
| 155 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) | 153 virtual void SizeChanged(const gfx::Size& old_size, const gfx::Size& new_size) |
| 156 OVERRIDE; | 154 OVERRIDE; |
| 157 virtual void RequestPointerLockPermission( | 155 virtual void RequestPointerLockPermission( |
| 158 bool user_gesture, | 156 bool user_gesture, |
| 159 bool last_unlocked_by_target, | 157 bool last_unlocked_by_target, |
| 160 const base::Callback<void(bool)>& callback) OVERRIDE; | 158 const base::Callback<void(bool)>& callback) OVERRIDE; |
| 161 | 159 |
| 162 // NotificationObserver implementation. | 160 // NotificationObserver implementation. |
| 163 virtual void Observe(int type, | 161 virtual void Observe(int type, |
| 164 const content::NotificationSource& source, | 162 const content::NotificationSource& source, |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 name(name) {} | 500 name(name) {} |
| 503 }; | 501 }; |
| 504 | 502 |
| 505 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 503 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
| 506 PendingWindowMap pending_new_windows_; | 504 PendingWindowMap pending_new_windows_; |
| 507 | 505 |
| 508 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 506 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 509 }; | 507 }; |
| 510 | 508 |
| 511 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 509 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |