| 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 "ash/system/toast/toast_overlay.h" | 5 #include "ash/system/toast/toast_overlay.h" | 
| 6 | 6 | 
|  | 7 #include "ash/common/shell_window_ids.h" | 
| 7 #include "ash/screen_util.h" | 8 #include "ash/screen_util.h" | 
| 8 #include "ash/shelf/shelf.h" | 9 #include "ash/shelf/shelf.h" | 
| 9 #include "ash/shelf/shelf_layout_manager.h" | 10 #include "ash/shelf/shelf_layout_manager.h" | 
| 10 #include "ash/shell.h" | 11 #include "ash/shell.h" | 
| 11 #include "ash/shell_window_ids.h" |  | 
| 12 #include "ash/wm/window_animations.h" | 12 #include "ash/wm/window_animations.h" | 
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" | 
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" | 
| 15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" | 
| 16 #include "grit/ash_strings.h" | 16 #include "grit/ash_strings.h" | 
| 17 #include "third_party/skia/include/core/SkColor.h" | 17 #include "third_party/skia/include/core/SkColor.h" | 
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" | 
| 19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" | 
| 20 #include "ui/gfx/canvas.h" | 20 #include "ui/gfx/canvas.h" | 
| 21 #include "ui/gfx/font_list.h" | 21 #include "ui/gfx/font_list.h" | 
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 290 | 290 | 
| 291 views::Widget* ToastOverlay::widget_for_testing() { | 291 views::Widget* ToastOverlay::widget_for_testing() { | 
| 292   return overlay_widget_.get(); | 292   return overlay_widget_.get(); | 
| 293 } | 293 } | 
| 294 | 294 | 
| 295 void ToastOverlay::ClickDismissButtonForTesting(const ui::Event& event) { | 295 void ToastOverlay::ClickDismissButtonForTesting(const ui::Event& event) { | 
| 296   overlay_view_->button()->NotifyClick(event); | 296   overlay_view_->button()->NotifyClick(event); | 
| 297 } | 297 } | 
| 298 | 298 | 
| 299 }  // namespace ash | 299 }  // namespace ash | 
| OLD | NEW | 
|---|