| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 blink::WebTouchEvent touch_event_; | 520 blink::WebTouchEvent touch_event_; |
| 519 | 521 |
| 520 // The current text input type. | 522 // The current text input type. |
| 521 ui::TextInputType text_input_type_; | 523 ui::TextInputType text_input_type_; |
| 522 // The current text input mode corresponding to HTML5 inputmode attribute. | 524 // The current text input mode corresponding to HTML5 inputmode attribute. |
| 523 ui::TextInputMode text_input_mode_; | 525 ui::TextInputMode text_input_mode_; |
| 524 // The current text input flags. | 526 // The current text input flags. |
| 525 int text_input_flags_; | 527 int text_input_flags_; |
| 526 bool can_compose_inline_; | 528 bool can_compose_inline_; |
| 527 | 529 |
| 528 // Rectangles for the selection anchor and focus. | 530 // Bounds for the selection. |
| 529 gfx::Rect selection_anchor_rect_; | 531 ui::SelectionBound selection_anchor_; |
| 530 gfx::Rect selection_focus_rect_; | 532 ui::SelectionBound selection_focus_; |
| 531 | 533 |
| 532 // The current composition character bounds. | 534 // The current composition character bounds. |
| 533 std::vector<gfx::Rect> composition_character_bounds_; | 535 std::vector<gfx::Rect> composition_character_bounds_; |
| 534 | 536 |
| 535 // Indicates if there is onging composition text. | 537 // Indicates if there is onging composition text. |
| 536 bool has_composition_text_; | 538 bool has_composition_text_; |
| 537 | 539 |
| 538 // Whether return characters should be passed on to the RenderWidgetHostImpl. | 540 // Whether return characters should be passed on to the RenderWidgetHostImpl. |
| 539 bool accept_return_character_; | 541 bool accept_return_character_; |
| 540 | 542 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 // view, so we can ensure the window hasn't moved between copying from the | 624 // view, so we can ensure the window hasn't moved between copying from the |
| 623 // compositing surface and showing the disambiguation popup. | 625 // compositing surface and showing the disambiguation popup. |
| 624 gfx::Vector2dF disambiguation_scroll_offset_; | 626 gfx::Vector2dF disambiguation_scroll_offset_; |
| 625 | 627 |
| 626 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 627 }; | 629 }; |
| 628 | 630 |
| 629 } // namespace content | 631 } // namespace content |
| 630 | 632 |
| 631 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |