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

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

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed line length Created 4 years 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 // Converts |rect| from screen coordinate to window coordinate. 457 // Converts |rect| from screen coordinate to window coordinate.
458 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; 458 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
459 459
460 // Called when the parent window bounds change. 460 // Called when the parent window bounds change.
461 void HandleParentBoundsChanged(); 461 void HandleParentBoundsChanged();
462 462
463 // Called when the parent window hierarchy for our window changes. 463 // Called when the parent window hierarchy for our window changes.
464 void ParentHierarchyChanged(); 464 void ParentHierarchyChanged();
465 465
466 // Helper function to be called whenever new selection information is
467 // received. It will update selection controller.
468 void SelectionUpdated(bool is_editable,
469 bool is_empty_text_form_control,
470 const gfx::SelectionBound& start,
471 const gfx::SelectionBound& end);
472
473 // Helper function to create a selection controller. 466 // Helper function to create a selection controller.
474 void CreateSelectionController(); 467 void CreateSelectionController();
475 468
476 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_| 469 // Used to set the |popup_child_host_view_| on the |popup_parent_host_view_|
477 // and to notify the |event_handler_|. 470 // and to notify the |event_handler_|.
478 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view); 471 void SetPopupChild(RenderWidgetHostViewAura* popup_child_host_view);
479 472
480 // Forwards a mouse event to this view's parent window delegate. 473 // Forwards a mouse event to this view's parent window delegate.
481 void ForwardMouseEventToParent(ui::MouseEvent* event); 474 void ForwardMouseEventToParent(ui::MouseEvent* event);
482 475
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_; 594 std::unique_ptr<RenderWidgetHostViewEventHandler> event_handler_;
602 595
603 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 596 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
604 597
605 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 598 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
606 }; 599 };
607 600
608 } // namespace content 601 } // namespace content
609 602
610 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 603 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698