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

Unified Diff: chrome/browser/ui/views/location_bar/page_action_with_badge_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
Index: chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
diff --git a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
index 8401dc2e16af0a77a5fa8e47c8f7a1482fc86e3c..3e2038847ede044fe6553a3448283d3ea8209932 100644
--- a/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
+++ b/chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc
@@ -23,6 +23,11 @@ gfx::Size PageActionWithBadgeView::GetPreferredSize() const {
ExtensionAction::kPageActionIconMaxSize);
}
+void PageActionWithBadgeView::UpdateVisibility(content::WebContents* contents) {
+ image_view_->UpdateVisibility(contents);
+ SetVisible(image_view_->visible());
+}
+
void PageActionWithBadgeView::Layout() {
// We have 25 pixels of vertical space in the Omnibox to play with, so even
// sized icons (such as 16x16) have either a 5 or a 4 pixel whitespace
@@ -33,7 +38,6 @@ void PageActionWithBadgeView::Layout() {
image_view_->SetBounds(0, y, width(), height());
}
-void PageActionWithBadgeView::UpdateVisibility(content::WebContents* contents) {
- image_view_->UpdateVisibility(contents);
- SetVisible(image_view_->visible());
+const char* PageActionWithBadgeView::GetClassName() const {
+ return "PageActionWithBadgeView";
}

Powered by Google App Engine
This is Rietveld 408576698