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

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

Issue 2856093003: Update TextSelection for non-user initiated events (Closed)
Patch Set: Created 3 years, 7 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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 void SetInitialRenderSizeParams(const ResizeParams& resize_params); 536 void SetInitialRenderSizeParams(const ResizeParams& resize_params);
537 537
538 // Called when we receive a notification indicating that the renderer process 538 // Called when we receive a notification indicating that the renderer process
539 // is gone. This will reset our state so that our state will be consistent if 539 // is gone. This will reset our state so that our state will be consistent if
540 // a new renderer is created. 540 // a new renderer is created.
541 void RendererExited(base::TerminationStatus status, int exit_code); 541 void RendererExited(base::TerminationStatus status, int exit_code);
542 542
543 // Called from a RenderFrameHost when the text selection has changed. 543 // Called from a RenderFrameHost when the text selection has changed.
544 void SelectionChanged(const base::string16& text, 544 void SelectionChanged(const base::string16& text,
545 uint32_t offset, 545 uint32_t offset,
546 const gfx::Range& range); 546 const gfx::Range& range,
547 bool user_initiated);
547 548
548 size_t in_flight_event_count() const { return in_flight_event_count_; } 549 size_t in_flight_event_count() const { return in_flight_event_count_; }
549 blink::WebInputEvent::Type hang_monitor_event_type() const { 550 blink::WebInputEvent::Type hang_monitor_event_type() const {
550 return hang_monitor_event_type_; 551 return hang_monitor_event_type_;
551 } 552 }
552 blink::WebInputEvent::Type last_event_type() const { 553 blink::WebInputEvent::Type last_event_type() const {
553 return last_event_type_; 554 return last_event_type_;
554 } 555 }
555 556
556 bool renderer_initialized() const { return renderer_initialized_; } 557 bool renderer_initialized() const { return renderer_initialized_; }
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; 982 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_;
982 983
983 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 984 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
984 985
985 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 986 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
986 }; 987 };
987 988
988 } // namespace content 989 } // namespace content
989 990
990 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 991 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698