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

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

Issue 331453004: android: Fix inconsistent sizes in GetScaledContentBitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: last change i hope Created 6 years, 6 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
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 #include <queue> 9 #include <queue>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 bool OnTouchEvent(const ui::MotionEvent& event); 202 bool OnTouchEvent(const ui::MotionEvent& event);
203 void ResetGestureDetection(); 203 void ResetGestureDetection();
204 void SetDoubleTapSupportEnabled(bool enabled); 204 void SetDoubleTapSupportEnabled(bool enabled);
205 void SetMultiTouchZoomSupportEnabled(bool enabled); 205 void SetMultiTouchZoomSupportEnabled(bool enabled);
206 206
207 long GetNativeImeAdapter(); 207 long GetNativeImeAdapter();
208 208
209 void WasResized(); 209 void WasResized();
210 210
211 // Asynchronously retrieves a bitmap of the content. |src_subrect| is in
212 // phyiscal pixel space before applying |scale|.
211 void GetScaledContentBitmap( 213 void GetScaledContentBitmap(
212 float scale, 214 float scale,
213 SkBitmap::Config bitmap_config, 215 SkBitmap::Config bitmap_config,
214 gfx::Rect src_subrect, 216 gfx::Rect src_subrect,
215 const base::Callback<void(bool, const SkBitmap&)>& result_callback); 217 const base::Callback<void(bool, const SkBitmap&)>& result_callback);
216 218
217 bool HasValidFrame() const; 219 bool HasValidFrame() const;
218 220
219 void MoveCaret(const gfx::Point& point); 221 void MoveCaret(const gfx::Point& point);
220 222
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 }; 353 };
352 354
353 scoped_ptr<LastFrameInfo> last_frame_info_; 355 scoped_ptr<LastFrameInfo> last_frame_info_;
354 356
355 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 357 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
356 }; 358 };
357 359
358 } // namespace content 360 } // namespace content
359 361
360 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 362 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698