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

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

Issue 10823077: Throttle SelectRange IPC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 int32 height, 545 int32 height,
546 TransportDIB::Handle transport_dib); 546 TransportDIB::Handle transport_dib);
547 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window, 547 void OnAcceleratedSurfaceBuffersSwapped(gfx::PluginWindowHandle window,
548 uint64 surface_handle); 548 uint64 surface_handle);
549 #endif 549 #endif
550 #if defined(TOOLKIT_GTK) 550 #if defined(TOOLKIT_GTK)
551 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle id); 551 void OnMsgCreatePluginContainer(gfx::PluginWindowHandle id);
552 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle id); 552 void OnMsgDestroyPluginContainer(gfx::PluginWindowHandle id);
553 #endif 553 #endif
554 554
555 void OnMsgSelectRangeAck();
darin (slow to review) 2012/08/02 06:30:20 nit: it seems like this should be listed after OnM
Iain Merrick 2012/08/02 10:25:42 Done.
556
555 // Called (either immediately or asynchronously) after we're done with our 557 // Called (either immediately or asynchronously) after we're done with our
556 // BackingStore and can send an ACK to the renderer so it can paint onto it 558 // BackingStore and can send an ACK to the renderer so it can paint onto it
557 // again. 559 // again.
558 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params, 560 void DidUpdateBackingStore(const ViewHostMsg_UpdateRect_Params& params,
559 const base::TimeTicks& paint_start); 561 const base::TimeTicks& paint_start);
560 562
561 // Paints the given bitmap to the current backing store at the given 563 // Paints the given bitmap to the current backing store at the given
562 // location. Returns true if the passed callback was asynchronously 564 // location. Returns true if the passed callback was asynchronously
563 // scheduled in the future (and thus the caller must manually synchronously 565 // scheduled in the future (and thus the caller must manually synchronously
564 // call the callback function). 566 // call the callback function).
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
680 // (Similar to |mouse_wheel_pending_|.). True if gesture event was sent and 682 // (Similar to |mouse_wheel_pending_|.). True if gesture event was sent and
681 // we are waiting for a corresponding ack. 683 // we are waiting for a corresponding ack.
682 bool gesture_event_pending_; 684 bool gesture_event_pending_;
683 685
684 typedef std::deque<WebKit::WebGestureEvent> GestureEventQueue; 686 typedef std::deque<WebKit::WebGestureEvent> GestureEventQueue;
685 687
686 // (Similar to |coalesced_mouse_wheel_events_|.) GestureScrollUpdate events 688 // (Similar to |coalesced_mouse_wheel_events_|.) GestureScrollUpdate events
687 // are coalesced by merging deltas in a similar fashion as wheel events. 689 // are coalesced by merging deltas in a similar fashion as wheel events.
688 GestureEventQueue coalesced_gesture_events_; 690 GestureEventQueue coalesced_gesture_events_;
689 691
692 // Throttling text selection IPC, allowing at most one unACKed IPC in flight.
693 gfx::Point pend_select_start_;
darin (slow to review) 2012/08/02 06:30:20 nit: please use words. pend -> pending?
Iain Merrick 2012/08/02 10:25:42 Done. In fact I'll rename things a bit because usi
694 gfx::Point pend_select_end_;
695 bool select_range_in_flight_;
696 bool select_range_pending_;
697
690 // The time when an input event was sent to the RenderWidget. 698 // The time when an input event was sent to the RenderWidget.
691 base::TimeTicks input_event_start_time_; 699 base::TimeTicks input_event_start_time_;
692 700
693 // Keyboard event listeners. 701 // Keyboard event listeners.
694 std::list<KeyboardListener*> keyboard_listeners_; 702 std::list<KeyboardListener*> keyboard_listeners_;
695 703
696 // If true, then we should repaint when restoring even if we have a 704 // If true, then we should repaint when restoring even if we have a
697 // backingstore. This flag is set to true if we receive a paint message 705 // backingstore. This flag is set to true if we receive a paint message
698 // while is_hidden_ to true. Even though we tell the render widget to hide 706 // while is_hidden_ to true. Even though we tell the render widget to hide
699 // itself, a paint message could already be in flight at that point. 707 // itself, a paint message could already be in flight at that point.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 787 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
780 788
781 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_; 789 scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_;
782 790
783 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 791 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
784 }; 792 };
785 793
786 } // namespace content 794 } // namespace content
787 795
788 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 796 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | content/renderer/render_view_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698