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

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: Fix the build error on Linux and Windows 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 protected: 327 protected:
328 ~RenderWidgetHostViewAura() override; 328 ~RenderWidgetHostViewAura() override;
329 329
330 // Exposed for tests. 330 // Exposed for tests.
331 aura::Window* window() { return window_; } 331 aura::Window* window() { return window_; }
332 332
333 DelegatedFrameHost* GetDelegatedFrameHost() const { 333 DelegatedFrameHost* GetDelegatedFrameHost() const {
334 return delegated_frame_host_.get(); 334 return delegated_frame_host_.get();
335 } 335 }
336 336
337 // Returns the top level window that is hosting the renderwidget.
338 virtual aura::Window* GetToplevelWindow();
339
337 private: 340 private:
338 friend class DelegatedFrameHostClientAura; 341 friend class DelegatedFrameHostClientAura;
339 friend class InputMethodAuraTestBase; 342 friend class InputMethodAuraTestBase;
340 friend class RenderWidgetHostViewAuraTest; 343 friend class RenderWidgetHostViewAuraTest;
341 friend class RenderWidgetHostViewAuraCopyRequestTest; 344 friend class RenderWidgetHostViewAuraCopyRequestTest;
342 friend class TestInputMethodObserver; 345 friend class TestInputMethodObserver;
343 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest, 346 FRIEND_TEST_ALL_PREFIXES(InputMethodResultAuraTest,
344 FinishImeCompositionSession); 347 FinishImeCompositionSession);
345 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 348 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
346 PopupRetainsCaptureAfterMouseRelease); 349 PopupRetainsCaptureAfterMouseRelease);
(...skipping 19 matching lines...) Expand all
366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 369 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
367 UpdateCursorIfOverSelf); 370 UpdateCursorIfOverSelf);
368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 371 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
369 VisibleViewportTest); 372 VisibleViewportTest);
370 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 373 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
371 OverscrollResetsOnBlur); 374 OverscrollResetsOnBlur);
372 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 375 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
373 FinishCompositionByMouse); 376 FinishCompositionByMouse);
374 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 377 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
375 ForwardsBeginFrameAcks); 378 ForwardsBeginFrameAcks);
379 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
380 VirtualKeyboardFocusEnsureCaretInRect);
376 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest, 381 FRIEND_TEST_ALL_PREFIXES(WebContentsViewAuraTest,
377 WebContentsViewReparent); 382 WebContentsViewReparent);
378 383
379 class WindowObserver; 384 class WindowObserver;
380 friend class WindowObserver; 385 friend class WindowObserver;
381 386
382 class WindowAncestorObserver; 387 class WindowAncestorObserver;
383 friend class WindowAncestorObserver; 388 friend class WindowAncestorObserver;
384 389
385 void CreateAuraWindow(ui::wm::WindowType type); 390 void CreateAuraWindow(ui::wm::WindowType type);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 444
440 void OnBeginFrame(const cc::BeginFrameArgs& args); 445 void OnBeginFrame(const cc::BeginFrameArgs& args);
441 446
442 // Detaches |this| from the input method object. 447 // Detaches |this| from the input method object.
443 void DetachFromInputMethod(); 448 void DetachFromInputMethod();
444 449
445 // Dismisses a Web Popup on a mouse or touch press outside the popup and its 450 // Dismisses a Web Popup on a mouse or touch press outside the popup and its
446 // parent. 451 // parent.
447 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event); 452 void ApplyEventFilterForPopupExit(ui::LocatedEvent* event);
448 453
449 // Converts |rect| from screen coordinate to window coordinate.
450 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
451
452 // Called when the parent window bounds change. 454 // Called when the parent window bounds change.
453 void HandleParentBoundsChanged(); 455 void HandleParentBoundsChanged();
454 456
455 // Called when the parent window hierarchy for our window changes. 457 // Called when the parent window hierarchy for our window changes.
456 void ParentHierarchyChanged(); 458 void ParentHierarchyChanged();
457 459
458 // Helper function to create a selection controller. 460 // Helper function to create a selection controller.
459 void CreateSelectionController(); 461 void CreateSelectionController();
460 462
461 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| 463 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_|
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 593 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
592 594
593 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 595 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
594 596
595 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 597 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
596 }; 598 };
597 599
598 } // namespace content 600 } // namespace content
599 601
600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 602 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698