Index: ios/web/public/web_state/web_state.h |
diff --git a/ios/web/public/web_state/web_state.h b/ios/web/public/web_state/web_state.h |
index 6974f523942f2691752762d1a997bb86f4d2338b..bb155690fd3395d9ee330a0a580baca3cb86c18d 100644 |
--- a/ios/web/public/web_state/web_state.h |
+++ b/ios/web/public/web_state/web_state.h |
@@ -35,6 +35,10 @@ class DictionaryValue; |
class Value; |
} |
+namespace gfx { |
+class Image; |
+} |
+ |
namespace web { |
class BrowserState; |
@@ -248,6 +252,11 @@ class WebState : public base::SupportsUserData { |
// CreateParams::created_with_opener for more details. |
virtual bool HasOpener() const = 0; |
+ // Takes a full-resolution snapshot of this WebState. |
marq (ping after 24h)
2017/06/21 11:13:23
Document when |callback| will be called?
kkhorimoto
2017/06/21 20:06:52
You should also document that this API is asynchro
edchin
2017/06/22 07:01:07
Done.
edchin
2017/06/22 07:01:07
Made this asynchronous in pre-ios-11 versions as w
|
+ virtual void TakeSnapshot( |
Eugene But (OOO till 7-30)
2017/06/21 22:11:29
Do you want to pass width argument? Not every clie
edchin
2017/06/22 07:01:07
Resizing will take place elsewhere. That place wil
Eugene But (OOO till 7-30)
2017/06/22 19:34:14
What is the advantage of resizing elsewhere? Chang
edchin
2017/06/23 19:03:10
Per our offline discussion, I've added a CGSize ar
|
+ const base::Callback<void(const gfx::Image& snapshot)>& callback) |
kkhorimoto
2017/06/21 20:06:52
Optional: There's some precedent for typedefing Ca
edchin
2017/06/22 07:01:07
Done.
|
+ const = 0; |
+ |
protected: |
friend class WebStateObserver; |
friend class WebStatePolicyDecider; |