| 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 | |
| 48 namespace aura { | 46 namespace aura { |
| 49 class WindowTracker; | 47 class WindowTracker; |
| 50 namespace client { | 48 namespace client { |
| 51 class ScopedTooltipDisabler; | 49 class ScopedTooltipDisabler; |
| 52 } | 50 } |
| 53 } | 51 } |
| 54 | 52 |
| 55 namespace cc { | 53 namespace cc { |
| 56 class CopyOutputRequest; | 54 class CopyOutputRequest; |
| 57 class CopyOutputResult; | 55 class CopyOutputResult; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void SetInsets(const gfx::Insets& insets) override; | 128 void SetInsets(const gfx::Insets& insets) override; |
| 131 | 129 |
| 132 // Overridden from RenderWidgetHostViewBase: | 130 // Overridden from RenderWidgetHostViewBase: |
| 133 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 131 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 134 const gfx::Rect& pos) override; | 132 const gfx::Rect& pos) override; |
| 135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 133 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
| 136 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; | 134 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; |
| 137 void Focus() override; | 135 void Focus() override; |
| 138 void UpdateCursor(const WebCursor& cursor) override; | 136 void UpdateCursor(const WebCursor& cursor) override; |
| 139 void SetIsLoading(bool is_loading) override; | 137 void SetIsLoading(bool is_loading) override; |
| 140 void TextInputStateChanged( | 138 void UpdateTextInputState() override; |
| 141 const ViewHostMsg_TextInputState_Params& params) override; | |
| 142 void ImeCancelComposition() override; | 139 void ImeCancelComposition() override; |
| 143 void ImeCompositionRangeChanged( | 140 void ImeCompositionRangeChanged( |
| 144 const gfx::Range& range, | 141 const gfx::Range& range, |
| 145 const std::vector<gfx::Rect>& character_bounds) override; | 142 const std::vector<gfx::Rect>& character_bounds) override; |
| 146 void RenderProcessGone(base::TerminationStatus status, | 143 void RenderProcessGone(base::TerminationStatus status, |
| 147 int error_code) override; | 144 int error_code) override; |
| 148 void Destroy() override; | 145 void Destroy() override; |
| 149 void SetTooltipText(const base::string16& tooltip_text) override; | 146 void SetTooltipText(const base::string16& tooltip_text) override; |
| 150 void SelectionChanged(const base::string16& text, | 147 void SelectionChanged(const base::string16& text, |
| 151 size_t offset, | 148 size_t offset, |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 // True when content is being loaded. Used to show an hourglass cursor. | 566 // True when content is being loaded. Used to show an hourglass cursor. |
| 570 bool is_loading_; | 567 bool is_loading_; |
| 571 | 568 |
| 572 // The cursor for the page. This is passed up from the renderer. | 569 // The cursor for the page. This is passed up from the renderer. |
| 573 WebCursor current_cursor_; | 570 WebCursor current_cursor_; |
| 574 | 571 |
| 575 // Stores the current state of the active pointers targeting this | 572 // Stores the current state of the active pointers targeting this |
| 576 // object. | 573 // object. |
| 577 ui::MotionEventAura pointer_state_; | 574 ui::MotionEventAura pointer_state_; |
| 578 | 575 |
| 579 // The current text input type. | |
| 580 ui::TextInputType text_input_type_; | |
| 581 // The current text input mode corresponding to HTML5 inputmode attribute. | |
| 582 ui::TextInputMode text_input_mode_; | |
| 583 // The current text input flags. | |
| 584 int text_input_flags_; | |
| 585 bool can_compose_inline_; | |
| 586 | |
| 587 // Bounds for the selection. | 576 // Bounds for the selection. |
| 588 ui::SelectionBound selection_anchor_; | 577 ui::SelectionBound selection_anchor_; |
| 589 ui::SelectionBound selection_focus_; | 578 ui::SelectionBound selection_focus_; |
| 590 | 579 |
| 591 // The current composition character bounds. | 580 // The current composition character bounds. |
| 592 std::vector<gfx::Rect> composition_character_bounds_; | 581 std::vector<gfx::Rect> composition_character_bounds_; |
| 593 | 582 |
| 594 // Indicates if there is onging composition text. | 583 // Indicates if there is onging composition text. |
| 595 bool has_composition_text_; | 584 bool has_composition_text_; |
| 596 | 585 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 float device_scale_factor_; | 693 float device_scale_factor_; |
| 705 | 694 |
| 706 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; | 695 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; |
| 707 | 696 |
| 708 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 697 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 709 }; | 698 }; |
| 710 | 699 |
| 711 } // namespace content | 700 } // namespace content |
| 712 | 701 |
| 713 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 702 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |