OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/arc/notification/arc_custom_notification_view.h" | 5 #include "ui/arc/notification/arc_custom_notification_view.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "components/exo/notification_surface.h" | 9 #include "components/exo/notification_surface.h" |
9 #include "components/exo/surface.h" | 10 #include "components/exo/surface.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
11 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
12 #include "ui/base/resource/resource_bundle.h" | 13 #include "ui/base/resource/resource_bundle.h" |
13 #include "ui/compositor/layer_animation_observer.h" | 14 #include "ui/compositor/layer_animation_observer.h" |
14 #include "ui/display/screen.h" | 15 #include "ui/display/screen.h" |
15 #include "ui/events/event_handler.h" | 16 #include "ui/events/event_handler.h" |
16 #include "ui/gfx/canvas.h" | 17 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/image/image_skia.h" | 18 #include "ui/gfx/image/image_skia.h" |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 | 489 |
489 void ArcCustomNotificationView::OnNotificationSurfaceRemoved( | 490 void ArcCustomNotificationView::OnNotificationSurfaceRemoved( |
490 exo::NotificationSurface* surface) { | 491 exo::NotificationSurface* surface) { |
491 if (surface->notification_id() != notification_key_) | 492 if (surface->notification_id() != notification_key_) |
492 return; | 493 return; |
493 | 494 |
494 SetSurface(nullptr); | 495 SetSurface(nullptr); |
495 } | 496 } |
496 | 497 |
497 } // namespace arc | 498 } // namespace arc |
OLD | NEW |