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

Side by Side Diff: chrome/browser/notifications/fake_balloon_view.h

Issue 231723006: Remove balloon notification code. The last user was the Linux GTK port but that's deleted now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync after elliot's r263101 Created 6 years, 8 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
(Empty)
1 // Copyright (c) 2012 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.
4
5 #ifndef CHROME_BROWSER_NOTIFICATIONS_FAKE_BALLOON_VIEW_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_FAKE_BALLOON_VIEW_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/notifications/balloon.h"
11
12 // Test version of a balloon view which doesn't do anything viewable, but does
13 // know how to close itself the same as a regular BalloonView.
14 class FakeBalloonView : public BalloonView {
15 public:
16 explicit FakeBalloonView(Balloon* balloon);
17 virtual ~FakeBalloonView();
18
19 private:
20 // Overridden from BalloonView:
21 virtual void Show(Balloon* balloon) OVERRIDE;
22 virtual void Update() OVERRIDE;
23 virtual void RepositionToBalloon() OVERRIDE;
24 virtual void Close(bool by_user) OVERRIDE;
25 virtual gfx::Size GetSize() const OVERRIDE;
26 virtual BalloonHost* GetHost() const OVERRIDE;
27
28 // Non-owned pointer.
29 Balloon* balloon_;
30
31 DISALLOW_COPY_AND_ASSIGN(FakeBalloonView);
32 };
33
34 #endif // CHROME_BROWSER_NOTIFICATIONS_FAKE_BALLOON_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/desktop_notifications_unittest.cc ('k') | chrome/browser/notifications/fake_balloon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698