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

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

Issue 2132633002: Tracking composition range on the browser side (Aura) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Fixes Created 4 years, 5 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void FocusedNodeTouched(const gfx::Point& location_dips_screen, 135 void FocusedNodeTouched(const gfx::Point& location_dips_screen,
136 bool editable) override; 136 bool editable) override;
137 137
138 // Overridden from RenderWidgetHostViewBase: 138 // Overridden from RenderWidgetHostViewBase:
139 void InitAsPopup(RenderWidgetHostView* parent_host_view, 139 void InitAsPopup(RenderWidgetHostView* parent_host_view,
140 const gfx::Rect& pos) override; 140 const gfx::Rect& pos) override;
141 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 141 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
142 void Focus() override; 142 void Focus() override;
143 void UpdateCursor(const WebCursor& cursor) override; 143 void UpdateCursor(const WebCursor& cursor) override;
144 void SetIsLoading(bool is_loading) override; 144 void SetIsLoading(bool is_loading) override;
145 void ImeCompositionRangeChanged(
146 const gfx::Range& range,
147 const std::vector<gfx::Rect>& character_bounds) override;
148 void RenderProcessGone(base::TerminationStatus status, 145 void RenderProcessGone(base::TerminationStatus status,
149 int error_code) override; 146 int error_code) override;
150 void Destroy() override; 147 void Destroy() override;
151 void SetTooltipText(const base::string16& tooltip_text) override; 148 void SetTooltipText(const base::string16& tooltip_text) override;
152 void SelectionChanged(const base::string16& text, 149 void SelectionChanged(const base::string16& text,
153 size_t offset, 150 size_t offset,
154 const gfx::Range& range) override; 151 const gfx::Range& range) override;
155 gfx::Size GetRequestedRendererSize() const override; 152 gfx::Size GetRequestedRendererSize() const override;
156 void CopyFromCompositingSurface( 153 void CopyFromCompositingSurface(
157 const gfx::Rect& src_subrect, 154 const gfx::Rect& src_subrect,
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // True when content is being loaded. Used to show an hourglass cursor. 576 // True when content is being loaded. Used to show an hourglass cursor.
580 bool is_loading_; 577 bool is_loading_;
581 578
582 // The cursor for the page. This is passed up from the renderer. 579 // The cursor for the page. This is passed up from the renderer.
583 WebCursor current_cursor_; 580 WebCursor current_cursor_;
584 581
585 // Stores the current state of the active pointers targeting this 582 // Stores the current state of the active pointers targeting this
586 // object. 583 // object.
587 ui::MotionEventAura pointer_state_; 584 ui::MotionEventAura pointer_state_;
588 585
589 // The current composition character bounds.
590 std::vector<gfx::Rect> composition_character_bounds_;
591 586
592 // Indicates if there is onging composition text. 587 // Indicates if there is onging composition text.
593 bool has_composition_text_; 588 bool has_composition_text_;
594 589
595 // Whether return characters should be passed on to the RenderWidgetHostImpl. 590 // Whether return characters should be passed on to the RenderWidgetHostImpl.
596 bool accept_return_character_; 591 bool accept_return_character_;
597 592
598 // Current tooltip text. 593 // Current tooltip text.
599 base::string16 tooltip_; 594 base::string16 tooltip_;
600 595
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 bool disable_input_event_router_for_testing_; 686 bool disable_input_event_router_for_testing_;
692 687
693 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 688 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
694 689
695 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 690 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
696 }; 691 };
697 692
698 } // namespace content 693 } // namespace content
699 694
700 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 695 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698