OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 #include "content/browser/compositor/owned_mailbox.h" | 22 #include "content/browser/compositor/owned_mailbox.h" |
23 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 23 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
25 #include "content/common/cursors/webcursor.h" | 25 #include "content/common/cursors/webcursor.h" |
26 #include "third_party/skia/include/core/SkRegion.h" | 26 #include "third_party/skia/include/core/SkRegion.h" |
27 #include "ui/aura/client/cursor_client_observer.h" | 27 #include "ui/aura/client/cursor_client_observer.h" |
28 #include "ui/aura/client/focus_change_observer.h" | 28 #include "ui/aura/client/focus_change_observer.h" |
29 #include "ui/aura/window_delegate.h" | 29 #include "ui/aura/window_delegate.h" |
30 #include "ui/aura/window_tree_host_observer.h" | 30 #include "ui/aura/window_tree_host_observer.h" |
31 #include "ui/base/ime/text_input_client.h" | 31 #include "ui/base/ime/text_input_client.h" |
| 32 #include "ui/base/touch/touch_editing_controller.h" |
32 #include "ui/gfx/display_observer.h" | 33 #include "ui/gfx/display_observer.h" |
33 #include "ui/gfx/insets.h" | 34 #include "ui/gfx/insets.h" |
34 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/rect.h" |
35 #include "ui/wm/public/activation_change_observer.h" | 36 #include "ui/wm/public/activation_change_observer.h" |
36 #include "ui/wm/public/activation_delegate.h" | 37 #include "ui/wm/public/activation_delegate.h" |
37 | 38 |
38 namespace aura { | 39 namespace aura { |
39 class WindowTracker; | 40 class WindowTracker; |
40 namespace client { | 41 namespace client { |
41 class ScopedTooltipDisabler; | 42 class ScopedTooltipDisabler; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 TouchEditingClient() {} | 95 TouchEditingClient() {} |
95 | 96 |
96 // Tells the client to start showing touch editing handles. | 97 // Tells the client to start showing touch editing handles. |
97 virtual void StartTouchEditing() = 0; | 98 virtual void StartTouchEditing() = 0; |
98 | 99 |
99 // Notifies the client that touch editing is no longer needed. |quick| | 100 // Notifies the client that touch editing is no longer needed. |quick| |
100 // determines whether the handles should fade out quickly or slowly. | 101 // determines whether the handles should fade out quickly or slowly. |
101 virtual void EndTouchEditing(bool quick) = 0; | 102 virtual void EndTouchEditing(bool quick) = 0; |
102 | 103 |
103 // Notifies the client that the selection bounds need to be updated. | 104 // Notifies the client that the selection bounds need to be updated. |
104 virtual void OnSelectionOrCursorChanged(const gfx::Rect& anchor, | 105 virtual void OnSelectionOrCursorChanged( |
105 const gfx::Rect& focus) = 0; | 106 const ui::SelectionBound& anchor, |
| 107 const ui::SelectionBound& focus) = 0; |
106 | 108 |
107 // Notifies the client that the current text input type as changed. | 109 // Notifies the client that the current text input type as changed. |
108 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; | 110 virtual void OnTextInputTypeChanged(ui::TextInputType type) = 0; |
109 | 111 |
110 // Notifies the client that an input event is about to be sent to the | 112 // Notifies the client that an input event is about to be sent to the |
111 // renderer. Returns true if the client wants to stop event propagation. | 113 // renderer. Returns true if the client wants to stop event propagation. |
112 virtual bool HandleInputEvent(const ui::Event* event) = 0; | 114 virtual bool HandleInputEvent(const ui::Event* event) = 0; |
113 | 115 |
114 // Notifies the client that a gesture event ack was received. | 116 // Notifies the client that a gesture event ack was received. |
115 virtual void GestureEventAck(int gesture_event_type) = 0; | 117 virtual void GestureEventAck(int gesture_event_type) = 0; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 blink::WebTouchEvent touch_event_; | 521 blink::WebTouchEvent touch_event_; |
520 | 522 |
521 // The current text input type. | 523 // The current text input type. |
522 ui::TextInputType text_input_type_; | 524 ui::TextInputType text_input_type_; |
523 // The current text input mode corresponding to HTML5 inputmode attribute. | 525 // The current text input mode corresponding to HTML5 inputmode attribute. |
524 ui::TextInputMode text_input_mode_; | 526 ui::TextInputMode text_input_mode_; |
525 // The current text input flags. | 527 // The current text input flags. |
526 int text_input_flags_; | 528 int text_input_flags_; |
527 bool can_compose_inline_; | 529 bool can_compose_inline_; |
528 | 530 |
529 // Rectangles for the selection anchor and focus. | 531 // Bounds for the selection. |
530 gfx::Rect selection_anchor_rect_; | 532 ui::SelectionBound selection_anchor_; |
531 gfx::Rect selection_focus_rect_; | 533 ui::SelectionBound selection_focus_; |
532 | 534 |
533 // The current composition character bounds. | 535 // The current composition character bounds. |
534 std::vector<gfx::Rect> composition_character_bounds_; | 536 std::vector<gfx::Rect> composition_character_bounds_; |
535 | 537 |
536 // Indicates if there is onging composition text. | 538 // Indicates if there is onging composition text. |
537 bool has_composition_text_; | 539 bool has_composition_text_; |
538 | 540 |
539 // Whether return characters should be passed on to the RenderWidgetHostImpl. | 541 // Whether return characters should be passed on to the RenderWidgetHostImpl. |
540 bool accept_return_character_; | 542 bool accept_return_character_; |
541 | 543 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 // view, so we can ensure the window hasn't moved between copying from the | 625 // view, so we can ensure the window hasn't moved between copying from the |
624 // compositing surface and showing the disambiguation popup. | 626 // compositing surface and showing the disambiguation popup. |
625 gfx::Vector2dF disambiguation_scroll_offset_; | 627 gfx::Vector2dF disambiguation_scroll_offset_; |
626 | 628 |
627 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
628 }; | 630 }; |
629 | 631 |
630 } // namespace content | 632 } // namespace content |
631 | 633 |
632 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |