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

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

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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) 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/notifications/balloon_collection_impl.h" 5 #include "chrome/browser/notifications/balloon_collection_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util-inl.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/notifications/balloon.h" 9 #include "chrome/browser/notifications/balloon.h"
10 #include "chrome/browser/notifications/balloon_host.h" 10 #include "chrome/browser/notifications/balloon_host.h"
11 #include "chrome/browser/notifications/notification.h" 11 #include "chrome/browser/notifications/notification.h"
12 #include "chrome/browser/ui/window_sizer.h" 12 #include "chrome/browser/ui/window_sizer.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 15
16 namespace { 16 namespace {
17 17
18 // Portion of the screen allotted for notifications. When notification balloons 18 // Portion of the screen allotted for notifications. When notification balloons
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 gfx::Rect new_work_area = info_provider->GetPrimaryMonitorWorkArea(); 373 gfx::Rect new_work_area = info_provider->GetPrimaryMonitorWorkArea();
374 #endif 374 #endif
375 if (!work_area_.Equals(new_work_area)) { 375 if (!work_area_.Equals(new_work_area)) {
376 work_area_.SetRect(new_work_area.x(), new_work_area.y(), 376 work_area_.SetRect(new_work_area.x(), new_work_area.y(),
377 new_work_area.width(), new_work_area.height()); 377 new_work_area.width(), new_work_area.height());
378 changed = true; 378 changed = true;
379 } 379 }
380 380
381 return changed; 381 return changed;
382 } 382 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698