| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 462 scoped_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
| 463 bool defer_compositor_lock) override; | 463 bool defer_compositor_lock) override; |
| 464 void DelegatedFrameHostResizeLockWasReleased() override; | 464 void DelegatedFrameHostResizeLockWasReleased() override; |
| 465 void DelegatedFrameHostSendCompositorSwapAck( | 465 void DelegatedFrameHostSendCompositorSwapAck( |
| 466 int output_surface_id, | 466 int output_surface_id, |
| 467 const cc::CompositorFrameAck& ack) override; | 467 const cc::CompositorFrameAck& ack) override; |
| 468 void DelegatedFrameHostSendReclaimCompositorResources( | 468 void DelegatedFrameHostSendReclaimCompositorResources( |
| 469 int output_surface_id, | 469 int output_surface_id, |
| 470 const cc::CompositorFrameAck& ack) override; | 470 const cc::CompositorFrameAck& ack) override; |
| 471 void DelegatedFrameHostOnLostCompositorResources() override; | 471 void DelegatedFrameHostOnLostCompositorResources() override; |
| 472 void DelegatedFrameHostUpdateVSyncParameters( | 472 void DelegatedFrameHostSendBeginFrame( |
| 473 const base::TimeTicks& timebase, | 473 const cc::BeginFrameArgs& args) override; |
| 474 const base::TimeDelta& interval) override; | |
| 475 | 474 |
| 476 // Detaches |this| from the input method object. | 475 // Detaches |this| from the input method object. |
| 477 void DetachFromInputMethod(); | 476 void DetachFromInputMethod(); |
| 478 | 477 |
| 479 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 478 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
| 480 // calls our keybindings handler against the event and send matched | 479 // calls our keybindings handler against the event and send matched |
| 481 // edit commands to renderer instead. | 480 // edit commands to renderer instead. |
| 482 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); | 481 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 483 | 482 |
| 484 // Dismisses a Web Popup on a mouse or touch press outside the popup and its | 483 // Dismisses a Web Popup on a mouse or touch press outside the popup and its |
| 485 // parent. | 484 // parent. |
| 486 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); | 485 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); |
| 487 | 486 |
| 488 // Converts |rect| from window coordinate to screen coordinate. | 487 // Converts |rect| from window coordinate to screen coordinate. |
| 489 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; | 488 gfx::Rect ConvertRectToScreen(const gfx::Rect& rect) const; |
| 490 | 489 |
| 491 // Converts |rect| from screen coordinate to window coordinate. | 490 // Converts |rect| from screen coordinate to window coordinate. |
| 492 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 491 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
| 493 | 492 |
| 494 // Helper function to set keyboard focus to the main window. | 493 // Helper function to set keyboard focus to the main window. |
| 495 void SetKeyboardFocus(); | 494 void SetKeyboardFocus(); |
| 496 | 495 |
| 496 // Called when RenderWidget want to start BeginFrame scheduling or stop. |
| 497 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
| 498 |
| 497 RenderFrameHostImpl* GetFocusedFrame(); | 499 RenderFrameHostImpl* GetFocusedFrame(); |
| 498 | 500 |
| 499 // The model object. | 501 // The model object. |
| 500 RenderWidgetHostImpl* host_; | 502 RenderWidgetHostImpl* host_; |
| 501 | 503 |
| 502 aura::Window* window_; | 504 aura::Window* window_; |
| 503 | 505 |
| 504 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; | 506 scoped_ptr<DelegatedFrameHost> delegated_frame_host_; |
| 505 | 507 |
| 506 scoped_ptr<WindowObserver> window_observer_; | 508 scoped_ptr<WindowObserver> window_observer_; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 // compositing surface and showing the disambiguation popup. | 652 // compositing surface and showing the disambiguation popup. |
| 651 gfx::Vector2dF disambiguation_scroll_offset_; | 653 gfx::Vector2dF disambiguation_scroll_offset_; |
| 652 | 654 |
| 653 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 655 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 654 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 656 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 655 }; | 657 }; |
| 656 | 658 |
| 657 } // namespace content | 659 } // namespace content |
| 658 | 660 |
| 659 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 661 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |