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

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

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void SetInsets(const gfx::Insets& insets) override; 130 void SetInsets(const gfx::Insets& insets) override;
131 131
132 // Overridden from RenderWidgetHostViewBase: 132 // Overridden from RenderWidgetHostViewBase:
133 void InitAsPopup(RenderWidgetHostView* parent_host_view, 133 void InitAsPopup(RenderWidgetHostView* parent_host_view,
134 const gfx::Rect& pos) override; 134 const gfx::Rect& pos) override;
135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
136 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override; 136 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
137 void Focus() override; 137 void Focus() override;
138 void UpdateCursor(const WebCursor& cursor) override; 138 void UpdateCursor(const WebCursor& cursor) override;
139 void SetIsLoading(bool is_loading) override; 139 void SetIsLoading(bool is_loading) override;
140 void TextInputStateChanged( 140 void NotifyTextInputStateChanged() override;
141 const ViewHostMsg_TextInputState_Params& params) override;
142 void ImeCancelComposition() override; 141 void ImeCancelComposition() override;
143 void ImeCompositionRangeChanged( 142 void ImeCompositionRangeChanged(
144 const gfx::Range& range, 143 const gfx::Range& range,
145 const std::vector<gfx::Rect>& character_bounds) override; 144 const std::vector<gfx::Rect>& character_bounds) override;
146 void RenderProcessGone(base::TerminationStatus status, 145 void RenderProcessGone(base::TerminationStatus status,
147 int error_code) override; 146 int error_code) override;
148 void Destroy() override; 147 void Destroy() override;
149 void SetTooltipText(const base::string16& tooltip_text) override; 148 void SetTooltipText(const base::string16& tooltip_text) override;
150 void SelectionChanged(const base::string16& text, 149 void SelectionChanged(const base::string16& text,
151 size_t offset, 150 size_t offset,
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 484
486 // Converts |rect| from screen coordinate to window coordinate. 485 // Converts |rect| from screen coordinate to window coordinate.
487 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; 486 gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const;
488 487
489 // Helper function to set keyboard focus to the main window. 488 // Helper function to set keyboard focus to the main window.
490 void SetKeyboardFocus(); 489 void SetKeyboardFocus();
491 490
492 // Called when RenderWidget wants to start BeginFrame scheduling or stop. 491 // Called when RenderWidget wants to start BeginFrame scheduling or stop.
493 void OnSetNeedsBeginFrames(bool needs_begin_frames); 492 void OnSetNeedsBeginFrames(bool needs_begin_frames);
494 493
495 RenderFrameHostImpl* GetFocusedFrame();
496
497 // Returns true if the |event| passed in can be forwarded to the renderer. 494 // Returns true if the |event| passed in can be forwarded to the renderer.
498 bool CanRendererHandleEvent(const ui::MouseEvent* event, 495 bool CanRendererHandleEvent(const ui::MouseEvent* event,
499 bool mouse_locked, 496 bool mouse_locked,
500 bool selection_popup); 497 bool selection_popup);
501 498
502 // Returns true when we can do SurfaceHitTesting for the event type. 499 // Returns true when we can do SurfaceHitTesting for the event type.
503 bool ShouldRouteEvent(const ui::Event* event) const; 500 bool ShouldRouteEvent(const ui::Event* event) const;
504 501
505 // Called when the parent window bounds change. 502 // Called when the parent window bounds change.
506 void HandleParentBoundsChanged(); 503 void HandleParentBoundsChanged();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 // 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.
563 bool is_loading_; 560 bool is_loading_;
564 561
565 // 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.
566 WebCursor current_cursor_; 563 WebCursor current_cursor_;
567 564
568 // Stores the current state of the active pointers targeting this 565 // Stores the current state of the active pointers targeting this
569 // object. 566 // object.
570 ui::MotionEventAura pointer_state_; 567 ui::MotionEventAura pointer_state_;
571 568
572 // The current text input type.
573 ui::TextInputType text_input_type_;
574 // The current text input mode corresponding to HTML5 inputmode attribute.
575 ui::TextInputMode text_input_mode_;
576 // The current text input flags.
577 int text_input_flags_;
578 bool can_compose_inline_;
579
580 // Bounds for the selection. 569 // Bounds for the selection.
581 ui::SelectionBound selection_anchor_; 570 ui::SelectionBound selection_anchor_;
582 ui::SelectionBound selection_focus_; 571 ui::SelectionBound selection_focus_;
583 572
584 // The current composition character bounds. 573 // The current composition character bounds.
585 std::vector<gfx::Rect> composition_character_bounds_; 574 std::vector<gfx::Rect> composition_character_bounds_;
586 575
587 // Indicates if there is onging composition text. 576 // Indicates if there is onging composition text.
588 bool has_composition_text_; 577 bool has_composition_text_;
589 578
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 float device_scale_factor_; 690 float device_scale_factor_;
702 691
703 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 692 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
704 693
705 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 694 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
706 }; 695 };
707 696
708 } // namespace content 697 } // namespace content
709 698
710 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 699 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698