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

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

Issue 9549020: Improve switch between gestures and touch mode when kEnableTouchEvents (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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.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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 void ProcessKeyboardEventAck(int type, bool processed); 745 void ProcessKeyboardEventAck(int type, bool processed);
746 746
747 // Called by OnMsgInputEventAck() to process a wheel event ack message. 747 // Called by OnMsgInputEventAck() to process a wheel event ack message.
748 // This could result in a task being posted to allow additional wheel 748 // This could result in a task being posted to allow additional wheel
749 // input messages to be coalesced. 749 // input messages to be coalesced.
750 void ProcessWheelAck(bool processed); 750 void ProcessWheelAck(bool processed);
751 751
752 // Called on OnMsgInputEventAck() to process a touch event ack message. 752 // Called on OnMsgInputEventAck() to process a touch event ack message.
753 // This can result in a gesture event being generated and sent back to the 753 // This can result in a gesture event being generated and sent back to the
754 // renderer. 754 // renderer.
755 void ProcessTouchAck(bool processed); 755 void ProcessTouchAck(WebKit::WebInputEvent::Type type, bool processed);
756 756
757 // True if renderer accessibility is enabled. This should only be set when a 757 // True if renderer accessibility is enabled. This should only be set when a
758 // screenreader is detected as it can potentially slow down Chrome. 758 // screenreader is detected as it can potentially slow down Chrome.
759 bool renderer_accessible_; 759 bool renderer_accessible_;
760 760
761 // Stores random bits of data for others to associate with this object. 761 // Stores random bits of data for others to associate with this object.
762 base::PropertyBag property_bag_; 762 base::PropertyBag property_bag_;
763 763
764 // The ID of the corresponding object in the Renderer Instance. 764 // The ID of the corresponding object in the Renderer Instance.
765 int routing_id_; 765 int routing_id_;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 // then touch events are sent to the renderer. Otherwise, the touch events are 899 // then touch events are sent to the renderer. Otherwise, the touch events are
900 // not sent to the renderer. 900 // not sent to the renderer.
901 bool has_touch_handler_; 901 bool has_touch_handler_;
902 902
903 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 903 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
904 904
905 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 905 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
906 }; 906 };
907 907
908 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 908 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698