| Index: chrome/browser/ui/views/ash/balloon_view_ash.h
|
| diff --git a/chrome/browser/ui/views/ash/balloon_view_ash.h b/chrome/browser/ui/views/ash/balloon_view_ash.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2fe20f2691e958a98071f9a1a682fc1be48b8308
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/ash/balloon_view_ash.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/notifications/balloon.h"
|
| +
|
| +// On Ash, a "BalloonView" is just a wrapper for ash notification entries.
|
| +class BalloonViewAsh : public BalloonView {
|
| + public:
|
| + explicit BalloonViewAsh(BalloonCollection* collection);
|
| + virtual ~BalloonViewAsh();
|
| +
|
| + // BalloonView interface.
|
| + virtual void Show(Balloon* balloon) OVERRIDE;
|
| + virtual void Update() OVERRIDE;
|
| + virtual void RepositionToBalloon() OVERRIDE;
|
| + virtual void Close(bool by_user) OVERRIDE;
|
| + virtual gfx::Size GetSize() const OVERRIDE;
|
| + virtual BalloonHost* GetHost() const OVERRIDE;
|
| +
|
| + private:
|
| + class IconFetcher;
|
| +
|
| + void FetchIcon(const Notification& notification);
|
| + std::string GetExtensionId(Balloon* balloon);
|
| +
|
| + BalloonCollection* collection_;
|
| + Balloon* balloon_;
|
| + scoped_ptr<IconFetcher> icon_fetcher_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(BalloonViewAsh);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
|
|
|