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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "ui/aura/window_delegate.h" | 36 #include "ui/aura/window_delegate.h" |
37 #include "ui/aura/window_tree_host_observer.h" | 37 #include "ui/aura/window_tree_host_observer.h" |
38 #include "ui/base/ime/text_input_client.h" | 38 #include "ui/base/ime/text_input_client.h" |
39 #include "ui/base/touch/selection_bound.h" | 39 #include "ui/base/touch/selection_bound.h" |
40 #include "ui/events/gestures/motion_event_aura.h" | 40 #include "ui/events/gestures/motion_event_aura.h" |
41 #include "ui/gfx/display_observer.h" | 41 #include "ui/gfx/display_observer.h" |
42 #include "ui/gfx/geometry/insets.h" | 42 #include "ui/gfx/geometry/insets.h" |
43 #include "ui/gfx/geometry/rect.h" | 43 #include "ui/gfx/geometry/rect.h" |
44 #include "ui/wm/public/activation_delegate.h" | 44 #include "ui/wm/public/activation_delegate.h" |
45 | 45 |
| 46 struct ViewHostMsg_TextInputState_Params; |
| 47 |
46 namespace aura { | 48 namespace aura { |
47 class WindowTracker; | 49 class WindowTracker; |
48 namespace client { | 50 namespace client { |
49 class ScopedTooltipDisabler; | 51 class ScopedTooltipDisabler; |
50 } | 52 } |
51 } | 53 } |
52 | 54 |
53 namespace cc { | 55 namespace cc { |
54 class CopyOutputRequest; | 56 class CopyOutputRequest; |
55 class CopyOutputResult; | 57 class CopyOutputResult; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 gfx::Size GetVisibleViewportSize() const override; | 129 gfx::Size GetVisibleViewportSize() const override; |
128 void SetInsets(const gfx::Insets& insets) override; | 130 void SetInsets(const gfx::Insets& insets) override; |
129 | 131 |
130 // Overridden from RenderWidgetHostViewBase: | 132 // Overridden from RenderWidgetHostViewBase: |
131 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 133 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
132 const gfx::Rect& pos) override; | 134 const gfx::Rect& pos) override; |
133 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
134 void Focus() override; | 136 void Focus() override; |
135 void UpdateCursor(const WebCursor& cursor) override; | 137 void UpdateCursor(const WebCursor& cursor) override; |
136 void SetIsLoading(bool is_loading) override; | 138 void SetIsLoading(bool is_loading) override; |
137 void UpdateInputMethodIfNecessary(bool text_input_state_changed) override; | 139 void TextInputStateChanged( |
| 140 const ViewHostMsg_TextInputState_Params& params) override; |
138 void ImeCancelComposition() override; | 141 void ImeCancelComposition() override; |
139 void ImeCompositionRangeChanged( | 142 void ImeCompositionRangeChanged( |
140 const gfx::Range& range, | 143 const gfx::Range& range, |
141 const std::vector<gfx::Rect>& character_bounds) override; | 144 const std::vector<gfx::Rect>& character_bounds) override; |
142 void RenderProcessGone(base::TerminationStatus status, | 145 void RenderProcessGone(base::TerminationStatus status, |
143 int error_code) override; | 146 int error_code) override; |
144 void Destroy() override; | 147 void Destroy() override; |
145 void SetTooltipText(const base::string16& tooltip_text) override; | 148 void SetTooltipText(const base::string16& tooltip_text) override; |
146 void SelectionChanged(const base::string16& text, | 149 void SelectionChanged(const base::string16& text, |
147 size_t offset, | 150 size_t offset, |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 // True when content is being loaded. Used to show an hourglass cursor. | 559 // True when content is being loaded. Used to show an hourglass cursor. |
557 bool is_loading_; | 560 bool is_loading_; |
558 | 561 |
559 // The cursor for the page. This is passed up from the renderer. | 562 // The cursor for the page. This is passed up from the renderer. |
560 WebCursor current_cursor_; | 563 WebCursor current_cursor_; |
561 | 564 |
562 // Stores the current state of the active pointers targeting this | 565 // Stores the current state of the active pointers targeting this |
563 // object. | 566 // object. |
564 ui::MotionEventAura pointer_state_; | 567 ui::MotionEventAura pointer_state_; |
565 | 568 |
| 569 // The current text input type. |
| 570 ui::TextInputType text_input_type_; |
| 571 // The current text input mode corresponding to HTML5 inputmode attribute. |
| 572 ui::TextInputMode text_input_mode_; |
| 573 // The current text input flags. |
| 574 int text_input_flags_; |
| 575 bool can_compose_inline_; |
| 576 |
566 // Bounds for the selection. | 577 // Bounds for the selection. |
567 ui::SelectionBound selection_anchor_; | 578 ui::SelectionBound selection_anchor_; |
568 ui::SelectionBound selection_focus_; | 579 ui::SelectionBound selection_focus_; |
569 | 580 |
570 // The current composition character bounds. | 581 // The current composition character bounds. |
571 std::vector<gfx::Rect> composition_character_bounds_; | 582 std::vector<gfx::Rect> composition_character_bounds_; |
572 | 583 |
573 // Indicates if there is onging composition text. | 584 // Indicates if there is onging composition text. |
574 bool has_composition_text_; | 585 bool has_composition_text_; |
575 | 586 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 bool disable_input_event_router_for_testing_; | 688 bool disable_input_event_router_for_testing_; |
678 | 689 |
679 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 690 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
680 | 691 |
681 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 692 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
682 }; | 693 }; |
683 | 694 |
684 } // namespace content | 695 } // namespace content |
685 | 696 |
686 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 697 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |