| 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 COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 5 #ifndef COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 6 #define COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 // WebContentsObserver implementation. | 318 // WebContentsObserver implementation. |
| 319 void DidStopLoading() final; | 319 void DidStopLoading() final; |
| 320 void RenderViewReady() final; | 320 void RenderViewReady() final; |
| 321 void WebContentsDestroyed() final; | 321 void WebContentsDestroyed() final; |
| 322 void DidNavigateMainFrame( | 322 void DidNavigateMainFrame( |
| 323 const content::LoadCommittedDetails& details, | 323 const content::LoadCommittedDetails& details, |
| 324 const content::FrameNavigateParams& params) override; | 324 const content::FrameNavigateParams& params) override; |
| 325 | 325 |
| 326 // WebContentsDelegate implementation. | 326 // WebContentsDelegate implementation. |
| 327 void ActivateContents(content::WebContents* contents) final; | 327 void ActivateContents(content::WebContents* contents, |
| 328 bool user_gesture) final; |
| 328 void DeactivateContents(content::WebContents* contents) final; | 329 void DeactivateContents(content::WebContents* contents) final; |
| 329 void ContentsMouseEvent(content::WebContents* source, | 330 void ContentsMouseEvent(content::WebContents* source, |
| 330 const gfx::Point& location, | 331 const gfx::Point& location, |
| 331 bool motion) override; | 332 bool motion) override; |
| 332 void ContentsZoomChange(bool zoom_in) override; | 333 void ContentsZoomChange(bool zoom_in) override; |
| 333 void HandleKeyboardEvent( | 334 void HandleKeyboardEvent( |
| 334 content::WebContents* source, | 335 content::WebContents* source, |
| 335 const content::NativeWebKeyboardEvent& event) override; | 336 const content::NativeWebKeyboardEvent& event) override; |
| 336 void LoadingStateChanged(content::WebContents* source, | 337 void LoadingStateChanged(content::WebContents* source, |
| 337 bool to_different_document) final; | 338 bool to_different_document) final; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 // This is used to ensure pending tasks will not fire after this object is | 458 // This is used to ensure pending tasks will not fire after this object is |
| 458 // destroyed. | 459 // destroyed. |
| 459 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 460 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 460 | 461 |
| 461 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 462 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 462 }; | 463 }; |
| 463 | 464 |
| 464 } // namespace guest_view | 465 } // namespace guest_view |
| 465 | 466 |
| 466 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ | 467 #endif // COMPONENTS_GUEST_VIEW_BROWSER_GUEST_VIEW_BASE_H_ |
| OLD | NEW |