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

Unified Diff: chrome/browser/ui/views/tab_icon_view.cc

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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/ui/views/tab_icon_view.h ('k') | chrome/browser/ui/views/toolbar/back_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_icon_view.cc
diff --git a/chrome/browser/ui/views/tab_icon_view.cc b/chrome/browser/ui/views/tab_icon_view.cc
index 400c7e4e0be61eee0bd3faf7d74a429967915eb2..bf9110d895c9c4b058582bbd34898f819d68476e 100644
--- a/chrome/browser/ui/views/tab_icon_view.cc
+++ b/chrome/browser/ui/views/tab_icon_view.cc
@@ -25,8 +25,12 @@
#include "ui/gfx/icon_util.h"
#endif
-static bool g_initialized = false;
-static gfx::ImageSkia* g_default_favicon = NULL;
+namespace {
+
+bool g_initialized = false;
+gfx::ImageSkia* g_default_favicon = nullptr;
+
+} // namespace
// static
void TabIconView::InitializeIfNeeded() {
@@ -137,6 +141,14 @@ void TabIconView::PaintIcon(gfx::Canvas* canvas,
dest_h, filter);
}
+gfx::Size TabIconView::GetPreferredSize() const {
+ return gfx::Size(gfx::kFaviconSize, gfx::kFaviconSize);
+}
+
+const char* TabIconView::GetClassName() const {
+ return "TabIconView";
+}
+
void TabIconView::OnPaint(gfx::Canvas* canvas) {
bool rendered = false;
@@ -154,7 +166,3 @@ void TabIconView::OnPaint(gfx::Canvas* canvas) {
if (!rendered)
PaintFavicon(canvas, *g_default_favicon);
}
-
-gfx::Size TabIconView::GetPreferredSize() const {
- return gfx::Size(gfx::kFaviconSize, gfx::kFaviconSize);
-}
« no previous file with comments | « chrome/browser/ui/views/tab_icon_view.h ('k') | chrome/browser/ui/views/toolbar/back_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698