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

Unified Diff: ash/common/system/toast/toast_overlay.h

Issue 2139183003: mash: Migrate //ash/system/toast to WM common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move test back Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/system/toast/toast_manager.cc ('k') | ash/common/system/toast/toast_overlay.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/toast/toast_overlay.h
diff --git a/ash/system/toast/toast_overlay.h b/ash/common/system/toast/toast_overlay.h
similarity index 89%
rename from ash/system/toast/toast_overlay.h
rename to ash/common/system/toast/toast_overlay.h
index 2b4fbbd81eb86980cc4cbe7e79a3137b7b98ce72..fce4168667f2d80bc995d3e2fada35ba637af225 100644
--- a/ash/system/toast/toast_overlay.h
+++ b/ash/common/system/toast/toast_overlay.h
@@ -2,17 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_SYSTEM_TOAST_TOAST_OVERLAY_H_
-#define ASH_SYSTEM_TOAST_TOAST_OVERLAY_H_
+#ifndef ASH_COMMON_SYSTEM_TOAST_TOAST_OVERLAY_H_
+#define ASH_COMMON_SYSTEM_TOAST_TOAST_OVERLAY_H_
#include <memory>
+#include <string>
#include "ash/ash_export.h"
#include "ui/compositor/layer_animation_observer.h"
#include "ui/events/event.h"
#include "ui/events/event_constants.h"
#include "ui/gfx/geometry/size.h"
-#include "ui/views/view.h"
namespace gfx {
class Rect;
@@ -53,6 +53,7 @@ class ASH_EXPORT ToastOverlay : public ui::ImplicitAnimationObserver {
// Returns the current bounds of the overlay, which is based on visibility.
gfx::Rect CalculateOverlayBounds();
+ // ui::ImplicitAnimationObserver:
void OnImplicitAnimationsScheduled() override;
void OnImplicitAnimationsCompleted() override;
@@ -71,4 +72,4 @@ class ASH_EXPORT ToastOverlay : public ui::ImplicitAnimationObserver {
} // namespace ash
-#endif // ASH_SYSTEM_TOAST_TOAST_OVERLAY_H_
+#endif // ASH_COMMON_SYSTEM_TOAST_TOAST_OVERLAY_H_
« no previous file with comments | « ash/common/system/toast/toast_manager.cc ('k') | ash/common/system/toast/toast_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698