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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/NativePage.java

Issue 173023005: Adds support for capturing a sub rect of the compositing surface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to reland Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java b/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
index c225da8d83c4603ddf4aa6c2c0a6f837b758ece5..7ad385040867dfb74d221de87ee82e79335677c8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/NativePage.java
@@ -4,6 +4,8 @@
package org.chromium.chrome.browser;
+import android.graphics.Bitmap;
+
import org.chromium.content.browser.PageInfo;
/**
@@ -29,4 +31,14 @@ public interface NativePage extends PageInfo {
* Updates the native page based on the given url.
*/
public void updateForUrl(String url);
+
+ /**
+ * @return An unscaled screenshot of the page.
+ */
+ Bitmap getBitmap();
+
+ /**
+ * @return A screenshot of the page scaled to the specified size.
+ */
+ Bitmap getBitmap(int width, int height);
}
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698