diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-28 22:32:47 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-28 22:32:47 +0000 |
commit | 8ebe1b489cd5b7d5c5305a46dfe88bc2ef5833c7 (patch) | |
tree | f21231b669ed3a7302fc63623fe72b9109e5f63c /chrome/common/x11_util.h | |
parent | bbbfeff3dc729802a44395a698242371d7a74ee2 (diff) | |
download | chromium_src-8ebe1b489cd5b7d5c5305a46dfe88bc2ef5833c7.zip chromium_src-8ebe1b489cd5b7d5c5305a46dfe88bc2ef5833c7.tar.gz chromium_src-8ebe1b489cd5b7d5c5305a46dfe88bc2ef5833c7.tar.bz2 |
send the pngs on cros
Added code to stream screenshots
gtk screenshot support
Review URL: http://codereview.chromium.org/517017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/x11_util.h')
-rw-r--r-- | chrome/common/x11_util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/x11_util.h b/chrome/common/x11_util.h index 3f2a92f..1b6f23b 100644 --- a/chrome/common/x11_util.h +++ b/chrome/common/x11_util.h @@ -19,6 +19,7 @@ typedef struct _GdkDrawable GdkWindow; typedef struct _GtkWidget GtkWidget; +typedef struct _GtkWindow GtkWindow; typedef unsigned long XID; typedef struct _XDisplay Display; @@ -139,6 +140,12 @@ bool GetWindowParent(XID* parent_window, bool* parent_is_root, XID window); // Get the window manager name. bool GetWindowManagerName(std::string* name); +// Grabs a snapshot of the designated window and stores a PNG representation +// into a byte vector. +void GrabWindowSnapshot(GtkWindow* gdk_window, + std::vector<unsigned char>* png_representation); + + } // namespace x11_util #endif // CHROME_COMMON_X11_UTIL_H_ |