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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual ~TouchEditingClient() {} | 128 virtual ~TouchEditingClient() {} |
129 }; | 129 }; |
130 | 130 |
131 void set_touch_editing_client(TouchEditingClient* client) { | 131 void set_touch_editing_client(TouchEditingClient* client) { |
132 touch_editing_client_ = client; | 132 touch_editing_client_ = client; |
133 } | 133 } |
134 | 134 |
135 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); | 135 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); |
136 | 136 |
137 // RenderWidgetHostView implementation. | 137 // RenderWidgetHostView implementation. |
138 virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; | 138 virtual void InitAsChild(gfx::NativeView parent_view) override; |
139 virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; | 139 virtual RenderWidgetHost* GetRenderWidgetHost() const override; |
140 virtual void SetSize(const gfx::Size& size) OVERRIDE; | 140 virtual void SetSize(const gfx::Size& size) override; |
141 virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; | 141 virtual void SetBounds(const gfx::Rect& rect) override; |
142 virtual gfx::Vector2dF GetLastScrollOffset() const OVERRIDE; | 142 virtual gfx::Vector2dF GetLastScrollOffset() const override; |
143 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 143 virtual gfx::NativeView GetNativeView() const override; |
144 virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; | 144 virtual gfx::NativeViewId GetNativeViewId() const override; |
145 virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; | 145 virtual gfx::NativeViewAccessible GetNativeViewAccessible() override; |
146 virtual ui::TextInputClient* GetTextInputClient() OVERRIDE; | 146 virtual ui::TextInputClient* GetTextInputClient() override; |
147 virtual bool HasFocus() const OVERRIDE; | 147 virtual bool HasFocus() const override; |
148 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; | 148 virtual bool IsSurfaceAvailableForCopy() const override; |
149 virtual void Show() OVERRIDE; | 149 virtual void Show() override; |
150 virtual void Hide() OVERRIDE; | 150 virtual void Hide() override; |
151 virtual bool IsShowing() OVERRIDE; | 151 virtual bool IsShowing() override; |
152 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 152 virtual gfx::Rect GetViewBounds() const override; |
153 virtual void SetBackgroundOpaque(bool opaque) OVERRIDE; | 153 virtual void SetBackgroundOpaque(bool opaque) override; |
154 virtual gfx::Size GetVisibleViewportSize() const OVERRIDE; | 154 virtual gfx::Size GetVisibleViewportSize() const override; |
155 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 155 virtual void SetInsets(const gfx::Insets& insets) override; |
156 | 156 |
157 // Overridden from RenderWidgetHostViewBase: | 157 // Overridden from RenderWidgetHostViewBase: |
158 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 158 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
159 const gfx::Rect& pos) OVERRIDE; | 159 const gfx::Rect& pos) override; |
160 virtual void InitAsFullscreen( | 160 virtual void InitAsFullscreen( |
161 RenderWidgetHostView* reference_host_view) OVERRIDE; | 161 RenderWidgetHostView* reference_host_view) override; |
162 virtual void WasShown() OVERRIDE; | 162 virtual void WasShown() override; |
163 virtual void WasHidden() OVERRIDE; | 163 virtual void WasHidden() override; |
164 virtual void MovePluginWindows( | 164 virtual void MovePluginWindows( |
165 const std::vector<WebPluginGeometry>& moves) OVERRIDE; | 165 const std::vector<WebPluginGeometry>& moves) override; |
166 virtual void Focus() OVERRIDE; | 166 virtual void Focus() override; |
167 virtual void Blur() OVERRIDE; | 167 virtual void Blur() override; |
168 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 168 virtual void UpdateCursor(const WebCursor& cursor) override; |
169 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 169 virtual void SetIsLoading(bool is_loading) override; |
170 virtual void TextInputStateChanged( | 170 virtual void TextInputStateChanged( |
171 const ViewHostMsg_TextInputState_Params& params) OVERRIDE; | 171 const ViewHostMsg_TextInputState_Params& params) override; |
172 virtual void ImeCancelComposition() OVERRIDE; | 172 virtual void ImeCancelComposition() override; |
173 virtual void ImeCompositionRangeChanged( | 173 virtual void ImeCompositionRangeChanged( |
174 const gfx::Range& range, | 174 const gfx::Range& range, |
175 const std::vector<gfx::Rect>& character_bounds) OVERRIDE; | 175 const std::vector<gfx::Rect>& character_bounds) override; |
176 virtual void RenderProcessGone(base::TerminationStatus status, | 176 virtual void RenderProcessGone(base::TerminationStatus status, |
177 int error_code) OVERRIDE; | 177 int error_code) override; |
178 virtual void Destroy() OVERRIDE; | 178 virtual void Destroy() override; |
179 virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; | 179 virtual void SetTooltipText(const base::string16& tooltip_text) override; |
180 virtual void SelectionChanged(const base::string16& text, | 180 virtual void SelectionChanged(const base::string16& text, |
181 size_t offset, | 181 size_t offset, |
182 const gfx::Range& range) OVERRIDE; | 182 const gfx::Range& range) override; |
183 virtual gfx::Size GetRequestedRendererSize() const OVERRIDE; | 183 virtual gfx::Size GetRequestedRendererSize() const override; |
184 virtual void SelectionBoundsChanged( | 184 virtual void SelectionBoundsChanged( |
185 const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; | 185 const ViewHostMsg_SelectionBounds_Params& params) override; |
186 virtual void CopyFromCompositingSurface( | 186 virtual void CopyFromCompositingSurface( |
187 const gfx::Rect& src_subrect, | 187 const gfx::Rect& src_subrect, |
188 const gfx::Size& dst_size, | 188 const gfx::Size& dst_size, |
189 CopyFromCompositingSurfaceCallback& callback, | 189 CopyFromCompositingSurfaceCallback& callback, |
190 const SkColorType color_type) OVERRIDE; | 190 const SkColorType color_type) override; |
191 virtual void CopyFromCompositingSurfaceToVideoFrame( | 191 virtual void CopyFromCompositingSurfaceToVideoFrame( |
192 const gfx::Rect& src_subrect, | 192 const gfx::Rect& src_subrect, |
193 const scoped_refptr<media::VideoFrame>& target, | 193 const scoped_refptr<media::VideoFrame>& target, |
194 const base::Callback<void(bool)>& callback) OVERRIDE; | 194 const base::Callback<void(bool)>& callback) override; |
195 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 195 virtual bool CanCopyToVideoFrame() const override; |
196 virtual bool CanSubscribeFrame() const OVERRIDE; | 196 virtual bool CanSubscribeFrame() const override; |
197 virtual void BeginFrameSubscription( | 197 virtual void BeginFrameSubscription( |
198 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; | 198 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) override; |
199 virtual void EndFrameSubscription() OVERRIDE; | 199 virtual void EndFrameSubscription() override; |
200 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 200 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) override; |
201 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; | 201 virtual void GetScreenInfo(blink::WebScreenInfo* results) override; |
202 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 202 virtual gfx::Rect GetBoundsInRootWindow() override; |
203 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, | 203 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, |
204 InputEventAckState ack_result) OVERRIDE; | 204 InputEventAckState ack_result) override; |
205 virtual void GestureEventAck(const blink::WebGestureEvent& event, | 205 virtual void GestureEventAck(const blink::WebGestureEvent& event, |
206 InputEventAckState ack_result) OVERRIDE; | 206 InputEventAckState ack_result) override; |
207 virtual void ProcessAckedTouchEvent( | 207 virtual void ProcessAckedTouchEvent( |
208 const TouchEventWithLatencyInfo& touch, | 208 const TouchEventWithLatencyInfo& touch, |
209 InputEventAckState ack_result) OVERRIDE; | 209 InputEventAckState ack_result) override; |
210 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 210 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
211 OVERRIDE; | 211 override; |
212 virtual InputEventAckState FilterInputEvent( | 212 virtual InputEventAckState FilterInputEvent( |
213 const blink::WebInputEvent& input_event) OVERRIDE; | 213 const blink::WebInputEvent& input_event) override; |
214 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 214 virtual gfx::GLSurfaceHandle GetCompositingSurface() override; |
215 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( | 215 virtual BrowserAccessibilityManager* CreateBrowserAccessibilityManager( |
216 BrowserAccessibilityDelegate* delegate) OVERRIDE; | 216 BrowserAccessibilityDelegate* delegate) override; |
217 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() OVERRIDE; | 217 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
218 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() | 218 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() |
219 OVERRIDE; | 219 override; |
220 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 220 virtual void ShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
221 const SkBitmap& zoomed_bitmap) OVERRIDE; | 221 const SkBitmap& zoomed_bitmap) override; |
222 virtual bool LockMouse() OVERRIDE; | 222 virtual bool LockMouse() override; |
223 virtual void UnlockMouse() OVERRIDE; | 223 virtual void UnlockMouse() override; |
224 virtual void OnSwapCompositorFrame( | 224 virtual void OnSwapCompositorFrame( |
225 uint32 output_surface_id, | 225 uint32 output_surface_id, |
226 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 226 scoped_ptr<cc::CompositorFrame> frame) override; |
227 virtual void DidStopFlinging() OVERRIDE; | 227 virtual void DidStopFlinging() override; |
228 | 228 |
229 #if defined(OS_WIN) | 229 #if defined(OS_WIN) |
230 virtual void SetParentNativeViewAccessible( | 230 virtual void SetParentNativeViewAccessible( |
231 gfx::NativeViewAccessible accessible_parent) OVERRIDE; | 231 gfx::NativeViewAccessible accessible_parent) override; |
232 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const OVERRIDE; | 232 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const override; |
233 #endif | 233 #endif |
234 | 234 |
235 // Overridden from ui::TextInputClient: | 235 // Overridden from ui::TextInputClient: |
236 virtual void SetCompositionText( | 236 virtual void SetCompositionText( |
237 const ui::CompositionText& composition) OVERRIDE; | 237 const ui::CompositionText& composition) override; |
238 virtual void ConfirmCompositionText() OVERRIDE; | 238 virtual void ConfirmCompositionText() override; |
239 virtual void ClearCompositionText() OVERRIDE; | 239 virtual void ClearCompositionText() override; |
240 virtual void InsertText(const base::string16& text) OVERRIDE; | 240 virtual void InsertText(const base::string16& text) override; |
241 virtual void InsertChar(base::char16 ch, int flags) OVERRIDE; | 241 virtual void InsertChar(base::char16 ch, int flags) override; |
242 virtual gfx::NativeWindow GetAttachedWindow() const OVERRIDE; | 242 virtual gfx::NativeWindow GetAttachedWindow() const override; |
243 virtual ui::TextInputType GetTextInputType() const OVERRIDE; | 243 virtual ui::TextInputType GetTextInputType() const override; |
244 virtual ui::TextInputMode GetTextInputMode() const OVERRIDE; | 244 virtual ui::TextInputMode GetTextInputMode() const override; |
245 virtual bool CanComposeInline() const OVERRIDE; | 245 virtual bool CanComposeInline() const override; |
246 virtual gfx::Rect GetCaretBounds() const OVERRIDE; | 246 virtual gfx::Rect GetCaretBounds() const override; |
247 virtual bool GetCompositionCharacterBounds(uint32 index, | 247 virtual bool GetCompositionCharacterBounds(uint32 index, |
248 gfx::Rect* rect) const OVERRIDE; | 248 gfx::Rect* rect) const override; |
249 virtual bool HasCompositionText() const OVERRIDE; | 249 virtual bool HasCompositionText() const override; |
250 virtual bool GetTextRange(gfx::Range* range) const OVERRIDE; | 250 virtual bool GetTextRange(gfx::Range* range) const override; |
251 virtual bool GetCompositionTextRange(gfx::Range* range) const OVERRIDE; | 251 virtual bool GetCompositionTextRange(gfx::Range* range) const override; |
252 virtual bool GetSelectionRange(gfx::Range* range) const OVERRIDE; | 252 virtual bool GetSelectionRange(gfx::Range* range) const override; |
253 virtual bool SetSelectionRange(const gfx::Range& range) OVERRIDE; | 253 virtual bool SetSelectionRange(const gfx::Range& range) override; |
254 virtual bool DeleteRange(const gfx::Range& range) OVERRIDE; | 254 virtual bool DeleteRange(const gfx::Range& range) override; |
255 virtual bool GetTextFromRange(const gfx::Range& range, | 255 virtual bool GetTextFromRange(const gfx::Range& range, |
256 base::string16* text) const OVERRIDE; | 256 base::string16* text) const override; |
257 virtual void OnInputMethodChanged() OVERRIDE; | 257 virtual void OnInputMethodChanged() override; |
258 virtual bool ChangeTextDirectionAndLayoutAlignment( | 258 virtual bool ChangeTextDirectionAndLayoutAlignment( |
259 base::i18n::TextDirection direction) OVERRIDE; | 259 base::i18n::TextDirection direction) override; |
260 virtual void ExtendSelectionAndDelete(size_t before, size_t after) OVERRIDE; | 260 virtual void ExtendSelectionAndDelete(size_t before, size_t after) override; |
261 virtual void EnsureCaretInRect(const gfx::Rect& rect) OVERRIDE; | 261 virtual void EnsureCaretInRect(const gfx::Rect& rect) override; |
262 virtual void OnCandidateWindowShown() OVERRIDE; | 262 virtual void OnCandidateWindowShown() override; |
263 virtual void OnCandidateWindowUpdated() OVERRIDE; | 263 virtual void OnCandidateWindowUpdated() override; |
264 virtual void OnCandidateWindowHidden() OVERRIDE; | 264 virtual void OnCandidateWindowHidden() override; |
265 virtual bool IsEditingCommandEnabled(int command_id) OVERRIDE; | 265 virtual bool IsEditingCommandEnabled(int command_id) override; |
266 virtual void ExecuteEditingCommand(int command_id) OVERRIDE; | 266 virtual void ExecuteEditingCommand(int command_id) override; |
267 | 267 |
268 // Overridden from gfx::DisplayObserver: | 268 // Overridden from gfx::DisplayObserver: |
269 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; | 269 virtual void OnDisplayAdded(const gfx::Display& new_display) override; |
270 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 270 virtual void OnDisplayRemoved(const gfx::Display& old_display) override; |
271 virtual void OnDisplayMetricsChanged(const gfx::Display& display, | 271 virtual void OnDisplayMetricsChanged(const gfx::Display& display, |
272 uint32_t metrics) OVERRIDE; | 272 uint32_t metrics) override; |
273 | 273 |
274 // Overridden from aura::WindowDelegate: | 274 // Overridden from aura::WindowDelegate: |
275 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 275 virtual gfx::Size GetMinimumSize() const override; |
276 virtual gfx::Size GetMaximumSize() const OVERRIDE; | 276 virtual gfx::Size GetMaximumSize() const override; |
277 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 277 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
278 const gfx::Rect& new_bounds) OVERRIDE; | 278 const gfx::Rect& new_bounds) override; |
279 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 279 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) override; |
280 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 280 virtual int GetNonClientComponent(const gfx::Point& point) const override; |
281 virtual bool ShouldDescendIntoChildForEventHandling( | 281 virtual bool ShouldDescendIntoChildForEventHandling( |
282 aura::Window* child, | 282 aura::Window* child, |
283 const gfx::Point& location) OVERRIDE; | 283 const gfx::Point& location) override; |
284 virtual bool CanFocus() OVERRIDE; | 284 virtual bool CanFocus() override; |
285 virtual void OnCaptureLost() OVERRIDE; | 285 virtual void OnCaptureLost() override; |
286 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 286 virtual void OnPaint(gfx::Canvas* canvas) override; |
287 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 287 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
288 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 288 virtual void OnWindowDestroying(aura::Window* window) override; |
289 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; | 289 virtual void OnWindowDestroyed(aura::Window* window) override; |
290 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 290 virtual void OnWindowTargetVisibilityChanged(bool visible) override; |
291 virtual bool HasHitTestMask() const OVERRIDE; | 291 virtual bool HasHitTestMask() const override; |
292 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 292 virtual void GetHitTestMask(gfx::Path* mask) const override; |
293 | 293 |
294 // Overridden from ui::EventHandler: | 294 // Overridden from ui::EventHandler: |
295 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 295 virtual void OnKeyEvent(ui::KeyEvent* event) override; |
296 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 296 virtual void OnMouseEvent(ui::MouseEvent* event) override; |
297 virtual void OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 297 virtual void OnScrollEvent(ui::ScrollEvent* event) override; |
298 virtual void OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 298 virtual void OnTouchEvent(ui::TouchEvent* event) override; |
299 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 299 virtual void OnGestureEvent(ui::GestureEvent* event) override; |
300 | 300 |
301 // Overridden from aura::client::ActivationDelegate: | 301 // Overridden from aura::client::ActivationDelegate: |
302 virtual bool ShouldActivate() const OVERRIDE; | 302 virtual bool ShouldActivate() const override; |
303 | 303 |
304 // Overridden from aura::client::ActivationChangeObserver: | 304 // Overridden from aura::client::ActivationChangeObserver: |
305 virtual void OnWindowActivated(aura::Window* gained_activation, | 305 virtual void OnWindowActivated(aura::Window* gained_activation, |
306 aura::Window* lost_activation) OVERRIDE; | 306 aura::Window* lost_activation) override; |
307 | 307 |
308 // Overridden from aura::client::CursorClientObserver: | 308 // Overridden from aura::client::CursorClientObserver: |
309 virtual void OnCursorVisibilityChanged(bool is_visible) OVERRIDE; | 309 virtual void OnCursorVisibilityChanged(bool is_visible) override; |
310 | 310 |
311 // Overridden from aura::client::FocusChangeObserver: | 311 // Overridden from aura::client::FocusChangeObserver: |
312 virtual void OnWindowFocused(aura::Window* gained_focus, | 312 virtual void OnWindowFocused(aura::Window* gained_focus, |
313 aura::Window* lost_focus) OVERRIDE; | 313 aura::Window* lost_focus) override; |
314 | 314 |
315 // Overridden from aura::WindowTreeHostObserver: | 315 // Overridden from aura::WindowTreeHostObserver: |
316 virtual void OnHostMoved(const aura::WindowTreeHost* host, | 316 virtual void OnHostMoved(const aura::WindowTreeHost* host, |
317 const gfx::Point& new_origin) OVERRIDE; | 317 const gfx::Point& new_origin) override; |
318 | 318 |
319 #if defined(OS_WIN) | 319 #if defined(OS_WIN) |
320 // Sets the cutout rects from constrained windows. These are rectangles that | 320 // Sets the cutout rects from constrained windows. These are rectangles that |
321 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout | 321 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout |
322 // rects. | 322 // rects. |
323 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); | 323 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects); |
324 | 324 |
325 // Updates the cursor clip region. Used for mouse locking. | 325 // Updates the cursor clip region. Used for mouse locking. |
326 void UpdateMouseLockRegion(); | 326 void UpdateMouseLockRegion(); |
327 | 327 |
(...skipping 21 matching lines...) Expand all Loading... |
349 | 349 |
350 OverscrollController* overscroll_controller() const { | 350 OverscrollController* overscroll_controller() const { |
351 return overscroll_controller_.get(); | 351 return overscroll_controller_.get(); |
352 } | 352 } |
353 | 353 |
354 protected: | 354 protected: |
355 virtual ~RenderWidgetHostViewAura(); | 355 virtual ~RenderWidgetHostViewAura(); |
356 | 356 |
357 // Exposed for tests. | 357 // Exposed for tests. |
358 aura::Window* window() { return window_; } | 358 aura::Window* window() { return window_; } |
359 virtual SkColorType PreferredReadbackFormat() OVERRIDE; | 359 virtual SkColorType PreferredReadbackFormat() override; |
360 virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE; | 360 virtual DelegatedFrameHost* GetDelegatedFrameHost() const override; |
361 | 361 |
362 private: | 362 private: |
363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
364 PopupRetainsCaptureAfterMouseRelease); | 364 PopupRetainsCaptureAfterMouseRelease); |
365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); | 365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); |
366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); | 366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); |
367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, | 367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, |
368 TouchEventPositionsArentRounded); | 368 TouchEventPositionsArentRounded); |
369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); | 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); |
370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); | 370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 // moved to center. | 435 // moved to center. |
436 bool ShouldMoveToCenter(); | 436 bool ShouldMoveToCenter(); |
437 | 437 |
438 // Called after |window_| is parented to a WindowEventDispatcher. | 438 // Called after |window_| is parented to a WindowEventDispatcher. |
439 void AddedToRootWindow(); | 439 void AddedToRootWindow(); |
440 | 440 |
441 // Called prior to removing |window_| from a WindowEventDispatcher. | 441 // Called prior to removing |window_| from a WindowEventDispatcher. |
442 void RemovingFromRootWindow(); | 442 void RemovingFromRootWindow(); |
443 | 443 |
444 // DelegatedFrameHostClient implementation. | 444 // DelegatedFrameHostClient implementation. |
445 virtual ui::Compositor* GetCompositor() const OVERRIDE; | 445 virtual ui::Compositor* GetCompositor() const override; |
446 virtual ui::Layer* GetLayer() OVERRIDE; | 446 virtual ui::Layer* GetLayer() override; |
447 virtual RenderWidgetHostImpl* GetHost() OVERRIDE; | 447 virtual RenderWidgetHostImpl* GetHost() override; |
448 virtual bool IsVisible() OVERRIDE; | 448 virtual bool IsVisible() override; |
449 virtual scoped_ptr<ResizeLock> CreateResizeLock( | 449 virtual scoped_ptr<ResizeLock> CreateResizeLock( |
450 bool defer_compositor_lock) OVERRIDE; | 450 bool defer_compositor_lock) override; |
451 virtual gfx::Size DesiredFrameSize() OVERRIDE; | 451 virtual gfx::Size DesiredFrameSize() override; |
452 virtual float CurrentDeviceScaleFactor() OVERRIDE; | 452 virtual float CurrentDeviceScaleFactor() override; |
453 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) OVERRIDE; | 453 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; |
454 | 454 |
455 // Detaches |this| from the input method object. | 455 // Detaches |this| from the input method object. |
456 void DetachFromInputMethod(); | 456 void DetachFromInputMethod(); |
457 | 457 |
458 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method | 458 // Before calling RenderWidgetHost::ForwardKeyboardEvent(), this method |
459 // calls our keybindings handler against the event and send matched | 459 // calls our keybindings handler against the event and send matched |
460 // edit commands to renderer instead. | 460 // edit commands to renderer instead. |
461 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); | 461 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& event); |
462 | 462 |
463 // Dismisses a Web Popup on a mouse or touch press outside the popup and its | 463 // Dismisses a Web Popup on a mouse or touch press outside the popup and its |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // view, so we can ensure the window hasn't moved between copying from the | 625 // view, so we can ensure the window hasn't moved between copying from the |
626 // compositing surface and showing the disambiguation popup. | 626 // compositing surface and showing the disambiguation popup. |
627 gfx::Vector2dF disambiguation_scroll_offset_; | 627 gfx::Vector2dF disambiguation_scroll_offset_; |
628 | 628 |
629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
630 }; | 630 }; |
631 | 631 |
632 } // namespace content | 632 } // namespace content |
633 | 633 |
634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |