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