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

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

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

Powered by Google App Engine
This is Rietveld 408576698