Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: chrome/browser/chromeos/wm_overview_favicon.cc

Issue 6693021: fav icon -> favicon. Pass 5: fav_icon -> favicon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/wm_overview_favicon.h ('k') | chrome/browser/custom_home_pages_table_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/wm_overview_favicon.cc
diff --git a/chrome/browser/chromeos/wm_overview_fav_icon.cc b/chrome/browser/chromeos/wm_overview_favicon.cc
similarity index 76%
rename from chrome/browser/chromeos/wm_overview_fav_icon.cc
rename to chrome/browser/chromeos/wm_overview_favicon.cc
index 0b98fe18080f5a6642e9e46941fbf46f2f664489..2439cf3afce4967a9fca7593ce27204af19b1dcd 100644
--- a/chrome/browser/chromeos/wm_overview_fav_icon.cc
+++ b/chrome/browser/chromeos/wm_overview_favicon.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/wm_overview_fav_icon.h"
+#include "chrome/browser/chromeos/wm_overview_favicon.h"
#include <vector>
@@ -24,21 +24,21 @@ using std::vector;
namespace chromeos {
-const int WmOverviewFavIcon::kIconSize = 32;
+const int WmOverviewFavicon::kIconSize = 32;
-WmOverviewFavIcon::WmOverviewFavIcon()
+WmOverviewFavicon::WmOverviewFavicon()
: WidgetGtk(TYPE_WINDOW),
- fav_icon_view_(NULL) {
+ favicon_view_(NULL) {
}
-void WmOverviewFavIcon::Init(WmOverviewSnapshot* snapshot) {
+void WmOverviewFavicon::Init(WmOverviewSnapshot* snapshot) {
MakeTransparent();
- fav_icon_view_ = new views::ImageView();
+ favicon_view_ = new views::ImageView();
WidgetGtk::Init(NULL, gfx::Rect(0, 0, 0, 0));
- SetContentsView(fav_icon_view_);
+ SetContentsView(favicon_view_);
// Set the window type
vector<int> params;
@@ -46,13 +46,13 @@ void WmOverviewFavIcon::Init(WmOverviewSnapshot* snapshot) {
GTK_WIDGET(snapshot->GetNativeView())));
WmIpc::instance()->SetWindowType(
GetNativeView(),
- WM_IPC_WINDOW_CHROME_TAB_FAV_ICON,
+ WM_IPC_WINDOW_CHROME_TAB_FAVICON,
&params);
}
-void WmOverviewFavIcon::SetFavicon(const SkBitmap& image) {
- CHECK(fav_icon_view_) << "Init not called before setting favicon.";
+void WmOverviewFavicon::SetFavicon(const SkBitmap& image) {
+ CHECK(favicon_view_) << "Init not called before setting favicon.";
SkBitmap icon;
if (image.width() && image.height()) {
float aspect_ratio = static_cast<float>(image.width()) / image.height();
@@ -70,7 +70,7 @@ void WmOverviewFavIcon::SetFavicon(const SkBitmap& image) {
}
}
- fav_icon_view_->SetImage(icon);
+ favicon_view_->SetImage(icon);
// Reset the bounds to the size of the image.
SetBounds(gfx::Rect(icon.width(), icon.height()));
« no previous file with comments | « chrome/browser/chromeos/wm_overview_favicon.h ('k') | chrome/browser/custom_home_pages_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698