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

Side by Side Diff: chrome/browser/ui/views/ash/balloon_view_ash.h

Issue 10537158: Add support for Ash to Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
7 #pragma once
8
9 #include "chrome/browser/notifications/balloon.h"
10
11 // On Ash, a "BalloonView" is just a wrapper for ash notification entries.
12 class BalloonViewAsh : public BalloonView {
13 public:
14 explicit BalloonViewAsh(BalloonCollection* collection);
15 virtual ~BalloonViewAsh();
16
17 // BalloonView interface.
18 virtual void Show(Balloon* balloon) OVERRIDE;
19 virtual void Update() OVERRIDE;
20 virtual void RepositionToBalloon() OVERRIDE;
21 virtual void Close(bool by_user) OVERRIDE;
22 virtual gfx::Size GetSize() const OVERRIDE;
23 virtual BalloonHost* GetHost() const OVERRIDE;
24
25 private:
26 class IconFetcher;
27
28 void FetchIcon(const Notification& notification);
29 std::string GetExtensionId(Balloon* balloon);
30
31 BalloonCollection* collection_;
32 Balloon* balloon_;
33 scoped_ptr<IconFetcher> icon_fetcher_;
34
35 DISALLOW_COPY_AND_ASSIGN(BalloonViewAsh);
36 };
37
38 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698