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

Side by Side Diff: chrome/browser/notifications/balloon.h

Issue 11189002: Makes notifications animate from the bottom of the screen (as was (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/notifications/balloon.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 // Handles the visible notification (or balloons). 5 // Handles the visible notification (or balloons).
6 6
7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_ 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_ 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 35
36 // Close the view. 36 // Close the view.
37 virtual void Close(bool by_user) = 0; 37 virtual void Close(bool by_user) = 0;
38 38
39 // The total size of the view. 39 // The total size of the view.
40 virtual gfx::Size GetSize() const = 0; 40 virtual gfx::Size GetSize() const = 0;
41 41
42 // The host for the view's contents. May be NULL if an implementation does 42 // The host for the view's contents. May be NULL if an implementation does
43 // not have a host associated with it (i.e. does not do html rendering). 43 // not have a host associated with it (i.e. does not do html rendering).
44 virtual BalloonHost* GetHost() const = 0; 44 virtual BalloonHost* GetHost() const = 0;
45
46 // Returns the horizontal margin the content is inset by.
47 static int GetHorizontalMargin();
45 }; 48 };
46 49
47 // Represents a Notification on the screen. 50 // Represents a Notification on the screen.
48 class Balloon { 51 class Balloon {
49 public: 52 public:
50 Balloon(const Notification& notification, 53 Balloon(const Notification& notification,
51 Profile* profile, 54 Profile* profile,
52 BalloonCollection* collection); 55 BalloonCollection* collection);
53 virtual ~Balloon(); 56 virtual ~Balloon();
54 57
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // position for keeping the close buttons under the mouse cursor. 128 // position for keeping the close buttons under the mouse cursor.
126 gfx::Point offset_; 129 gfx::Point offset_;
127 130
128 // Smallest size for this balloon where scrollbars will be shown. 131 // Smallest size for this balloon where scrollbars will be shown.
129 gfx::Size min_scrollbar_size_; 132 gfx::Size min_scrollbar_size_;
130 133
131 DISALLOW_COPY_AND_ASSIGN(Balloon); 134 DISALLOW_COPY_AND_ASSIGN(Balloon);
132 }; 135 };
133 136
134 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_ 137 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698