From 35d06150b498cd3f301ad26a3e979cdcbbd4c541 Mon Sep 17 00:00:00 2001 From: "rkc@chromium.org" Date: Mon, 10 Jan 2011 22:19:42 +0000 Subject: Refactored the screenshot mechanism. Added a new method to browser window to get a screenshot in a platform independent way. Changed user feedback UI code to use the new method. BUG=65119 TEST=Tested with sending feedback with the new code. Screenshots are being taken and sent correctly. Review URL: http://codereview.chromium.org/6145001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70951 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/test_browser_window.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/test/test_browser_window.h') diff --git a/chrome/test/test_browser_window.h b/chrome/test/test_browser_window.h index cb22ab1..9e33f75 100644 --- a/chrome/test/test_browser_window.h +++ b/chrome/test/test_browser_window.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 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. @@ -109,6 +109,12 @@ class TestBrowserWindow : public BrowserWindow { virtual void ShowInstant(TabContents* preview_contents) {} virtual void HideInstant(bool instant_is_active) {} virtual gfx::Rect GetInstantBounds() { return gfx::Rect(); } + + virtual gfx::Rect GrabWindowSnapshot(std::vector* + png_representation) { + return gfx::Rect(); + } + #if defined(OS_CHROMEOS) virtual void ShowKeyboardOverlay(gfx::NativeWindow owning_window) {} #endif -- cgit v1.1