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

Unified Diff: chrome/browser/notifications/balloon_collection_impl.h

Issue 9621020: Fix 117074: Panels [WIN]: Crash data shows a stack trace consistently involving PanelManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon_collection_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/balloon_collection_impl.h
diff --git a/chrome/browser/notifications/balloon_collection_impl.h b/chrome/browser/notifications/balloon_collection_impl.h
index 749c9e0180edda08580454abe801627a5fe8e23a..f505463680a26cf7a5b64c4771c9a731743406b0 100644
--- a/chrome/browser/notifications/balloon_collection_impl.h
+++ b/chrome/browser/notifications/balloon_collection_impl.h
@@ -143,6 +143,10 @@ class BalloonCollectionImpl : public BalloonCollection,
// to be repositioned.
bool ComputeOffsetToMoveAbovePanels(const gfx::Rect& panel_bounds);
+ void enable_computing_panel_offset() {
+ need_to_compute_panel_offset_ = true;
+ }
+
private:
// Layout parameters
int VerticalEdgeMargin() const;
@@ -161,6 +165,10 @@ class BalloonCollectionImpl : public BalloonCollection,
Placement placement_;
gfx::Rect work_area_;
+ // The flag that indicates that the panel offset computation should be
+ // performed.
+ bool need_to_compute_panel_offset_;
+
// The offset that guarantees that the notificaitions shown in the
// lower-right or lower-left corner of the screen will go above currently
// shown panels and will not be obscured by them.
« no previous file with comments | « no previous file | chrome/browser/notifications/balloon_collection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698