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

Side by Side Diff: chrome/browser/chromeos/notifications/balloon_collection_impl.cc

Issue 8549008: Extract MonitorInfoProvider from WindowSizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add docs Created 9 years 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_impl.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) 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 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" 5 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/chromeos/notifications/balloon_view.h" 10 #include "chrome/browser/chromeos/notifications/balloon_view.h"
11 #include "chrome/browser/chromeos/notifications/notification_panel.h" 11 #include "chrome/browser/chromeos/notifications/notification_panel.h"
12 #include "chrome/browser/notifications/balloon.h" 12 #include "chrome/browser/notifications/balloon.h"
13 #include "chrome/browser/notifications/notification.h" 13 #include "chrome/browser/notifications/notification.h"
14 #include "chrome/browser/ui/browser_list.h" 14 #include "chrome/browser/ui/browser_list.h"
15 #include "chrome/browser/ui/window_sizer.h"
16 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
17 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
18 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
19 #include "ui/gfx/size.h" 18 #include "ui/gfx/size.h"
20 19
21 namespace { 20 namespace {
22 21
23 // Margin from the edge of the work area 22 // Margin from the edge of the work area
24 const int kVerticalEdgeMargin = 5; 23 const int kVerticalEdgeMargin = 5;
25 const int kHorizontalEdgeMargin = 5; 24 const int kHorizontalEdgeMargin = 5;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false)); 173 new_balloon->set_view(new chromeos::BalloonViewImpl(false, true, false));
175 return new_balloon; 174 return new_balloon;
176 } 175 }
177 176
178 } // namespace chromeos 177 } // namespace chromeos
179 178
180 // static 179 // static
181 BalloonCollection* BalloonCollection::Create() { 180 BalloonCollection* BalloonCollection::Create() {
182 return new chromeos::BalloonCollectionImpl(); 181 return new chromeos::BalloonCollectionImpl();
183 } 182 }
OLDNEW
« 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