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

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

Issue 2034863002: Move SelectionBound from ui/base/touch to ui/gfx to be used by cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated views_unittests Created 4 years, 6 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 19 matching lines...) Expand all
30 #include "content/common/content_export.h" 30 #include "content/common/content_export.h"
31 #include "content/common/cursors/webcursor.h" 31 #include "content/common/cursors/webcursor.h"
32 #include "content/public/common/context_menu_params.h" 32 #include "content/public/common/context_menu_params.h"
33 #include "third_party/skia/include/core/SkRegion.h" 33 #include "third_party/skia/include/core/SkRegion.h"
34 #include "ui/aura/client/cursor_client_observer.h" 34 #include "ui/aura/client/cursor_client_observer.h"
35 #include "ui/aura/client/focus_change_observer.h" 35 #include "ui/aura/client/focus_change_observer.h"
36 #include "ui/aura/window_delegate.h" 36 #include "ui/aura/window_delegate.h"
37 #include "ui/aura/window_tracker.h" 37 #include "ui/aura/window_tracker.h"
38 #include "ui/aura/window_tree_host_observer.h" 38 #include "ui/aura/window_tree_host_observer.h"
39 #include "ui/base/ime/text_input_client.h" 39 #include "ui/base/ime/text_input_client.h"
40 #include "ui/base/touch/selection_bound.h"
41 #include "ui/display/display_observer.h" 40 #include "ui/display/display_observer.h"
42 #include "ui/events/gestures/motion_event_aura.h" 41 #include "ui/events/gestures/motion_event_aura.h"
43 #include "ui/gfx/geometry/insets.h" 42 #include "ui/gfx/geometry/insets.h"
44 #include "ui/gfx/geometry/rect.h" 43 #include "ui/gfx/geometry/rect.h"
44 #include "ui/gfx/selection_bound.h"
45 #include "ui/wm/public/activation_delegate.h" 45 #include "ui/wm/public/activation_delegate.h"
46 46
47 namespace aura { 47 namespace aura {
48 namespace client { 48 namespace client {
49 class ScopedTooltipDisabler; 49 class ScopedTooltipDisabler;
50 } 50 }
51 } 51 }
52 52
53 namespace cc { 53 namespace cc {
54 class CopyOutputRequest; 54 class CopyOutputRequest;
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // Called when the parent window bounds change. 507 // Called when the parent window bounds change.
508 void HandleParentBoundsChanged(); 508 void HandleParentBoundsChanged();
509 509
510 // Called when the parent window hierarchy for our window changes. 510 // Called when the parent window hierarchy for our window changes.
511 void ParentHierarchyChanged(); 511 void ParentHierarchyChanged();
512 512
513 // Helper function to be called whenever new selection information is 513 // Helper function to be called whenever new selection information is
514 // received. It will update selection controller. 514 // received. It will update selection controller.
515 void SelectionUpdated(bool is_editable, 515 void SelectionUpdated(bool is_editable,
516 bool is_empty_text_form_control, 516 bool is_empty_text_form_control,
517 const ui::SelectionBound& start, 517 const gfx::SelectionBound& start,
518 const ui::SelectionBound& end); 518 const gfx::SelectionBound& end);
519 519
520 // Helper function to create a selection controller. 520 // Helper function to create a selection controller.
521 void CreateSelectionController(); 521 void CreateSelectionController();
522 522
523 // Performs gesture handling needed for touch text selection. Sets event as 523 // Performs gesture handling needed for touch text selection. Sets event as
524 // handled if it should not be further processed. 524 // handled if it should not be further processed.
525 void HandleGestureForTouchSelection(ui::GestureEvent* event); 525 void HandleGestureForTouchSelection(ui::GestureEvent* event);
526 526
527 // Forwards a mouse event to this view's parent window delegate. 527 // Forwards a mouse event to this view's parent window delegate.
528 void ForwardMouseEventToParent(ui::MouseEvent* event); 528 void ForwardMouseEventToParent(ui::MouseEvent* event);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 576
577 // The current text input type. 577 // The current text input type.
578 ui::TextInputType text_input_type_; 578 ui::TextInputType text_input_type_;
579 // The current text input mode corresponding to HTML5 inputmode attribute. 579 // The current text input mode corresponding to HTML5 inputmode attribute.
580 ui::TextInputMode text_input_mode_; 580 ui::TextInputMode text_input_mode_;
581 // The current text input flags. 581 // The current text input flags.
582 int text_input_flags_; 582 int text_input_flags_;
583 bool can_compose_inline_; 583 bool can_compose_inline_;
584 584
585 // Bounds for the selection. 585 // Bounds for the selection.
586 ui::SelectionBound selection_anchor_; 586 gfx::SelectionBound selection_anchor_;
587 ui::SelectionBound selection_focus_; 587 gfx::SelectionBound selection_focus_;
588 588
589 // The current composition character bounds. 589 // The current composition character bounds.
590 std::vector<gfx::Rect> composition_character_bounds_; 590 std::vector<gfx::Rect> composition_character_bounds_;
591 591
592 // Indicates if there is onging composition text. 592 // Indicates if there is onging composition text.
593 bool has_composition_text_; 593 bool has_composition_text_;
594 594
595 // Whether return characters should be passed on to the RenderWidgetHostImpl. 595 // Whether return characters should be passed on to the RenderWidgetHostImpl.
596 bool accept_return_character_; 596 bool accept_return_character_;
597 597
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 bool disable_input_event_router_for_testing_; 691 bool disable_input_event_router_for_testing_;
692 692
693 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 693 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
694 694
695 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 695 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
696 }; 696 };
697 697
698 } // namespace content 698 } // namespace content
699 699
700 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 700 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698