Views Omnibox: tolerate minor click-to-select-all dragging.
[chromium-blink-merge.git] / ui / message_center / notification_delegate.cc
blob899cb2a1056845cfa95bdb88d520191a0c3d9f31
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/message_center/notification_delegate.h"
7 namespace message_center {
9 bool NotificationDelegate::HasClickedListener() { return false; }
11 void NotificationDelegate::ButtonClick(int button_index) {}
13 HandleNotificationClickedDelegate::HandleNotificationClickedDelegate(
14 const base::Closure& closure)
15 : closure_(closure) {
18 HandleNotificationClickedDelegate::~HandleNotificationClickedDelegate() {
21 void HandleNotificationClickedDelegate::Display() {
24 void HandleNotificationClickedDelegate::Error() {
27 void HandleNotificationClickedDelegate::Close(bool by_user) {
30 bool HandleNotificationClickedDelegate::HasClickedListener() {
31 return !closure_.is_null();
34 void HandleNotificationClickedDelegate::Click() {
35 if (!closure_.is_null())
36 closure_.Run();
39 void HandleNotificationClickedDelegate::ButtonClick(int button_index) {
42 } // namespace message_center