| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |