Chromium Code Reviews| Index: ui/aura/desktop_observer.h |
| diff --git a/ui/aura/desktop_observer.h b/ui/aura/desktop_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..aa1dac24e1636944139e4dbeebe0aea567583ce0 |
| --- /dev/null |
| +++ b/ui/aura/desktop_observer.h |
| @@ -0,0 +1,29 @@ |
| +// Copyright (c) 2011 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 UI_AURA_DESKTOP_OBSERVER_H_ |
| +#define UI_AURA_DESKTOP_OBSERVER_H_ |
| +#pragma once |
| + |
| +#include "ui/aura/aura_export.h" |
| + |
| +namespace aura { |
| + |
| +class Window; |
| + |
| +class AURA_EXPORT DesktopObserver { |
| + public: |
| + // Invoked after the desktop is resized. |
| + virtual void OnDesktopResized(const gfx::Size& new_size) {} |
|
tfarina
2011/10/12 22:23:44
forward declare gfx::Size too.
sadrul
2011/10/12 22:59:58
Done.
|
| + |
| + // Invoked when the active window is changed. |
| + virtual void OnActiveWindowChanged(Window* active) {} |
| + |
| + protected: |
| + virtual ~DesktopObserver() {} |
| +}; |
| + |
| +} // namespace aura |
| + |
| +#endif // UI_AURA_DESKTOP_OBSERVER_H_ |