summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_window.h
diff options
context:
space:
mode:
authorrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-10 22:19:42 +0000
committerrkc@chromium.org <rkc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-10 22:19:42 +0000
commit35d06150b498cd3f301ad26a3e979cdcbbd4c541 (patch)
tree62a32c216be4f2c943c1a329c0be44af8b122064 /chrome/browser/ui/browser_window.h
parent4859b837fbb012c8f1976f98d29f2fdd15cd8c15 (diff)
downloadchromium_src-35d06150b498cd3f301ad26a3e979cdcbbd4c541.zip
chromium_src-35d06150b498cd3f301ad26a3e979cdcbbd4c541.tar.gz
chromium_src-35d06150b498cd3f301ad26a3e979cdcbbd4c541.tar.bz2
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
Diffstat (limited to 'chrome/browser/ui/browser_window.h')
-rw-r--r--chrome/browser/ui/browser_window.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 154431e..5251502 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/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.
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
#pragma once
+#include <vector>
+
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/common/content_settings_types.h"
#include "gfx/native_widget_types.h"
@@ -216,9 +218,6 @@ class BrowserWindow {
// Returns the DownloadShelf.
virtual DownloadShelf* GetDownloadShelf() = 0;
- // Shows the Report a Bug dialog box.
- virtual void ShowReportBugDialog() = 0;
-
// Shows the Clear Browsing Data dialog box.
virtual void ShowClearBrowsingDataDialog() = 0;
@@ -345,6 +344,10 @@ class BrowserWindow {
// Construct a FindBar implementation for the specified |browser|.
static FindBar* CreateFindBar(Browser* browser_window);
+ // Grabs a snapshot of the current browser window and returns the bounds.
+ virtual gfx::Rect GrabWindowSnapshot(std::vector<unsigned char>*
+ png_representation) = 0;
+
protected:
friend class BrowserList;
friend class BrowserView;