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

Unified Diff: ash/common/wm/wm_window_observer.h

Issue 2035543004: Shuffles and renames ash/common/wm classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: random changes for chrome tests Created 4 years, 6 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
Index: ash/common/wm/wm_window_observer.h
diff --git a/ash/common/wm/wm_window_observer.h b/ash/common/wm/wm_window_observer.h
deleted file mode 100644
index 501bba5aa796c25462576ab905a7ce05bdd26836..0000000000000000000000000000000000000000
--- a/ash/common/wm/wm_window_observer.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef ASH_COMMON_WM_WM_WINDOW_OBSERVER_H_
-#define ASH_COMMON_WM_WM_WINDOW_OBSERVER_H_
-
-#include <stdint.h>
-
-#include "ash/ash_export.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ash {
-namespace wm {
-
-class WmWindow;
-enum class WmWindowProperty;
-
-class ASH_EXPORT WmWindowObserver {
- public:
- struct TreeChangeParams {
- WmWindow* target = nullptr;
- WmWindow* old_parent = nullptr;
- WmWindow* new_parent = nullptr;
- };
-
- // |window| is the window the observer was added to, which is not necessarily
- // the window that was added/removed.
- virtual void OnWindowTreeChanged(WmWindow* window,
- const TreeChangeParams& params) {}
-
- virtual void OnWindowPropertyChanged(WmWindow* window,
- WmWindowProperty property) {}
-
- virtual void OnWindowStackingChanged(WmWindow* window) {}
-
- virtual void OnWindowDestroying(WmWindow* window) {}
-
- virtual void OnWindowBoundsChanged(WmWindow* window,
- const gfx::Rect& old_bounds,
- const gfx::Rect& new_bounds) {}
-
- virtual void OnWindowVisibilityChanging(wm::WmWindow* window, bool visible) {}
-
- virtual void OnWindowTitleChanged(wm::WmWindow* window) {}
-
- protected:
- virtual ~WmWindowObserver() {}
-};
-
-} // namespace wm
-} // namespace ash
-
-#endif // ASH_COMMON_WM_WM_WINDOW_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698