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

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

Issue 11779035: Centralize keypress listener handling in non-platform-specific code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep ignoring input events Created 7 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 | Annotate | Revision Log
« 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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 // when it has received a message. 240 // when it has received a message.
241 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event); 241 void ForwardGestureEvent(const WebKit::WebGestureEvent& gesture_event);
242 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event); 242 virtual void ForwardTouchEvent(const WebKit::WebTouchEvent& touch_event);
243 243
244 // Forwards the given event immediately to the renderer. 244 // Forwards the given event immediately to the renderer.
245 void ForwardMouseEventImmediately(const WebKit::WebMouseEvent& mouse_event); 245 void ForwardMouseEventImmediately(const WebKit::WebMouseEvent& mouse_event);
246 void ForwardTouchEventImmediately(const WebKit::WebTouchEvent& touch_event); 246 void ForwardTouchEventImmediately(const WebKit::WebTouchEvent& touch_event);
247 void ForwardGestureEventImmediately( 247 void ForwardGestureEventImmediately(
248 const WebKit::WebGestureEvent& gesture_event); 248 const WebKit::WebGestureEvent& gesture_event);
249 249
250 // Give key press listeners a chance to handle this key press. This allow
251 // widgets that don't have focus to still handle key presses.
252 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
253
254 void CancelUpdateTextDirection(); 250 void CancelUpdateTextDirection();
255 251
256 // Called when a mouse click/gesture tap activates the renderer. 252 // Called when a mouse click/gesture tap activates the renderer.
257 virtual void OnPointerEventActivate(); 253 virtual void OnPointerEventActivate();
258 254
259 // Notifies the renderer whether or not the input method attached to this 255 // Notifies the renderer whether or not the input method attached to this
260 // process is activated. 256 // process is activated.
261 // When the input method is activated, a renderer process sends IPC messages 257 // When the input method is activated, a renderer process sends IPC messages
262 // to notify the status of its composition node. (This message is mainly used 258 // to notify the status of its composition node. (This message is mainly used
263 // for notifying the position of the input cursor so that the browser can 259 // for notifying the position of the input cursor so that the browser can
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 float scale_factor, 633 float scale_factor,
638 const base::Closure& completion_callback); 634 const base::Closure& completion_callback);
639 635
640 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The 636 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The
641 // |dib| and its corresponding location |bitmap_rect| in the backing store 637 // |dib| and its corresponding location |bitmap_rect| in the backing store
642 // is the newly painted pixels by the renderer. 638 // is the newly painted pixels by the renderer.
643 void ScrollBackingStoreRect(const gfx::Vector2d& delta, 639 void ScrollBackingStoreRect(const gfx::Vector2d& delta,
644 const gfx::Rect& clip_rect, 640 const gfx::Rect& clip_rect,
645 const gfx::Size& view_size); 641 const gfx::Size& view_size);
646 642
643 // Give key press listeners a chance to handle this key press. This allow
644 // widgets that don't have focus to still handle key presses.
645 bool KeyPressListenersHandleEvent(const NativeWebKeyboardEvent& event);
646
647 // Called by OnInputEventAck() to process a keyboard event ack message. 647 // Called by OnInputEventAck() to process a keyboard event ack message.
648 void ProcessKeyboardEventAck(int type, bool processed); 648 void ProcessKeyboardEventAck(int type, bool processed);
649 649
650 // Called by OnInputEventAck() to process a wheel event ack message. 650 // Called by OnInputEventAck() to process a wheel event ack message.
651 // This could result in a task being posted to allow additional wheel 651 // This could result in a task being posted to allow additional wheel
652 // input messages to be coalesced. 652 // input messages to be coalesced.
653 void ProcessWheelAck(bool processed); 653 void ProcessWheelAck(bool processed);
654 654
655 // Called by OnInputEventAck() to process a gesture event ack message. 655 // Called by OnInputEventAck() to process a gesture event ack message.
656 // This validates the gesture for suppression of touchpad taps and sends one 656 // This validates the gesture for suppression of touchpad taps and sends one
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 #if defined(OS_WIN) 864 #if defined(OS_WIN)
865 std::list<HWND> dummy_windows_for_activation_; 865 std::list<HWND> dummy_windows_for_activation_;
866 #endif 866 #endif
867 867
868 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 868 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
869 }; 869 };
870 870
871 } // namespace content 871 } // namespace content
872 872
873 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 873 #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