| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 void DeactivateContents(content::WebContents* contents) final; | 303 void DeactivateContents(content::WebContents* contents) final; |
| 304 void ContentsMouseEvent(content::WebContents* source, | 304 void ContentsMouseEvent(content::WebContents* source, |
| 305 const gfx::Point& location, | 305 const gfx::Point& location, |
| 306 bool motion) override; | 306 bool motion) override; |
| 307 void ContentsZoomChange(bool zoom_in) override; | 307 void ContentsZoomChange(bool zoom_in) override; |
| 308 void HandleKeyboardEvent( | 308 void HandleKeyboardEvent( |
| 309 content::WebContents* source, | 309 content::WebContents* source, |
| 310 const content::NativeWebKeyboardEvent& event) override; | 310 const content::NativeWebKeyboardEvent& event) override; |
| 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( |
| 314 content::WebContents* web_contents, |
| 315 SkColor color, |
| 316 const std::vector<content::ColorSuggestion>& suggestions) override; |
| 313 void RunFileChooser(content::WebContents* web_contents, | 317 void RunFileChooser(content::WebContents* web_contents, |
| 314 const content::FileChooserParams& params) override; | 318 const content::FileChooserParams& params) override; |
| 315 bool ShouldFocusPageAfterCrash() final; | 319 bool ShouldFocusPageAfterCrash() final; |
| 316 bool PreHandleGestureEvent(content::WebContents* source, | 320 bool PreHandleGestureEvent(content::WebContents* source, |
| 317 const blink::WebGestureEvent& event) final; | 321 const blink::WebGestureEvent& event) final; |
| 318 void UpdatePreferredSize(content::WebContents* web_contents, | 322 void UpdatePreferredSize(content::WebContents* web_contents, |
| 319 const gfx::Size& pref_size) final; | 323 const gfx::Size& pref_size) final; |
| 320 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; | 324 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
| 321 | 325 |
| 322 private: | 326 private: |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 // 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 |
| 418 // destroyed. | 422 // destroyed. |
| 419 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 423 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
| 420 | 424 |
| 421 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 425 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
| 422 }; | 426 }; |
| 423 | 427 |
| 424 } // namespace extensions | 428 } // namespace extensions |
| 425 | 429 |
| 426 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 430 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
| OLD | NEW |