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

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

Issue 2553603002: New accessibility virtual keyboard behavior in non-sticky mode. (Closed)
Patch Set: Remove unused variable Created 3 years, 8 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 protected: 325 protected:
326 ~RenderWidgetHostViewAura() override; 326 ~RenderWidgetHostViewAura() override;
327 327
328 // Exposed for tests. 328 // Exposed for tests.
329 aura::Window* window() { return window_; } 329 aura::Window* window() { return window_; }
330 330
331 DelegatedFrameHost* GetDelegatedFrameHost() const { 331 DelegatedFrameHost* GetDelegatedFrameHost() const {
332 return delegated_frame_host_.get(); 332 return delegated_frame_host_.get();
333 } 333 }
334 334
335 // Returns the top level window that is hosting the renderwidget.
336 virtual aura::Window* GetToplevelWindow();
337
335 private: 338 private:
336 friend class DelegatedFrameHostClientAura; 339 friend class DelegatedFrameHostClientAura;
337 friend class InputMethodAuraTestBase; 340 friend class InputMethodAuraTestBase;
338 friend class RenderWidgetHostViewAuraTest; 341 friend class RenderWidgetHostViewAuraTest;
339 friend class RenderWidgetHostViewAuraCopyRequestTest; 342 friend class RenderWidgetHostViewAuraCopyRequestTest;
340 friend class TestInputMethodObserver; 343 friend class TestInputMethodObserver;
341 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, 344 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest,
342 FinishImeCompositionSession); 345 FinishImeCompositionSession);
343 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 346 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
344 PopupRetainsCaptureAfterMouseRelease); 347 PopupRetainsCaptureAfterMouseRelease);
(...skipping 18 matching lines...) Expand all
363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
364 UpdateCursorIfOverSelf); 367 UpdateCursorIfOverSelf);
365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
366 VisibleViewportTest); 369 VisibleViewportTest);
367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
368 OverscrollResetsOnBlur); 371 OverscrollResetsOnBlur);
369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
370 FinishCompositionByMouse); 373 FinishCompositionByMouse);
371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 374 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
372 ForwardsBeginFrameAcks); 375 ForwardsBeginFrameAcks);
376 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
377 VirtualKeyboardFocusEnsureCaretInRect);
373 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, 378 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest,
374 WebContentsViewReparent); 379 WebContentsViewReparent);
375 380
376 class WindowObserver; 381 class WindowObserver;
377 friend class WindowObserver; 382 friend class WindowObserver;
378 383
379 class WindowAncestorObserver; 384 class WindowAncestorObserver;
380 friend class WindowAncestorObserver; 385 friend class WindowAncestorObserver;
381 386
382 void CreateAuraWindow(ui::wm::WindowType type); 387 void CreateAuraWindow(ui::wm::WindowType type);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 441
437 void OnBeginFrame(const cc::BeginFrameArgs& args); 442 void OnBeginFrame(const cc::BeginFrameArgs& args);
438 443
439 // Detaches |this| from the input method object. 444 // Detaches |this| from the input method object.
440 void DetachFromInputMethod(); 445 void DetachFromInputMethod();
441 446
442 // Dismisses a Web Popup on a mouse or touch press outside the popup and its 447 // Dismisses a Web Popup on a mouse or touch press outside the popup and its
443 // parent. 448 // parent.
444 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); 449 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event);
445 450
446 // Converts |rect| from screen coordinate to window coordinate.
447 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
448
449 // Called when the parent window bounds change. 451 // Called when the parent window bounds change.
450 void HandleParentBoundsChanged(); 452 void HandleParentBoundsChanged();
451 453
452 // Called when the parent window hierarchy for our window changes. 454 // Called when the parent window hierarchy for our window changes.
453 void ParentHierarchyChanged(); 455 void ParentHierarchyChanged();
454 456
455 // Helper function to create a selection controller. 457 // Helper function to create a selection controller.
456 void CreateSelectionController(); 458 void CreateSelectionController();
457 459
458 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| 460 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_|
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 587 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
586 588
587 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 589 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
588 590
589 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 591 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
590 }; 592 };
591 593
592 } // namespace content 594 } // namespace content
593 595
594 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 596 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698