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

Unified Diff: ui/views/controls/image_view.cc

Issue 863223002: Add missing views class names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: table 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 | « ui/views/controls/image_view.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/image_view.cc
diff --git a/ui/views/controls/image_view.cc b/ui/views/controls/image_view.cc
index e7417eac616e98373d1f3fe31a2676b9b2236de5..01f301103950537859673fe252f8d65ed02a655e 100644
--- a/ui/views/controls/image_view.cc
+++ b/ui/views/controls/image_view.cc
@@ -26,6 +26,9 @@ void* GetBitmapPixels(const gfx::ImageSkia& img, float image_scale) {
} // namespace
+// static
+const char ImageView::kViewClassName[] = "ImageView";
+
ImageView::ImageView()
: image_size_set_(false),
horiz_alignment_(CENTER),
@@ -166,6 +169,10 @@ void ImageView::GetAccessibleState(ui::AXViewState* state) {
state->name = tooltip_text_;
}
+const char* ImageView::GetClassName() const {
+ return kViewClassName;
+}
+
void ImageView::SetHorizontalAlignment(Alignment ha) {
if (ha != horiz_alignment_) {
horiz_alignment_ = ha;
« no previous file with comments | « ui/views/controls/image_view.h ('k') | ui/views/controls/message_box_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698