1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/notifications/system_notification.h"
#include "chrome/browser/notifications/balloon_collection.h"
namespace chromeos {
////////////////////////////////////////////////////////////////////////////////
// SystemNotification
void SystemNotification::Init(int icon_resource_id) {
NOTIMPLEMENTED();
}
SystemNotification::SystemNotification(Profile* profile,
NotificationDelegate* delegate,
int icon_resource_id,
const string16& title)
: profile_(profile),
collection_(NULL),
delegate_(delegate),
title_(title),
visible_(false),
urgent_(false) {
NOTIMPLEMENTED();
}
SystemNotification::SystemNotification(Profile* profile,
const std::string& id,
int icon_resource_id,
const string16& title)
: profile_(profile),
collection_(NULL),
delegate_(new Delegate(id)),
title_(title),
visible_(false),
urgent_(false) {
NOTIMPLEMENTED();
}
SystemNotification::~SystemNotification() {
}
void SystemNotification::Show(const string16& message,
bool urgent,
bool sticky) {
NOTIMPLEMENTED() << " " << message;
}
void SystemNotification::Show(const string16& message,
const string16& link,
const MessageCallback& callback,
bool urgent,
bool sticky) {
NOTIMPLEMENTED();
}
void SystemNotification::Hide() {
NOTIMPLEMENTED();
}
////////////////////////////////////////////////////////////////////////////////
// SystemNotification::Delegate
SystemNotification::Delegate::Delegate(const std::string& id)
: id_(id) {
NOTIMPLEMENTED();
}
std::string SystemNotification::Delegate::id() const {
NOTIMPLEMENTED();
return id_;
}
} // namespace chromeos
|