| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "components/guest_view/browser/guest_view.h" | 14 #include "components/guest_view/browser/guest_view.h" |
| 15 #include "content/public/browser/javascript_dialog_manager.h" | 15 #include "content/public/browser/javascript_dialog_manager.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "content/public/browser/web_contents.h" | |
| 19 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" | 18 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" |
| 20 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" | 19 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" |
| 21 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" | 20 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" |
| 22 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 21 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
| 23 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" | 22 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" |
| 24 #include "extensions/browser/script_executor.h" | 23 #include "extensions/browser/script_executor.h" |
| 25 | 24 |
| 26 namespace blink { | 25 namespace blink { |
| 27 struct WebFindOptions; | 26 struct WebFindOptions; |
| 28 } // namespace blink | 27 } // namespace blink |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 content::WebContents* source) final; | 234 content::WebContents* source) final; |
| 236 void AddNewContents(content::WebContents* source, | 235 void AddNewContents(content::WebContents* source, |
| 237 content::WebContents* new_contents, | 236 content::WebContents* new_contents, |
| 238 WindowOpenDisposition disposition, | 237 WindowOpenDisposition disposition, |
| 239 const gfx::Rect& initial_rect, | 238 const gfx::Rect& initial_rect, |
| 240 bool user_gesture, | 239 bool user_gesture, |
| 241 bool* was_blocked) final; | 240 bool* was_blocked) final; |
| 242 content::WebContents* OpenURLFromTab( | 241 content::WebContents* OpenURLFromTab( |
| 243 content::WebContents* source, | 242 content::WebContents* source, |
| 244 const content::OpenURLParams& params) final; | 243 const content::OpenURLParams& params) final; |
| 245 void WebContentsCreated( | 244 void WebContentsCreated(content::WebContents* source_contents, |
| 246 content::WebContents* source_contents, | 245 int opener_render_process_id, |
| 247 int opener_render_process_id, | 246 int opener_render_frame_id, |
| 248 int opener_render_frame_id, | 247 const std::string& frame_name, |
| 249 const std::string& frame_name, | 248 const GURL& target_url, |
| 250 const GURL& target_url, | 249 content::WebContents* new_contents) final; |
| 251 content::WebContents* new_contents, | |
| 252 const base::Optional<content::WebContents::CreateParams>& create_params) | |
| 253 final; | |
| 254 void EnterFullscreenModeForTab(content::WebContents* web_contents, | 250 void EnterFullscreenModeForTab(content::WebContents* web_contents, |
| 255 const GURL& origin) final; | 251 const GURL& origin) final; |
| 256 void ExitFullscreenModeForTab(content::WebContents* web_contents) final; | 252 void ExitFullscreenModeForTab(content::WebContents* web_contents) final; |
| 257 bool IsFullscreenForTabOrPending( | 253 bool IsFullscreenForTabOrPending( |
| 258 const content::WebContents* web_contents) const final; | 254 const content::WebContents* web_contents) const final; |
| 259 void RequestToLockMouse(content::WebContents* web_contents, | 255 void RequestToLockMouse(content::WebContents* web_contents, |
| 260 bool user_gesture, | 256 bool user_gesture, |
| 261 bool last_unlocked_by_target) override; | 257 bool last_unlocked_by_target) override; |
| 262 | 258 |
| 263 // WebContentsObserver implementation. | 259 // WebContentsObserver implementation. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 // This is used to ensure pending tasks will not fire after this object is | 374 // This is used to ensure pending tasks will not fire after this object is |
| 379 // destroyed. | 375 // destroyed. |
| 380 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 376 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 381 | 377 |
| 382 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 378 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 383 }; | 379 }; |
| 384 | 380 |
| 385 } // namespace extensions | 381 } // namespace extensions |
| 386 | 382 |
| 387 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 383 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |