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

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

Issue 10790066: Enable gesture events handling on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void SetHasHorizontalScrollbar( 97 virtual void SetHasHorizontalScrollbar(
98 bool has_horizontal_scrollbar) OVERRIDE; 98 bool has_horizontal_scrollbar) OVERRIDE;
99 virtual void SetScrollOffsetPinning( 99 virtual void SetScrollOffsetPinning(
100 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; 100 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE;
101 virtual bool LockMouse() OVERRIDE; 101 virtual bool LockMouse() OVERRIDE;
102 virtual void UnlockMouse() OVERRIDE; 102 virtual void UnlockMouse() OVERRIDE;
103 virtual void StartContentIntent(const GURL& content_url) OVERRIDE; 103 virtual void StartContentIntent(const GURL& content_url) OVERRIDE;
104 104
105 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 105 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
106 106
107 virtual void DidSetNeedTouchEvents(bool need_touch_events) OVERRIDE;
108
109 // Non-virtual methods
110 void TouchEvent(const WebKit::WebTouchEvent& event);
111 void GestureEvent(const WebKit::WebGestureEvent& event);
112
107 private: 113 private:
108 // The model object. 114 // The model object.
109 RenderWidgetHostImpl* host_; 115 RenderWidgetHostImpl* host_;
110 116
111 // Whether or not this widget is hidden. 117 // Whether or not this widget is hidden.
112 bool is_hidden_; 118 bool is_hidden_;
113 119
114 // ContentViewCoreImpl is our interface to the view system. 120 // ContentViewCoreImpl is our interface to the view system.
115 ContentViewCoreImpl* content_view_core_; 121 ContentViewCoreImpl* content_view_core_;
116 122
117 // The size that we want the renderer to be. We keep this in a separate 123 // The size that we want the renderer to be. We keep this in a separate
118 // variable because resizing is async. 124 // variable because resizing is async.
119 gfx::Size requested_size_; 125 gfx::Size requested_size_;
120 126
121 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 127 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
122 }; 128 };
123 129
124 } // namespace content 130 } // namespace content
125 131
126 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 132 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698