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

Unified Diff: content/browser/devtools/protocol/page_handler.h

Issue 2732923002: Add fromSurface optional parameter to devtools Page.CaptureScreenshot (Closed)
Patch Set: nit change method name Created 3 years, 9 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
Index: content/browser/devtools/protocol/page_handler.h
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h
index 4efbdbdf64d13aa34152d22a296cb3c57cb0b5b4..10858cc23293a9dd336b8c1166f4958c6f80cffd 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -7,6 +7,10 @@
#include <stddef.h>
+#include <map>
+#include <memory>
+#include <string>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -117,6 +121,16 @@ class PageHandler : public DevToolsDomainHandler,
int quality,
const gfx::Image& image);
+ void BitmapScreenshotCaptured(
+ std::unique_ptr<CaptureScreenshotCallback> callback,
+ const std::string& format,
+ int quality,
+ const SkBitmap& bitmap);
+
+ void BitmapScreenshotEncoded(
+ std::unique_ptr<CaptureScreenshotCallback> callback,
+ const std::string& data);
+
void OnColorPicked(int r, int g, int b, int a);
// NotificationObserver overrides.
« no previous file with comments | « no previous file | content/browser/devtools/protocol/page_handler.cc » ('j') | content/browser/devtools/protocol/page_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698