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

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

Powered by Google App Engine
This is Rietveld 408576698