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

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

Issue 2644843004: Send keyboard-derived commands only if the key events are sent (Closed)
Patch Set: Send keyboard-derived commands only if the key events are sent Created 3 years, 11 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // Starts the rendering timeout, which will clear displayed graphics if 332 // Starts the rendering timeout, which will clear displayed graphics if
333 // a new compositor frame is not received before it expires. 333 // a new compositor frame is not received before it expires.
334 void StartNewContentRenderingTimeout(); 334 void StartNewContentRenderingTimeout();
335 335
336 // Notification that a new compositor frame has been generated following 336 // Notification that a new compositor frame has been generated following
337 // a page load. This stops |new_content_rendering_timeout_|, or prevents 337 // a page load. This stops |new_content_rendering_timeout_|, or prevents
338 // the timer from running if the load commit message hasn't been received 338 // the timer from running if the load commit message hasn't been received
339 // yet. 339 // yet.
340 void OnFirstPaintAfterLoad(); 340 void OnFirstPaintAfterLoad();
341 341
342 // Forwards the keyboard event with optional commands to the renderer. If
343 // |key_event| is not forwarded for any reason, then |commands| are ignored.
344 void ForwardKeyboardEventWithCommands(
345 const NativeWebKeyboardEvent& key_event,
346 const std::vector<EditCommand>* commands);
347
342 // Forwards the given message to the renderer. These are called by the view 348 // Forwards the given message to the renderer. These are called by the view
343 // when it has received a message. 349 // when it has received a message.
344 void ForwardGestureEventWithLatencyInfo( 350 void ForwardGestureEventWithLatencyInfo(
345 const blink::WebGestureEvent& gesture_event, 351 const blink::WebGestureEvent& gesture_event,
346 const ui::LatencyInfo& ui_latency) override; 352 const ui::LatencyInfo& ui_latency) override;
347 virtual void ForwardTouchEventWithLatencyInfo( 353 virtual void ForwardTouchEventWithLatencyInfo(
348 const blink::WebTouchEvent& touch_event, 354 const blink::WebTouchEvent& touch_event,
349 const ui::LatencyInfo& ui_latency); // Virtual for testing. 355 const ui::LatencyInfo& ui_latency); // Virtual for testing.
350 void ForwardMouseEventWithLatencyInfo( 356 void ForwardMouseEventWithLatencyInfo(
351 const blink::WebMouseEvent& mouse_event, 357 const blink::WebMouseEvent& mouse_event,
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 #endif 915 #endif
910 916
911 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 917 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
912 918
913 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 919 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
914 }; 920 };
915 921
916 } // namespace content 922 } // namespace content
917 923
918 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 924 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698