blob: bbd54ded7cb14a81a394a04b8ae11d37a107af8a [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_SNAPSHOT_TEST_SNAPSHOT_DESKTOP_H_
#define UI_SNAPSHOT_TEST_SNAPSHOT_DESKTOP_H_
#include <vector>
namespace gfx {
class Rect;
}
namespace ui {
// Grabs a snapshot of the desktop. No security checks are done. This is
// intended to be used for debugging purposes where no BrowserProcess instance
// is available (ie. tests). DO NOT use in a result of user action.
bool GrabDesktopSnapshot(
const gfx::Rect& snapshot_bounds,
std::vector<unsigned char>* png_representation);
} // namespace ui
#endif // UI_SNAPSHOT_TEST_SNAPSHOT_DESKTOP_H_