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

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

Issue 661333: Change some desktop notifications layout parameters to be per-platform rather... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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_collection.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COLLECTION_H_ 7 #ifndef CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_
8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ 8 #define CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_
9 9
10 #include <deque> 10 #include <deque>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 gfx::Point* position_iterator) const; 114 gfx::Point* position_iterator) const;
115 115
116 private: 116 private:
117 enum Placement { 117 enum Placement {
118 HORIZONTALLY_FROM_BOTTOM_LEFT, 118 HORIZONTALLY_FROM_BOTTOM_LEFT,
119 HORIZONTALLY_FROM_BOTTOM_RIGHT, 119 HORIZONTALLY_FROM_BOTTOM_RIGHT,
120 VERTICALLY_FROM_TOP_RIGHT, 120 VERTICALLY_FROM_TOP_RIGHT,
121 VERTICALLY_FROM_BOTTOM_RIGHT 121 VERTICALLY_FROM_BOTTOM_RIGHT
122 }; 122 };
123 123
124 // Layout parameters
125 int VerticalEdgeMargin() const;
126 int HorizontalEdgeMargin() const;
127 int InterBalloonMargin() const;
128
124 // Minimum and maximum size of balloon content. 129 // Minimum and maximum size of balloon content.
125 static const int kBalloonMinWidth = 300; 130 static const int kBalloonMinWidth = 300;
126 static const int kBalloonMaxWidth = 300; 131 static const int kBalloonMaxWidth = 300;
127 static const int kBalloonMinHeight = 48; 132 static const int kBalloonMinHeight = 48;
128 static const int kBalloonMaxHeight = 120; 133 static const int kBalloonMaxHeight = 120;
129 134
130 static Placement placement_; 135 static Placement placement_;
131 gfx::Rect work_area_; 136 gfx::Rect work_area_;
132 DISALLOW_COPY_AND_ASSIGN(Layout); 137 DISALLOW_COPY_AND_ASSIGN(Layout);
133 }; 138 };
(...skipping 17 matching lines...) Expand all
151 typedef std::deque<Balloon*> Balloons; 156 typedef std::deque<Balloon*> Balloons;
152 Balloons balloons_; 157 Balloons balloons_;
153 158
154 // The layout parameters for balloons in this collection. 159 // The layout parameters for balloons in this collection.
155 Layout layout_; 160 Layout layout_;
156 161
157 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl); 162 DISALLOW_COPY_AND_ASSIGN(BalloonCollectionImpl);
158 }; 163 };
159 164
160 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_ 165 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_COLLECTION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698