| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Draws the view for the balloons. | 5 // Draws the view for the balloons. |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/notifications/notification_panel.h" | 7 #include "chrome/browser/chromeos/notifications/notification_panel.h" |
| 8 | 8 |
| 9 #include <algorithm> |
| 10 |
| 9 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 10 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 11 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" | 13 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" |
| 12 #include "chrome/browser/chromeos/notifications/balloon_view.h" | 14 #include "chrome/browser/chromeos/notifications/balloon_view.h" |
| 15 #include "chrome/common/notification_details.h" |
| 16 #include "chrome/common/notification_source.h" |
| 13 #include "cros/chromeos_wm_ipc_enums.h" | 17 #include "cros/chromeos_wm_ipc_enums.h" |
| 14 #include "gfx/canvas.h" | 18 #include "gfx/canvas.h" |
| 15 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 16 #include "views/background.h" | 20 #include "views/background.h" |
| 17 #include "views/controls/native/native_view_host.h" | 21 #include "views/controls/native/native_view_host.h" |
| 18 #include "views/controls/scroll_view.h" | 22 #include "views/controls/scroll_view.h" |
| 19 #include "views/widget/root_view.h" | 23 #include "views/widget/root_view.h" |
| 20 #include "views/widget/widget_gtk.h" | 24 #include "views/widget/widget_gtk.h" |
| 21 | 25 |
| 22 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__) | 26 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__) |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 &origin); | 864 &origin); |
| 861 return rect.Contains(gfx::Rect(origin, view->bounds().size())); | 865 return rect.Contains(gfx::Rect(origin, view->bounds().size())); |
| 862 } | 866 } |
| 863 | 867 |
| 864 | 868 |
| 865 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const { | 869 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const { |
| 866 return panel_->active_ == view; | 870 return panel_->active_ == view; |
| 867 } | 871 } |
| 868 | 872 |
| 869 } // namespace chromeos | 873 } // namespace chromeos |
| OLD | NEW |