diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 22:14:51 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-23 22:14:51 +0000 |
commit | a1d9a7649441975b6bc1270612e814fbf2bc106d (patch) | |
tree | 5d50d2882ceef0b31b69aa14c04156a667e50c8c /ui/aura/root_window_host.h | |
parent | f5840c3163cc6b2b46491eaafbc933a480fcc519 (diff) | |
download | chromium_src-a1d9a7649441975b6bc1270612e814fbf2bc106d.zip chromium_src-a1d9a7649441975b6bc1270612e814fbf2bc106d.tar.gz chromium_src-a1d9a7649441975b6bc1270612e814fbf2bc106d.tar.bz2 |
ash: Fix taking screenshots in high-dpi.
The bounds sent for taking screenshot is in DIP-coordinates, so it needs to be
converted back to pixel-coordinate.
BUG=129453
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10428005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/root_window_host.h')
-rw-r--r-- | ui/aura/root_window_host.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/aura/root_window_host.h b/ui/aura/root_window_host.h index c63e0b9..877c66a 100644 --- a/ui/aura/root_window_host.h +++ b/ui/aura/root_window_host.h @@ -91,6 +91,7 @@ class RootWindowHost { virtual void SetFocusWhenShown(bool focus_when_shown) = 0; // Grabs the snapshot of the root window by using the platform-dependent APIs. + // The bounds need to be in physical pixels. virtual bool GrabSnapshot( const gfx::Rect& snapshot_bounds, std::vector<unsigned char>* png_representation) = 0; |