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_view_android.h

Issue 13068002: Send vsync notification from browser to renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move code into Android ifdef. Created 7 years, 8 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 <map> 8 #include <map>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 const SkBitmap& zoomed_bitmap) OVERRIDE; 156 const SkBitmap& zoomed_bitmap) OVERRIDE;
157 157
158 // Non-virtual methods 158 // Non-virtual methods
159 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 159 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
160 SkColor GetCachedBackgroundColor() const; 160 SkColor GetCachedBackgroundColor() const;
161 void SendKeyEvent(const NativeWebKeyboardEvent& event); 161 void SendKeyEvent(const NativeWebKeyboardEvent& event);
162 void SendTouchEvent(const WebKit::WebTouchEvent& event); 162 void SendTouchEvent(const WebKit::WebTouchEvent& event);
163 void SendMouseEvent(const WebKit::WebMouseEvent& event); 163 void SendMouseEvent(const WebKit::WebMouseEvent& event);
164 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); 164 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event);
165 void SendGestureEvent(const WebKit::WebGestureEvent& event); 165 void SendGestureEvent(const WebKit::WebGestureEvent& event);
166 void SendVSync(base::TimeTicks frame_time);
166 167
167 void OnProcessImeBatchStateAck(bool is_begin); 168 void OnProcessImeBatchStateAck(bool is_begin);
168 void OnDidChangeBodyBackgroundColor(SkColor color); 169 void OnDidChangeBodyBackgroundColor(SkColor color);
169 void OnStartContentIntent(const GURL& content_url); 170 void OnStartContentIntent(const GURL& content_url);
171 void OnSetVSyncNotificationEnabled(bool enabled);
170 172
171 int GetNativeImeAdapter(); 173 int GetNativeImeAdapter();
172 174
173 void WasResized(); 175 void WasResized();
174 176
175 WebKit::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size); 177 WebKit::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size);
176 bool PopulateBitmapWithContents(jobject jbitmap); 178 bool PopulateBitmapWithContents(jobject jbitmap);
177 179
178 bool HasValidFrame() const; 180 bool HasValidFrame() const;
179 181
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 229
228 // The mailbox of the frame we last returned. 230 // The mailbox of the frame we last returned.
229 gpu::Mailbox last_mailbox_; 231 gpu::Mailbox last_mailbox_;
230 232
231 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 233 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
232 }; 234 };
233 235
234 } // namespace content 236 } // namespace content
235 237
236 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 238 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698