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

Side by Side Diff: chrome/browser/ui/views/notifications/balloon_collection_views.cc

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 11 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
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 #include "chrome/browser/notifications/balloon_collection_impl.h" 5 #include "chrome/browser/notifications/balloon_collection_impl.h"
6 6
7 #include "chrome/browser/notifications/balloon.h" 7 #include "chrome/browser/notifications/balloon.h"
8 #include "chrome/browser/ui/views/notifications/balloon_view_views.h" 8 #include "chrome/browser/ui/views/notifications/balloon_view_views.h"
9 #include "ui/base/events/event_constants.h" 9 #include "ui/base/events/event_constants.h"
10 #include "ui/base/events/event_utils.h" 10 #include "ui/base/events/event_utils.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_LEFT); 102 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_LEFT);
103 else if (position == LOWER_RIGHT) 103 else if (position == LOWER_RIGHT)
104 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_RIGHT); 104 layout_.set_placement(Layout::VERTICALLY_FROM_BOTTOM_RIGHT);
105 else 105 else
106 NOTREACHED(); 106 NOTREACHED();
107 107
108 layout_.ComputeOffsetToMoveAbovePanels(); 108 layout_.ComputeOffsetToMoveAbovePanels();
109 PositionBalloons(true); 109 PositionBalloons(true);
110 } 110 }
111 111
112 #if !defined(OS_CHROMEOS) 112 #if !defined(OS_CHROMEOS) && !defined(OS_WIN)
113 // static 113 // static
114 BalloonCollection* BalloonCollection::Create() { 114 BalloonCollection* BalloonCollection::Create() {
115 return new BalloonCollectionImpl(); 115 return new BalloonCollectionImpl();
116 } 116 }
117 #endif 117 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698