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

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_view_views.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
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_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 gfx::Rect GetOptionsButtonBounds() const; 113 gfx::Rect GetOptionsButtonBounds() const;
114 gfx::Rect GetLabelBounds() const; 114 gfx::Rect GetLabelBounds() const;
115 115
116 // Where the balloon contents should be placed with respect to the top left 116 // Where the balloon contents should be placed with respect to the top left
117 // of the frame. 117 // of the frame.
118 gfx::Point GetContentsOffset() const; 118 gfx::Point GetContentsOffset() const;
119 119
120 // Where the balloon contents should be in screen coordinates. 120 // Where the balloon contents should be in screen coordinates.
121 gfx::Rect GetContentsRectangle() const; 121 gfx::Rect GetContentsRectangle() const;
122 122
123 // Returns the bounds for the frame container.
124 gfx::Rect GetBoundsForFrameContainer() const;
125
123 // Non-owned pointer to the balloon which owns this object. 126 // Non-owned pointer to the balloon which owns this object.
124 Balloon* balloon_; 127 Balloon* balloon_;
125 128
126 // Non-owned pointer to the balloon collection this is a part of. 129 // Non-owned pointer to the balloon collection this is a part of.
127 BalloonCollection* collection_; 130 BalloonCollection* collection_;
128 131
129 // The window that contains the frame of the notification. 132 // The window that contains the frame of the notification.
130 // Pointer owned by the View subclass. 133 // Pointer owned by the View subclass.
131 views::Widget* frame_container_; 134 views::Widget* frame_container_;
132 135
(...skipping 25 matching lines...) Expand all
158 161
159 content::NotificationRegistrar notification_registrar_; 162 content::NotificationRegistrar notification_registrar_;
160 163
161 // Set to true if this is browser generate web UI. 164 // Set to true if this is browser generate web UI.
162 bool enable_web_ui_; 165 bool enable_web_ui_;
163 166
164 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); 167 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl);
165 }; 168 };
166 169
167 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_ 170 #endif // CHROME_BROWSER_UI_VIEWS_NOTIFICATIONS_BALLOON_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/balloon_collection_impl.cc ('k') | chrome/browser/ui/views/notifications/balloon_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698