summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/wm_overview_favicon.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 17:52:03 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 17:52:03 +0000
commit16be5c3ac774c21bfa88ec0582137d745f07572d (patch)
treec7ba676f4ec573b80c703fe3343b9332472f6aeb /chrome/browser/chromeos/wm_overview_favicon.h
parentd2d63be523cbd238e11e160d904bcb351fdfb9e8 (diff)
downloadchromium_src-16be5c3ac774c21bfa88ec0582137d745f07572d.zip
chromium_src-16be5c3ac774c21bfa88ec0582137d745f07572d.tar.gz
chromium_src-16be5c3ac774c21bfa88ec0582137d745f07572d.tar.bz2
fav icon -> favicon. Pass 5: fav_icon -> favicon
BUG=76073 TEST=none; no visible change Review URL: http://codereview.chromium.org/6693021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78230 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/wm_overview_favicon.h')
-rw-r--r--chrome/browser/chromeos/wm_overview_favicon.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/chrome/browser/chromeos/wm_overview_favicon.h b/chrome/browser/chromeos/wm_overview_favicon.h
new file mode 100644
index 0000000..1822800
--- /dev/null
+++ b/chrome/browser/chromeos/wm_overview_favicon.h
@@ -0,0 +1,44 @@
+// Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_FAVICON_H_
+#define CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_FAVICON_H_
+#pragma once
+
+#include "views/widget/widget_gtk.h"
+
+class SkBitmap;
+
+namespace views {
+class ImageView;
+}
+
+namespace chromeos {
+
+class WmOverviewSnapshot;
+
+// A single favicon displayed by WmOverviewController.
+class WmOverviewFavicon : public views::WidgetGtk {
+ public:
+ static const int kIconSize;
+
+ WmOverviewFavicon();
+
+ // Initializes the favicon to 0x0 size.
+ void Init(WmOverviewSnapshot* snapshot);
+
+ // Setting the favicon sets the bounds to the size of the given
+ // image.
+ void SetFavicon(const SkBitmap& image);
+
+ private:
+ // This control is the contents view for this widget.
+ views::ImageView* favicon_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(WmOverviewFavicon);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_WM_OVERVIEW_FAVICON_H_