| OLD | NEW |
| (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_ |
| OLD | NEW |