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

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

Issue 11651002: Updated multiple item notification view to match latest mockups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgotten EXPORT fix. Created 7 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/balloon_view_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~BalloonViewAsh(); 23 virtual ~BalloonViewAsh();
24 24
25 // BalloonView interface. 25 // BalloonView interface.
26 virtual void Show(Balloon* balloon) OVERRIDE; 26 virtual void Show(Balloon* balloon) OVERRIDE;
27 virtual void Update() OVERRIDE; 27 virtual void Update() OVERRIDE;
28 virtual void RepositionToBalloon() OVERRIDE; 28 virtual void RepositionToBalloon() OVERRIDE;
29 virtual void Close(bool by_user) OVERRIDE; 29 virtual void Close(bool by_user) OVERRIDE;
30 virtual gfx::Size GetSize() const OVERRIDE; 30 virtual gfx::Size GetSize() const OVERRIDE;
31 virtual BalloonHost* GetHost() const OVERRIDE; 31 virtual BalloonHost* GetHost() const OVERRIDE;
32 32
33 void SetNotificationPrimaryIcon(const std::string& id, 33 void SetNotificationIcon(const std::string& id, const gfx::ImageSkia& image);
34 const gfx::ImageSkia& image);
35
36 void SetNotificationSecondaryIcon(const std::string& id,
37 const gfx::ImageSkia& image);
38 34
39 private: 35 private:
40 class ImageDownload; 36 class ImageDownload;
41 37
42 typedef std::vector<linked_ptr<ImageDownload> > ImageDownloads; 38 typedef std::vector<linked_ptr<ImageDownload> > ImageDownloads;
43 39
44 void DownloadImages(const Notification& notification); 40 void DownloadImages(const Notification& notification);
45 41
46 BalloonCollection* collection_; 42 BalloonCollection* collection_;
47 Balloon* balloon_; 43 Balloon* balloon_;
48 44
49 // Track the current notification id and downloads so the notification can be 45 // Track the current notification id and downloads so the notification can be
50 // updated properly. 46 // updated properly.
51 std::string notification_id_; 47 std::string notification_id_;
52 ImageDownloads downloads_; 48 ImageDownloads downloads_;
53 49
54 DISALLOW_COPY_AND_ASSIGN(BalloonViewAsh); 50 DISALLOW_COPY_AND_ASSIGN(BalloonViewAsh);
55 }; 51 };
56 52
57 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_ 53 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BALLOON_VIEW_ASH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/ash/balloon_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698