Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1574)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 897783002: Update {virtual,override,final} to follow C++11 style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 : public RenderWidgetHostViewBase, 82 : public RenderWidgetHostViewBase,
83 public cc::DelegatedFrameResourceCollectionClient, 83 public cc::DelegatedFrameResourceCollectionClient,
84 public ui::GestureProviderClient, 84 public ui::GestureProviderClient,
85 public ui::WindowAndroidObserver, 85 public ui::WindowAndroidObserver,
86 public DelegatedFrameEvictorClient, 86 public DelegatedFrameEvictorClient,
87 public StylusTextSelectorClient, 87 public StylusTextSelectorClient,
88 public ui::TouchSelectionControllerClient { 88 public ui::TouchSelectionControllerClient {
89 public: 89 public:
90 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget, 90 RenderWidgetHostViewAndroid(RenderWidgetHostImpl* widget,
91 ContentViewCoreImpl* content_view_core); 91 ContentViewCoreImpl* content_view_core);
92 virtual ~RenderWidgetHostViewAndroid(); 92 ~RenderWidgetHostViewAndroid() override;
93 93
94 // RenderWidgetHostView implementation. 94 // RenderWidgetHostView implementation.
95 virtual bool OnMessageReceived(const IPC::Message& msg) override; 95 bool OnMessageReceived(const IPC::Message& msg) override;
96 virtual void InitAsChild(gfx::NativeView parent_view) override; 96 void InitAsChild(gfx::NativeView parent_view) override;
97 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 97 void InitAsPopup(RenderWidgetHostView* parent_host_view,
98 const gfx::Rect& pos) override; 98 const gfx::Rect& pos) override;
99 virtual void InitAsFullscreen( 99 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
100 RenderWidgetHostView* reference_host_view) override; 100 RenderWidgetHost* GetRenderWidgetHost() const override;
101 virtual RenderWidgetHost* GetRenderWidgetHost() const override; 101 void SetSize(const gfx::Size& size) override;
102 virtual void SetSize(const gfx::Size& size) override; 102 void SetBounds(const gfx::Rect& rect) override;
103 virtual void SetBounds(const gfx::Rect& rect) override; 103 gfx::Vector2dF GetLastScrollOffset() const override;
104 virtual gfx::Vector2dF GetLastScrollOffset() const override; 104 gfx::NativeView GetNativeView() const override;
105 virtual gfx::NativeView GetNativeView() const override; 105 gfx::NativeViewId GetNativeViewId() const override;
106 virtual gfx::NativeViewId GetNativeViewId() const override; 106 gfx::NativeViewAccessible GetNativeViewAccessible() override;
107 virtual gfx::NativeViewAccessible GetNativeViewAccessible() override; 107 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
108 virtual void MovePluginWindows( 108 void Focus() override;
109 const std::vector<WebPluginGeometry>& moves) override; 109 void Blur() override;
110 virtual void Focus() override; 110 bool HasFocus() const override;
111 virtual void Blur() override; 111 bool IsSurfaceAvailableForCopy() const override;
112 virtual bool HasFocus() const override; 112 void Show() override;
113 virtual bool IsSurfaceAvailableForCopy() const override; 113 void Hide() override;
114 virtual void Show() override; 114 bool IsShowing() override;
115 virtual void Hide() override; 115 gfx::Rect GetViewBounds() const override;
116 virtual bool IsShowing() override; 116 gfx::Size GetPhysicalBackingSize() const override;
117 virtual gfx::Rect GetViewBounds() const override; 117 bool DoTopControlsShrinkBlinkSize() const override;
118 virtual gfx::Size GetPhysicalBackingSize() const override; 118 float GetTopControlsHeight() const override;
119 virtual bool DoTopControlsShrinkBlinkSize() const override; 119 void UpdateCursor(const WebCursor& cursor) override;
120 virtual float GetTopControlsHeight() const override; 120 void SetIsLoading(bool is_loading) override;
121 virtual void UpdateCursor(const WebCursor& cursor) override; 121 void TextInputTypeChanged(ui::TextInputType type,
122 virtual void SetIsLoading(bool is_loading) override; 122 ui::TextInputMode input_mode,
123 virtual void TextInputTypeChanged(ui::TextInputType type, 123 bool can_compose_inline,
124 ui::TextInputMode input_mode, 124 int flags) override;
125 bool can_compose_inline, 125 void ImeCancelComposition() override;
126 int flags) override; 126 void ImeCompositionRangeChanged(
127 virtual void ImeCancelComposition() override;
128 virtual void ImeCompositionRangeChanged(
129 const gfx::Range& range, 127 const gfx::Range& range,
130 const std::vector<gfx::Rect>& character_bounds) override; 128 const std::vector<gfx::Rect>& character_bounds) override;
131 virtual void FocusedNodeChanged(bool is_editable_node) override; 129 void FocusedNodeChanged(bool is_editable_node) override;
132 virtual void RenderProcessGone(base::TerminationStatus status, 130 void RenderProcessGone(base::TerminationStatus status,
133 int error_code) override; 131 int error_code) override;
134 virtual void Destroy() override; 132 void Destroy() override;
135 virtual void SetTooltipText(const base::string16& tooltip_text) override; 133 void SetTooltipText(const base::string16& tooltip_text) override;
136 virtual void SelectionChanged(const base::string16& text, 134 void SelectionChanged(const base::string16& text,
137 size_t offset, 135 size_t offset,
138 const gfx::Range& range) override; 136 const gfx::Range& range) override;
139 virtual void SelectionBoundsChanged( 137 void SelectionBoundsChanged(
140 const ViewHostMsg_SelectionBounds_Params& params) override; 138 const ViewHostMsg_SelectionBounds_Params& params) override;
141 virtual void AcceleratedSurfaceInitialized(int route_id) override; 139 void AcceleratedSurfaceInitialized(int route_id) override;
142 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 140 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
143 virtual void SetBackgroundColor(SkColor color) override; 141 void SetBackgroundColor(SkColor color) override;
144 virtual void CopyFromCompositingSurface( 142 void CopyFromCompositingSurface(const gfx::Rect& src_subrect,
145 const gfx::Rect& src_subrect, 143 const gfx::Size& dst_size,
146 const gfx::Size& dst_size, 144 ReadbackRequestCallback& callback,
147 ReadbackRequestCallback& callback, 145 const SkColorType color_type) override;
148 const SkColorType color_type) override; 146 void CopyFromCompositingSurfaceToVideoFrame(
149 virtual void CopyFromCompositingSurfaceToVideoFrame(
150 const gfx::Rect& src_subrect, 147 const gfx::Rect& src_subrect,
151 const scoped_refptr<media::VideoFrame>& target, 148 const scoped_refptr<media::VideoFrame>& target,
152 const base::Callback<void(bool)>& callback) override; 149 const base::Callback<void(bool)>& callback) override;
153 virtual bool CanCopyToVideoFrame() const override; 150 bool CanCopyToVideoFrame() const override;
154 virtual void GetScreenInfo(blink::WebScreenInfo* results) override; 151 void GetScreenInfo(blink::WebScreenInfo* results) override;
155 virtual gfx::Rect GetBoundsInRootWindow() override; 152 gfx::Rect GetBoundsInRootWindow() override;
156 virtual gfx::GLSurfaceHandle GetCompositingSurface() override; 153 gfx::GLSurfaceHandle GetCompositingSurface() override;
157 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 154 void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
158 InputEventAckState ack_result) override; 155 InputEventAckState ack_result) override;
159 virtual InputEventAckState FilterInputEvent( 156 InputEventAckState FilterInputEvent(
160 const blink::WebInputEvent& input_event) override; 157 const blink::WebInputEvent& input_event) override;
161 virtual void OnSetNeedsFlushInput() override; 158 void OnSetNeedsFlushInput() override;
162 virtual void GestureEventAck(const blink::WebGestureEvent& event, 159 void GestureEventAck(const blink::WebGestureEvent& event,
163 InputEventAckState ack_result) override; 160 InputEventAckState ack_result) override;
164 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( 161 BrowserAccessibilityManager* CreateBrowserAccessibilityManager(
165 BrowserAccessibilityDelegate* delegate) override; 162 BrowserAccessibilityDelegate* delegate) override;
166 virtual bool LockMouse() override; 163 bool LockMouse() override;
167 virtual void UnlockMouse() override; 164 void UnlockMouse() override;
168 virtual void OnSwapCompositorFrame( 165 void OnSwapCompositorFrame(uint32 output_surface_id,
169 uint32 output_surface_id, 166 scoped_ptr<cc::CompositorFrame> frame) override;
170 scoped_ptr<cc::CompositorFrame> frame) override; 167 void DidOverscroll(const DidOverscrollParams& params) override;
171 virtual void DidOverscroll(const DidOverscrollParams& params) override; 168 void DidStopFlinging() override;
172 virtual void DidStopFlinging() override; 169 void ShowDisambiguationPopup(const gfx::Rect& rect_pixels,
173 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, 170 const SkBitmap& zoomed_bitmap) override;
174 const SkBitmap& zoomed_bitmap) override; 171 scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() override;
175 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() 172 void LockCompositingSurface() override;
176 override; 173 void UnlockCompositingSurface() override;
177 virtual void LockCompositingSurface() override; 174 void OnTextSurroundingSelectionResponse(const base::string16& content,
178 virtual void UnlockCompositingSurface() override; 175 size_t start_offset,
179 virtual void OnTextSurroundingSelectionResponse(const base::string16& content, 176 size_t end_offset) override;
180 size_t start_offset,
181 size_t end_offset) override;
182 177
183 // cc::DelegatedFrameResourceCollectionClient implementation. 178 // cc::DelegatedFrameResourceCollectionClient implementation.
184 virtual void UnusedResourcesAreAvailable() override; 179 void UnusedResourcesAreAvailable() override;
185 180
186 // ui::GestureProviderClient implementation. 181 // ui::GestureProviderClient implementation.
187 virtual void OnGestureEvent(const ui::GestureEventData& gesture) override; 182 void OnGestureEvent(const ui::GestureEventData& gesture) override;
188 183
189 // ui::WindowAndroidObserver implementation. 184 // ui::WindowAndroidObserver implementation.
190 virtual void OnCompositingDidCommit() override; 185 void OnCompositingDidCommit() override;
191 virtual void OnAttachCompositor() override; 186 void OnAttachCompositor() override;
192 virtual void OnDetachCompositor() override; 187 void OnDetachCompositor() override;
193 virtual void OnVSync(base::TimeTicks frame_time, 188 void OnVSync(base::TimeTicks frame_time,
194 base::TimeDelta vsync_period) override; 189 base::TimeDelta vsync_period) override;
195 virtual void OnAnimate(base::TimeTicks begin_frame_time) override; 190 void OnAnimate(base::TimeTicks begin_frame_time) override;
196 191
197 // DelegatedFrameEvictor implementation 192 // DelegatedFrameEvictor implementation
198 virtual void EvictDelegatedFrame() override; 193 void EvictDelegatedFrame() override;
199 194
200 virtual SkColorType PreferredReadbackFormat() override; 195 SkColorType PreferredReadbackFormat() override;
201 196
202 // StylusTextSelectorClient implementation. 197 // StylusTextSelectorClient implementation.
203 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; 198 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override;
204 void OnStylusSelectUpdate(float x, float y) override; 199 void OnStylusSelectUpdate(float x, float y) override;
205 void OnStylusSelectEnd() override; 200 void OnStylusSelectEnd() override;
206 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; 201 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override;
207 202
208 // ui::TouchSelectionControllerClient implementation. 203 // ui::TouchSelectionControllerClient implementation.
209 virtual bool SupportsAnimation() const override; 204 bool SupportsAnimation() const override;
210 virtual void SetNeedsAnimate() override; 205 void SetNeedsAnimate() override;
211 virtual void MoveCaret(const gfx::PointF& position) override; 206 void MoveCaret(const gfx::PointF& position) override;
212 virtual void MoveRangeSelectionExtent(const gfx::PointF& extent) override; 207 void MoveRangeSelectionExtent(const gfx::PointF& extent) override;
213 virtual void SelectBetweenCoordinates(const gfx::PointF& base, 208 void SelectBetweenCoordinates(const gfx::PointF& base,
214 const gfx::PointF& extent) override; 209 const gfx::PointF& extent) override;
215 virtual void OnSelectionEvent(ui::SelectionEventType event, 210 void OnSelectionEvent(ui::SelectionEventType event,
216 const gfx::PointF& anchor_position) override; 211 const gfx::PointF& anchor_position) override;
217 virtual scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override; 212 scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override;
218 213
219 // Non-virtual methods 214 // Non-virtual methods
220 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 215 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
221 SkColor GetCachedBackgroundColor() const; 216 SkColor GetCachedBackgroundColor() const;
222 void SendKeyEvent(const NativeWebKeyboardEvent& event); 217 void SendKeyEvent(const NativeWebKeyboardEvent& event);
223 void SendMouseEvent(const blink::WebMouseEvent& event); 218 void SendMouseEvent(const blink::WebMouseEvent& event);
224 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event); 219 void SendMouseWheelEvent(const blink::WebMouseWheelEvent& event);
225 void SendGestureEvent(const blink::WebGestureEvent& event); 220 void SendGestureEvent(const blink::WebGestureEvent& event);
226 221
227 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params); 222 void OnTextInputStateChanged(const ViewHostMsg_TextInputState_Params& params);
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 gfx::Vector2dF last_scroll_offset_; 409 gfx::Vector2dF last_scroll_offset_;
415 410
416 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 411 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
417 412
418 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 413 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
419 }; 414 };
420 415
421 } // namespace content 416 } // namespace content
422 417
423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698