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

Side by Side Diff: chrome/browser/notifications/notification_test_util.cc

Issue 10071036: RefCounted types should not have public destructors, chrome/browser/ part 6 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implementation fixes Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/notifications/notification_test_util.h" 5 #include "chrome/browser/notifications/notification_test_util.h"
6 6
7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id)
8 : id_(id) {} 8 : id_(id) {
9 }
9 10
10 MockNotificationDelegate::~MockNotificationDelegate() {} 11 MockNotificationDelegate::~MockNotificationDelegate() {}
11 12
12 std::string MockNotificationDelegate::id() const { 13 std::string MockNotificationDelegate::id() const {
13 return id_; 14 return id_;
14 } 15 }
15 16
16 void MockBalloonView::Close(bool by_user) { 17 void MockBalloonView::Close(bool by_user) {
17 balloon_->OnClose(by_user); 18 balloon_->OnClose(by_user);
18 } 19 }
19 20
20 gfx::Size MockBalloonView::GetSize() const { 21 gfx::Size MockBalloonView::GetSize() const {
21 return balloon_->content_size(); 22 return balloon_->content_size();
22 } 23 }
23 24
24 BalloonHost* MockBalloonView::GetHost() const { 25 BalloonHost* MockBalloonView::GetHost() const {
25 return NULL; 26 return NULL;
26 } 27 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_test_util.h ('k') | chrome/browser/pepper_gtalk_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698