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

Unified Diff: ash/shelf/shelf_button.cc

Issue 614653002: ash::ShelfView: CHECK against potentially bad static_casts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « ash/shelf/shelf_button.h ('k') | ash/shelf/shelf_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_button.cc
diff --git a/ash/shelf/shelf_button.cc b/ash/shelf/shelf_button.cc
index b244a9d4ced75536d1b98e0af2c0c53a8d7a12ba..1aba1ccb4357845983fbcfcb45079b0171686eca 100644
--- a/ash/shelf/shelf_button.cc
+++ b/ash/shelf/shelf_button.cc
@@ -204,6 +204,9 @@ ShelfButton::IconView::~IconView() {
////////////////////////////////////////////////////////////////////////////////
// ShelfButton
+// static
+const char ShelfButton::kViewClassName[] = "ash/ShelfButton";
+
ShelfButton* ShelfButton::Create(views::ButtonListener* listener,
ShelfButtonHost* host,
ShelfLayoutManager* shelf_layout_manager) {
@@ -321,6 +324,10 @@ void ShelfButton::ShowContextMenu(const gfx::Point& p,
}
}
+const char* ShelfButton::GetClassName() const {
+ return kViewClassName;
+}
+
bool ShelfButton::OnMousePressed(const ui::MouseEvent& event) {
CustomButton::OnMousePressed(event);
host_->PointerPressedOnButton(this, ShelfButtonHost::MOUSE, event);
« no previous file with comments | « ash/shelf/shelf_button.h ('k') | ash/shelf/shelf_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698