| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 gfx::Rect GetBoundsInRootWindow() override; | 164 gfx::Rect GetBoundsInRootWindow() override; |
| 165 void WheelEventAck(const blink::WebMouseWheelEvent& event, | 165 void WheelEventAck(const blink::WebMouseWheelEvent& event, |
| 166 InputEventAckState ack_result) override; | 166 InputEventAckState ack_result) override; |
| 167 void GestureEventAck(const blink::WebGestureEvent& event, | 167 void GestureEventAck(const blink::WebGestureEvent& event, |
| 168 InputEventAckState ack_result) override; | 168 InputEventAckState ack_result) override; |
| 169 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 169 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 170 InputEventAckState ack_result) override; | 170 InputEventAckState ack_result) override; |
| 171 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; | 171 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override; |
| 172 InputEventAckState FilterInputEvent( | 172 InputEventAckState FilterInputEvent( |
| 173 const blink::WebInputEvent& input_event) override; | 173 const blink::WebInputEvent& input_event) override; |
| 174 void OnSetNeedsFlushInput() override; |
| 174 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 175 BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
| 175 BrowserAccessibilityDelegate* delegate) override; | 176 BrowserAccessibilityDelegate* delegate) override; |
| 176 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 177 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 177 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 178 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
| 178 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 179 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
| 179 const SkBitmap& zoomed_bitmap) override; | 180 const SkBitmap& zoomed_bitmap) override; |
| 180 bool LockMouse() override; | 181 bool LockMouse() override; |
| 181 void UnlockMouse() override; | 182 void UnlockMouse() override; |
| 182 void OnSwapCompositorFrame(uint32 output_surface_id, | 183 void OnSwapCompositorFrame(uint32 output_surface_id, |
| 183 scoped_ptr<cc::CompositorFrame> frame) override; | 184 scoped_ptr<cc::CompositorFrame> frame) override; |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 | 464 |
| 464 // Converts |rect| from screen coordinate to window coordinate. | 465 // Converts |rect| from screen coordinate to window coordinate. |
| 465 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; | 466 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
| 466 | 467 |
| 467 // Helper function to set keyboard focus to the main window. | 468 // Helper function to set keyboard focus to the main window. |
| 468 void SetKeyboardFocus(); | 469 void SetKeyboardFocus(); |
| 469 | 470 |
| 470 // Called when RenderWidget wants to start BeginFrame scheduling or stop. | 471 // Called when RenderWidget wants to start BeginFrame scheduling or stop. |
| 471 void OnSetNeedsBeginFrames(bool needs_begin_frames); | 472 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
| 472 | 473 |
| 474 enum VSyncRequestType { |
| 475 FLUSH_INPUT = 1 << 0, |
| 476 PERSISTENT_BEGIN_FRAME = 1 << 1 |
| 477 }; |
| 478 void RequestVSyncUpdate(uint32 requests); |
| 479 |
| 473 RenderFrameHostImpl* GetFocusedFrame(); | 480 RenderFrameHostImpl* GetFocusedFrame(); |
| 474 | 481 |
| 475 // Returns true if the |event| passed in can be forwarded to the renderer. | 482 // Returns true if the |event| passed in can be forwarded to the renderer. |
| 476 bool CanRendererHandleEvent(const ui::MouseEvent* event, | 483 bool CanRendererHandleEvent(const ui::MouseEvent* event, |
| 477 bool mouse_locked, | 484 bool mouse_locked, |
| 478 bool selection_popup); | 485 bool selection_popup); |
| 479 | 486 |
| 480 // Called when the parent window bounds change. | 487 // Called when the parent window bounds change. |
| 481 void HandleParentBoundsChanged(); | 488 void HandleParentBoundsChanged(); |
| 482 | 489 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // RenderWidgetHostViewGuest. | 659 // RenderWidgetHostViewGuest. |
| 653 bool is_guest_view_hack_; | 660 bool is_guest_view_hack_; |
| 654 | 661 |
| 655 gfx::Rect disambiguation_target_rect_; | 662 gfx::Rect disambiguation_target_rect_; |
| 656 | 663 |
| 657 // The last scroll offset when we start to render the link disambiguation | 664 // The last scroll offset when we start to render the link disambiguation |
| 658 // view, so we can ensure the window hasn't moved between copying from the | 665 // view, so we can ensure the window hasn't moved between copying from the |
| 659 // compositing surface and showing the disambiguation popup. | 666 // compositing surface and showing the disambiguation popup. |
| 660 gfx::Vector2dF disambiguation_scroll_offset_; | 667 gfx::Vector2dF disambiguation_scroll_offset_; |
| 661 | 668 |
| 662 BeginFrameObserverProxy begin_frame_observer_proxy_; | 669 // Valid only when thekEnableBeginFrameScheduling |
| 670 scoped_ptr<BeginFrameObserverProxy> begin_frame_observer_proxy_; |
| 663 | 671 |
| 664 // This flag when set ensures that we send over a notification to blink that | 672 // This flag when set ensures that we send over a notification to blink that |
| 665 // the current view has focus. Defaults to false. | 673 // the current view has focus. Defaults to false. |
| 666 bool set_focus_on_mouse_down_; | 674 bool set_focus_on_mouse_down_; |
| 667 | 675 |
| 668 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 676 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 669 | 677 |
| 670 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 678 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 671 }; | 679 }; |
| 672 | 680 |
| 673 } // namespace content | 681 } // namespace content |
| 674 | 682 |
| 675 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |