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

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

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 #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.h" 9 #include "ui/base/events/event_constants.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/screen.h" 11 #include "ui/gfx/screen.h"
12 12
13 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification, 13 Balloon* BalloonCollectionImpl::MakeBalloon(const Notification& notification,
14 Profile* profile) { 14 Profile* profile) {
15 Balloon* balloon = new Balloon(notification, profile, this); 15 Balloon* balloon = new Balloon(notification, profile, this);
16 balloon->set_view(new BalloonViewImpl(this)); 16 balloon->set_view(new BalloonViewImpl(this));
17 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height()); 17 gfx::Size size(layout_.min_balloon_width(), layout_.min_balloon_height());
18 balloon->set_content_size(size); 18 balloon->set_content_size(size);
19 return balloon; 19 return balloon;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 layout_.ComputeOffsetToMoveAbovePanels(); 106 layout_.ComputeOffsetToMoveAbovePanels();
107 PositionBalloons(true); 107 PositionBalloons(true);
108 } 108 }
109 109
110 #if !(defined(USE_ASH) && defined(OS_CHROMEOS)) 110 #if !(defined(USE_ASH) && defined(OS_CHROMEOS))
111 // static 111 // static
112 BalloonCollection* BalloonCollection::Create() { 112 BalloonCollection* BalloonCollection::Create() {
113 return new BalloonCollectionImpl(); 113 return new BalloonCollectionImpl();
114 } 114 }
115 #endif 115 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698