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

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

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