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

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

Issue 14210004: Consolidate UpdateFrameInfo and SwapCompositorFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 virtual InputEventAckState FilterInputEvent( 137 virtual InputEventAckState FilterInputEvent(
138 const WebKit::WebInputEvent& input_event) OVERRIDE; 138 const WebKit::WebInputEvent& input_event) OVERRIDE;
139 virtual void OnAccessibilityNotifications( 139 virtual void OnAccessibilityNotifications(
140 const std::vector<AccessibilityHostMsg_NotificationParams>& 140 const std::vector<AccessibilityHostMsg_NotificationParams>&
141 params) OVERRIDE; 141 params) OVERRIDE;
142 virtual bool LockMouse() OVERRIDE; 142 virtual bool LockMouse() OVERRIDE;
143 virtual void UnlockMouse() OVERRIDE; 143 virtual void UnlockMouse() OVERRIDE;
144 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; 144 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE;
145 virtual void OnSwapCompositorFrame( 145 virtual void OnSwapCompositorFrame(
146 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; 146 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE;
147 virtual void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset,
148 float page_scale_factor,
149 const gfx::Vector2dF& page_scale_factor_limits,
150 const gfx::SizeF& content_size,
151 const gfx::SizeF& viewport_size,
152 const gfx::Vector2dF& controls_offset,
153 const gfx::Vector2dF& content_offset,
154 float overdraw_bottom_height) OVERRIDE;
155 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, 147 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect,
156 const SkBitmap& zoomed_bitmap) OVERRIDE; 148 const SkBitmap& zoomed_bitmap) OVERRIDE;
157 149
158 // Non-virtual methods 150 // Non-virtual methods
159 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 151 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
160 SkColor GetCachedBackgroundColor() const; 152 SkColor GetCachedBackgroundColor() const;
161 void SendKeyEvent(const NativeWebKeyboardEvent& event); 153 void SendKeyEvent(const NativeWebKeyboardEvent& event);
162 void SendTouchEvent(const WebKit::WebTouchEvent& event); 154 void SendTouchEvent(const WebKit::WebTouchEvent& event);
163 void SendMouseEvent(const WebKit::WebMouseEvent& event); 155 void SendMouseEvent(const WebKit::WebMouseEvent& event);
164 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event); 156 void SendMouseWheelEvent(const WebKit::WebMouseWheelEvent& event);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 219
228 // The mailbox of the frame we last returned. 220 // The mailbox of the frame we last returned.
229 gpu::Mailbox last_mailbox_; 221 gpu::Mailbox last_mailbox_;
230 222
231 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 223 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
232 }; 224 };
233 225
234 } // namespace content 226 } // namespace content
235 227
236 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 228 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698