| 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_BASE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| 7 | 7 |
| 8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
| 9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
| 10 #endif | 10 #endif |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual InputEventAckState FilterInputEvent( | 59 virtual InputEventAckState FilterInputEvent( |
| 60 const blink::WebInputEvent& input_event) OVERRIDE; | 60 const blink::WebInputEvent& input_event) OVERRIDE; |
| 61 virtual void OnSetNeedsFlushInput() OVERRIDE; | 61 virtual void OnSetNeedsFlushInput() OVERRIDE; |
| 62 virtual void OnDidFlushInput() OVERRIDE; | 62 virtual void OnDidFlushInput() OVERRIDE; |
| 63 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 63 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
| 64 InputEventAckState ack_result) OVERRIDE; | 64 InputEventAckState ack_result) OVERRIDE; |
| 65 virtual void SetPopupType(blink::WebPopupType popup_type) OVERRIDE; | 65 virtual void SetPopupType(blink::WebPopupType popup_type) OVERRIDE; |
| 66 virtual blink::WebPopupType GetPopupType() OVERRIDE; | 66 virtual blink::WebPopupType GetPopupType() OVERRIDE; |
| 67 virtual BrowserAccessibilityManager* | 67 virtual BrowserAccessibilityManager* |
| 68 GetBrowserAccessibilityManager() const OVERRIDE; | 68 GetBrowserAccessibilityManager() const OVERRIDE; |
| 69 virtual void SetBrowserAccessibilityManager( |
| 70 BrowserAccessibilityManager* manager) OVERRIDE; |
| 69 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; | 71 virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; |
| 72 virtual void OnAccessibilitySetFocus(int acc_obj_id) OVERRIDE; |
| 73 virtual void AccessibilityShowMenu(int acc_obj_id) OVERRIDE; |
| 74 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds) |
| 75 OVERRIDE; |
| 70 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 76 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 71 InputEventAckState ack_result) OVERRIDE; | 77 InputEventAckState ack_result) OVERRIDE; |
| 72 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 78 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
| 73 OVERRIDE; | 79 OVERRIDE; |
| 74 virtual void FocusedNodeChanged(bool is_editable_node) OVERRIDE; | 80 virtual void FocusedNodeChanged(bool is_editable_node) OVERRIDE; |
| 75 virtual bool CanSubscribeFrame() const OVERRIDE; | 81 virtual bool CanSubscribeFrame() const OVERRIDE; |
| 76 virtual void BeginFrameSubscription( | 82 virtual void BeginFrameSubscription( |
| 77 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 83 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; |
| 78 virtual void EndFrameSubscription() OVERRIDE; | 84 virtual void EndFrameSubscription() OVERRIDE; |
| 79 virtual void OnSwapCompositorFrame( | 85 virtual void OnSwapCompositorFrame( |
| 80 uint32 output_surface_id, | 86 uint32 output_surface_id, |
| 81 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} | 87 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} |
| 82 virtual void ResizeCompositingSurface(const gfx::Size&) OVERRIDE {} | 88 virtual void ResizeCompositingSurface(const gfx::Size&) OVERRIDE {} |
| 83 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 89 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
| 84 gfx::Vector2dF current_fling_velocity) OVERRIDE; | 90 gfx::Vector2dF current_fling_velocity) OVERRIDE; |
| 85 virtual void DidStopFlinging() OVERRIDE {} | 91 virtual void DidStopFlinging() OVERRIDE {} |
| 86 virtual uint32 RendererFrameNumber() OVERRIDE; | 92 virtual uint32 RendererFrameNumber() OVERRIDE; |
| 87 virtual void DidReceiveRendererFrame() OVERRIDE; | 93 virtual void DidReceiveRendererFrame() OVERRIDE; |
| 88 virtual void LockCompositingSurface() OVERRIDE; | 94 virtual void LockCompositingSurface() OVERRIDE; |
| 89 virtual void UnlockCompositingSurface() OVERRIDE; | 95 virtual void UnlockCompositingSurface() OVERRIDE; |
| 90 | 96 |
| 91 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; | 97 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
| 92 | 98 |
| 93 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); | |
| 94 | |
| 95 // Notification that a resize or move session ended on the native widget. | 99 // Notification that a resize or move session ended on the native widget. |
| 96 void UpdateScreenInfo(gfx::NativeView view); | 100 void UpdateScreenInfo(gfx::NativeView view); |
| 97 | 101 |
| 98 // Tells if the display property (work area/scale factor) has | 102 // Tells if the display property (work area/scale factor) has |
| 99 // changed since the last time. | 103 // changed since the last time. |
| 100 bool HasDisplayPropertyChanged(gfx::NativeView view); | 104 bool HasDisplayPropertyChanged(gfx::NativeView view); |
| 101 | 105 |
| 102 #if defined(OS_WIN) | 106 #if defined(OS_WIN) |
| 103 // The callback that DetachPluginsHelper calls for each child window. Call | 107 // The callback that DetachPluginsHelper calls for each child window. Call |
| 104 // this directly if you want to do custom filtering on plugin windows first. | 108 // this directly if you want to do custom filtering on plugin windows first. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 uint32 renderer_frame_number_; | 175 uint32 renderer_frame_number_; |
| 172 | 176 |
| 173 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 177 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 174 | 178 |
| 175 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 179 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 176 }; | 180 }; |
| 177 | 181 |
| 178 } // namespace content | 182 } // namespace content |
| 179 | 183 |
| 180 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 184 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |