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

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

Issue 9702068: Move extension pop-ups and notifications to the new auto-resize code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small update Created 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 9 #pragma once
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const BalloonCollection* collection() const { return collection_; } 70 const BalloonCollection* collection() const { return collection_; }
71 71
72 const gfx::Size& min_scrollbar_size() const { return min_scrollbar_size_; } 72 const gfx::Size& min_scrollbar_size() const { return min_scrollbar_size_; }
73 void set_min_scrollbar_size(const gfx::Size& size) { 73 void set_min_scrollbar_size(const gfx::Size& size) {
74 min_scrollbar_size_ = size; 74 min_scrollbar_size_ = size;
75 } 75 }
76 76
77 // Request a new content size for this balloon. This will get passed 77 // Request a new content size for this balloon. This will get passed
78 // to the balloon collection for checking against available space and 78 // to the balloon collection for checking against available space and
79 // min/max restrictions. 79 // min/max restrictions.
80 void SetContentPreferredSize(const gfx::Size& size); 80 void ResizeDueToAutoResize(const gfx::Size& size);
81 81
82 // Provides a view for this balloon. Ownership transfers 82 // Provides a view for this balloon. Ownership transfers
83 // to this object. 83 // to this object.
84 void set_view(BalloonView* balloon_view); 84 void set_view(BalloonView* balloon_view);
85 85
86 // Returns the balloon view associated with the balloon. 86 // Returns the balloon view associated with the balloon.
87 BalloonView* view() const { 87 BalloonView* view() const {
88 return balloon_view_.get(); 88 return balloon_view_.get();
89 } 89 }
90 90
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // position for keeping the close buttons under the mouse cursor. 128 // position for keeping the close buttons under the mouse cursor.
129 gfx::Point offset_; 129 gfx::Point offset_;
130 130
131 // Smallest size for this balloon where scrollbars will be shown. 131 // Smallest size for this balloon where scrollbars will be shown.
132 gfx::Size min_scrollbar_size_; 132 gfx::Size min_scrollbar_size_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(Balloon); 134 DISALLOW_COPY_AND_ASSIGN(Balloon);
135 }; 135 };
136 136
137 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_ 137 #endif // CHROME_BROWSER_NOTIFICATIONS_BALLOON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698