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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 ~GuestViewBase() override; | 294 ~GuestViewBase() override; |
295 | 295 |
296 // WebContentsObserver implementation. | 296 // WebContentsObserver implementation. |
297 void DidStopLoading(content::RenderViewHost* render_view_host) final; | 297 void DidStopLoading(content::RenderViewHost* render_view_host) final; |
298 void RenderViewReady() final; | 298 void RenderViewReady() final; |
299 void WebContentsDestroyed() final; | 299 void WebContentsDestroyed() final; |
300 | 300 |
301 // WebContentsDelegate implementation. | 301 // WebContentsDelegate implementation. |
302 void ActivateContents(content::WebContents* contents) final; | 302 void ActivateContents(content::WebContents* contents) final; |
303 void DeactivateContents(content::WebContents* contents) final; | 303 void DeactivateContents(content::WebContents* contents) final; |
| 304 void ContentsMouseEvent(content::WebContents* source, |
| 305 const gfx::Point& location, |
| 306 bool motion) override; |
304 void ContentsZoomChange(bool zoom_in) override; | 307 void ContentsZoomChange(bool zoom_in) override; |
305 void HandleKeyboardEvent( | 308 void HandleKeyboardEvent( |
306 content::WebContents* source, | 309 content::WebContents* source, |
307 const content::NativeWebKeyboardEvent& event) override; | 310 const content::NativeWebKeyboardEvent& event) override; |
| 311 void LoadingStateChanged(content::WebContents* source, |
| 312 bool to_different_document) final; |
308 void RunFileChooser(content::WebContents* web_contents, | 313 void RunFileChooser(content::WebContents* web_contents, |
309 const content::FileChooserParams& params) override; | 314 const content::FileChooserParams& params) override; |
310 bool ShouldFocusPageAfterCrash() final; | 315 bool ShouldFocusPageAfterCrash() final; |
311 bool PreHandleGestureEvent(content::WebContents* source, | 316 bool PreHandleGestureEvent(content::WebContents* source, |
312 const blink::WebGestureEvent& event) final; | 317 const blink::WebGestureEvent& event) final; |
313 void UpdatePreferredSize(content::WebContents* web_contents, | 318 void UpdatePreferredSize(content::WebContents* web_contents, |
314 const gfx::Size& pref_size) final; | 319 const gfx::Size& pref_size) final; |
| 320 void UpdateTargetURL(content::WebContents* source, const GURL& url) override; |
315 | 321 |
316 private: | 322 private: |
317 class OwnerLifetimeObserver; | 323 class OwnerLifetimeObserver; |
318 | 324 |
319 class OpenerLifetimeObserver; | 325 class OpenerLifetimeObserver; |
320 | 326 |
321 void DispatchEvent(Event* event, int instance_id); | 327 void DispatchEvent(Event* event, int instance_id); |
322 | 328 |
323 void SendQueuedEvents(); | 329 void SendQueuedEvents(); |
324 | 330 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 // This is used to ensure pending tasks will not fire after this object is | 417 // This is used to ensure pending tasks will not fire after this object is |
412 // destroyed. | 418 // destroyed. |
413 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; | 419 base::WeakPtrFactory<GuestViewBase> weak_ptr_factory_; |
414 | 420 |
415 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); | 421 DISALLOW_COPY_AND_ASSIGN(GuestViewBase); |
416 }; | 422 }; |
417 | 423 |
418 } // namespace extensions | 424 } // namespace extensions |
419 | 425 |
420 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ | 426 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_GUEST_VIEW_BASE_H_ |
OLD | NEW |