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

Unified 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: Undo accidental UserManagerImpl change 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 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
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_
« 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