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

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

Issue 2903833002: Reland: Update TextSelection for non-user initiated events
Patch Set: Add test for JS cursor movement Created 3 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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 void SetInitialRenderSizeParams(const ResizeParams& resize_params); 532 void SetInitialRenderSizeParams(const ResizeParams& resize_params);
533 533
534 // Called when we receive a notification indicating that the renderer process 534 // Called when we receive a notification indicating that the renderer process
535 // is gone. This will reset our state so that our state will be consistent if 535 // is gone. This will reset our state so that our state will be consistent if
536 // a new renderer is created. 536 // a new renderer is created.
537 void RendererExited(base::TerminationStatus status, int exit_code); 537 void RendererExited(base::TerminationStatus status, int exit_code);
538 538
539 // Called from a RenderFrameHost when the text selection has changed. 539 // Called from a RenderFrameHost when the text selection has changed.
540 void SelectionChanged(const base::string16& text, 540 void SelectionChanged(const base::string16& text,
541 uint32_t offset, 541 uint32_t offset,
542 const gfx::Range& range); 542 const gfx::Range& range,
543 bool user_initiated);
543 544
544 size_t in_flight_event_count() const { return in_flight_event_count_; } 545 size_t in_flight_event_count() const { return in_flight_event_count_; }
545 blink::WebInputEvent::Type hang_monitor_event_type() const { 546 blink::WebInputEvent::Type hang_monitor_event_type() const {
546 return hang_monitor_event_type_; 547 return hang_monitor_event_type_;
547 } 548 }
548 blink::WebInputEvent::Type last_event_type() const { 549 blink::WebInputEvent::Type last_event_type() const {
549 return last_event_type_; 550 return last_event_type_;
550 } 551 }
551 552
552 bool renderer_initialized() const { return renderer_initialized_; } 553 bool renderer_initialized() const { return renderer_initialized_; }
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 std::unique_ptr<LegacyIPCWidgetInputHandler> legacy_widget_input_handler_; 1001 std::unique_ptr<LegacyIPCWidgetInputHandler> legacy_widget_input_handler_;
1001 1002
1002 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 1003 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
1003 1004
1004 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 1005 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
1005 }; 1006 };
1006 1007
1007 } // namespace content 1008 } // namespace content
1008 1009
1009 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 1010 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698