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

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

Issue 1889313002: Revert of Browser Side Text Input State Tracking for OOPIF (Manual). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 25 matching lines...) Expand all
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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 // True when content is being loaded. Used to show an hourglass cursor. 561 // True when content is being loaded. Used to show an hourglass cursor.
559 bool is_loading_; 562 bool is_loading_;
560 563
561 // The cursor for the page. This is passed up from the renderer. 564 // The cursor for the page. This is passed up from the renderer.
562 WebCursor current_cursor_; 565 WebCursor current_cursor_;
563 566
564 // Stores the current state of the active pointers targeting this 567 // Stores the current state of the active pointers targeting this
565 // object. 568 // object.
566 ui::MotionEventAura pointer_state_; 569 ui::MotionEventAura pointer_state_;
567 570
571 // The current text input type.
572 ui::TextInputType text_input_type_;
573 // The current text input mode corresponding to HTML5 inputmode attribute.
574 ui::TextInputMode text_input_mode_;
575 // The current text input flags.
576 int text_input_flags_;
577 bool can_compose_inline_;
578
568 // Bounds for the selection. 579 // Bounds for the selection.
569 ui::SelectionBound selection_anchor_; 580 ui::SelectionBound selection_anchor_;
570 ui::SelectionBound selection_focus_; 581 ui::SelectionBound selection_focus_;
571 582
572 // The current composition character bounds. 583 // The current composition character bounds.
573 std::vector<gfx::Rect> composition_character_bounds_; 584 std::vector<gfx::Rect> composition_character_bounds_;
574 585
575 // Indicates if there is onging composition text. 586 // Indicates if there is onging composition text.
576 bool has_composition_text_; 587 bool has_composition_text_;
577 588
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 bool disable_input_event_router_for_testing_; 691 bool disable_input_event_router_for_testing_;
681 692
682 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 693 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
683 694
684 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 695 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
685 }; 696 };
686 697
687 } // namespace content 698 } // namespace content
688 699
689 #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