| 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_GUEST_VIEW_BASE_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 void LoadingStateChanged(content::WebContents* source, | 311 void LoadingStateChanged(content::WebContents* source, |
| 312 bool to_different_document) final; | 312 bool to_different_document) final; |
| 313 content::ColorChooser* OpenColorChooser( | 313 content::ColorChooser* OpenColorChooser( |
| 314 content::WebContents* web_contents, | 314 content::WebContents* web_contents, |
| 315 SkColor color, | 315 SkColor color, |
| 316 const std::vector<content::ColorSuggestion>& suggestions) override; | 316 const std::vector<content::ColorSuggestion>& suggestions) override; |
| 317 void RunFileChooser(content::WebContents* web_contents, | 317 void RunFileChooser(content::WebContents* web_contents, |
| 318 const content::FileChooserParams& params) override; | 318 const content::FileChooserParams& params) override; |
| 319 bool ShouldFocusPageAfterCrash() final; | 319 bool ShouldFocusPageAfterCrash() final; |
| 320 bool PreHandleGestureEvent(content::WebContents* source, | 320 bool PreHandleGestureEvent(content::WebContents* source, |
| 321 const blink::WebGestureEvent& event) final; | 321 const blink::WebGestureEvent& event) override; |
| 322 void UpdatePreferredSize(content::WebContents* web_contents, | 322 void UpdatePreferredSize(content::WebContents* web_contents, |
| 323 const gfx::Size& pref_size) final; | 323 const gfx::Size& pref_size) final; |
| 324 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; | 324 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
| 325 | 325 |
| 326 private: | 326 private: |
| 327 class OwnerLifetimeObserver; | 327 class OwnerLifetimeObserver; |
| 328 | 328 |
| 329 class OpenerLifetimeObserver; | 329 class OpenerLifetimeObserver; |
| 330 | 330 |
| 331 void DispatchEvent(Event* event, int instance_id); | 331 void DispatchEvent(Event* event, int instance_id); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // This is used to ensure pending tasks will not fire after this object is | 421 // This is used to ensure pending tasks will not fire after this object is |
| 422 // destroyed. | 422 // destroyed. |
| 423 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 423 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 424 | 424 |
| 425 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 425 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 } // namespace extensions | 428 } // namespace extensions |
| 429 | 429 |
| 430 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 430 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| OLD | NEW |