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

Unified Diff: chrome/browser/ui/views/ash/balloon_view_ash.h

Issue 12747010: Remove BalloonCollectionImplAsh. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index 032bc522c11c2f1f01e06d73f2c3f56743f47a13..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/ash/balloon_view_ash.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// 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_
-
-#include <vector>
-
-#include "base/memory/linked_ptr.h"
-#include "chrome/browser/notifications/balloon.h"
-
-namespace gfx {
-class Image;
-}
-
-// 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;
-
- void SetNotificationIcon(const std::string& notification_id,
- const gfx::Image& image);
- void SetNotificationImage(const std::string& notification_id,
- const gfx::Image& image);
- void SetNotificationButtonIcon(const std::string& notification_id,
- int button_index,
- const gfx::Image& image);
-
- private:
- class ImageDownload;
-
- typedef std::vector<linked_ptr<ImageDownload> > ImageDownloads;
-
- void DownloadImages(const Notification& notification);
-
- BalloonCollection* collection_;
- Balloon* balloon_;
-
- // Track the current notification id and downloads so the notification can be
- // updated properly.
- std::string notification_id_;
- ImageDownloads downloads_;
-
- DISALLOW_COPY_AND_ASSIGN(BalloonViewAsh);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
« no previous file with comments | « chrome/browser/ui/views/ash/balloon_collection_impl_ash.cc ('k') | chrome/browser/ui/views/ash/balloon_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698