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

Side by Side Diff: content/renderer/render_widget.h

Issue 288393004: [DevTools] Send ack early when paused in mouse move to keep events coming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "base/timer/timer.h" 17 #include "base/timer/timer.h"
18 #include "cc/debug/rendering_stats_instrumentation.h" 18 #include "cc/debug/rendering_stats_instrumentation.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/cursors/webcursor.h" 20 #include "content/common/cursors/webcursor.h"
21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 21 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
22 #include "content/common/input/synthetic_gesture_params.h" 22 #include "content/common/input/synthetic_gesture_params.h"
23 #include "ipc/ipc_listener.h" 23 #include "ipc/ipc_listener.h"
24 #include "ipc/ipc_sender.h" 24 #include "ipc/ipc_sender.h"
25 #include "third_party/WebKit/public/platform/WebRect.h" 25 #include "third_party/WebKit/public/platform/WebRect.h"
26 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 26 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
27 #include "third_party/WebKit/public/web/WebInputEvent.h"
27 #include "third_party/WebKit/public/web/WebPopupType.h" 28 #include "third_party/WebKit/public/web/WebPopupType.h"
28 #include "third_party/WebKit/public/web/WebTextDirection.h" 29 #include "third_party/WebKit/public/web/WebTextDirection.h"
29 #include "third_party/WebKit/public/web/WebTextInputInfo.h" 30 #include "third_party/WebKit/public/web/WebTextInputInfo.h"
30 #include "third_party/WebKit/public/web/WebTouchAction.h" 31 #include "third_party/WebKit/public/web/WebTouchAction.h"
31 #include "third_party/WebKit/public/web/WebWidget.h" 32 #include "third_party/WebKit/public/web/WebWidget.h"
32 #include "third_party/WebKit/public/web/WebWidgetClient.h" 33 #include "third_party/WebKit/public/web/WebWidgetClient.h"
33 #include "third_party/skia/include/core/SkBitmap.h" 34 #include "third_party/skia/include/core/SkBitmap.h"
34 #include "ui/base/ime/text_input_mode.h" 35 #include "ui/base/ime/text_input_mode.h"
35 #include "ui/base/ime/text_input_type.h" 36 #include "ui/base/ime/text_input_type.h"
36 #include "ui/base/ui_base_types.h" 37 #include "ui/base/ui_base_types.h"
37 #include "ui/gfx/native_widget_types.h" 38 #include "ui/gfx/native_widget_types.h"
38 #include "ui/gfx/range/range.h" 39 #include "ui/gfx/range/range.h"
39 #include "ui/gfx/rect.h" 40 #include "ui/gfx/rect.h"
40 #include "ui/gfx/vector2d.h" 41 #include "ui/gfx/vector2d.h"
41 #include "ui/gfx/vector2d_f.h" 42 #include "ui/gfx/vector2d_f.h"
42 #include "ui/surface/transport_dib.h" 43 #include "ui/surface/transport_dib.h"
43 44
44 struct ViewHostMsg_UpdateRect_Params; 45 struct ViewHostMsg_UpdateRect_Params;
45 struct ViewMsg_Resize_Params; 46 struct ViewMsg_Resize_Params;
46 class ViewHostMsg_UpdateRect; 47 class ViewHostMsg_UpdateRect;
47 48
48 namespace IPC { 49 namespace IPC {
49 class SyncMessage; 50 class SyncMessage;
50 } 51 }
51 52
52 namespace blink { 53 namespace blink {
53 struct WebDeviceEmulationParams; 54 struct WebDeviceEmulationParams;
54 class WebGestureEvent; 55 class WebGestureEvent;
55 class WebInputEvent;
56 class WebKeyboardEvent; 56 class WebKeyboardEvent;
57 class WebMouseEvent; 57 class WebMouseEvent;
58 class WebTouchEvent; 58 class WebTouchEvent;
59 } 59 }
60 60
61 namespace cc { class OutputSurface; } 61 namespace cc { class OutputSurface; }
62 62
63 namespace gfx { 63 namespace gfx {
64 class Range; 64 class Range;
65 } 65 }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void FinishHandlingImeEvent(); 183 void FinishHandlingImeEvent();
184 184
185 // Returns whether we currently should handle an IME event. 185 // Returns whether we currently should handle an IME event.
186 bool ShouldHandleImeEvent(); 186 bool ShouldHandleImeEvent();
187 187
188 virtual void InstrumentWillBeginFrame(int frame_id) {} 188 virtual void InstrumentWillBeginFrame(int frame_id) {}
189 virtual void InstrumentDidBeginFrame() {} 189 virtual void InstrumentDidBeginFrame() {}
190 virtual void InstrumentDidCancelFrame() {} 190 virtual void InstrumentDidCancelFrame() {}
191 virtual void InstrumentWillComposite() {} 191 virtual void InstrumentWillComposite() {}
192 192
193 // When paused in debugger, we send ack for mouse event early. This ensures
194 // that we continue receiving mouse moves and pass them to debugger.
195 bool SendAckForCurrentMouseMove();
pfeldman 2014/05/18 06:09:40 SendAckForMouseMoveFromDebugger?
dgozman 2014/05/19 09:59:23 Done.
196
197 // When resumed from pause in debugger while handling mouse move,
198 // we should not send an extra ack (see SendAckForCurrentMouseMove).
199 void IgnoreAckForCurrentMouseMove();
pfeldman 2014/05/18 06:09:40 ditto
dgozman 2014/05/19 09:59:23 Done.
200
193 bool UsingSynchronousRendererCompositor() const; 201 bool UsingSynchronousRendererCompositor() const;
194 202
195 // ScreenMetricsEmulator class manages screen emulation inside a render 203 // ScreenMetricsEmulator class manages screen emulation inside a render
196 // widget. This includes resizing, placing view on the screen at desired 204 // widget. This includes resizing, placing view on the screen at desired
197 // position, changing device scale factor, and scaling down the whole 205 // position, changing device scale factor, and scaling down the whole
198 // widget if required to fit into the browser window. 206 // widget if required to fit into the browser window.
199 class ScreenMetricsEmulator; 207 class ScreenMetricsEmulator;
200 208
201 // Emulates screen and widget metrics. Supplied values override everything 209 // Emulates screen and widget metrics. Supplied values override everything
202 // coming from host. 210 // coming from host.
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 576
569 // Indicates whether we have been focused/unfocused by the browser. 577 // Indicates whether we have been focused/unfocused by the browser.
570 bool has_focus_; 578 bool has_focus_;
571 579
572 // Are we currently handling an input event? 580 // Are we currently handling an input event?
573 bool handling_input_event_; 581 bool handling_input_event_;
574 582
575 // Are we currently handling an ime event? 583 // Are we currently handling an ime event?
576 bool handling_ime_event_; 584 bool handling_ime_event_;
577 585
578 // Are we currently handling a touchstart event? 586 // Type of event we are currently handling.
579 bool handling_touchstart_event_; 587 blink::WebInputEvent::Type handling_event_type_;
588
589 // Whether we should not sent ack for current mouse move.
590 bool ignore_ack_for_current_mouse_move_;
580 591
581 // True if we have requested this widget be closed. No more messages will 592 // True if we have requested this widget be closed. No more messages will
582 // be sent, except for a Close. 593 // be sent, except for a Close.
583 bool closing_; 594 bool closing_;
584 595
585 // Whether this RenderWidget is currently swapped out, such that the view is 596 // Whether this RenderWidget is currently swapped out, such that the view is
586 // being rendered by another process. If all RenderWidgets in a process are 597 // being rendered by another process. If all RenderWidgets in a process are
587 // swapped out, the process can exit. 598 // swapped out, the process can exit.
588 bool is_swapped_out_; 599 bool is_swapped_out_;
589 600
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 712
702 ui::MenuSourceType context_menu_source_type_; 713 ui::MenuSourceType context_menu_source_type_;
703 gfx::Point touch_editing_context_menu_location_; 714 gfx::Point touch_editing_context_menu_location_;
704 715
705 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 716 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
706 }; 717 };
707 718
708 } // namespace content 719 } // namespace content
709 720
710 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 721 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698