diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-03 18:00:31 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-03 18:00:31 +0000 |
commit | afb7b55884fa8396e143b22e4ad457b74d43f390 (patch) | |
tree | 6a73cfc60a16b16f3aabccbdde8bd56a500e2595 /ui/aura/env_observer.h | |
parent | 90a35381feb0aca5d62b4b601285cb9d59b0d16e (diff) | |
download | chromium_src-afb7b55884fa8396e143b22e4ad457b74d43f390.zip chromium_src-afb7b55884fa8396e143b22e4ad457b74d43f390.tar.gz chromium_src-afb7b55884fa8396e143b22e4ad457b74d43f390.tar.bz2 |
Move OnWindowInitialized() from RootWindowObserver to EnvObserver, the observer of a new global singleton "Env". This will allow us to support multiple RootWindows.
http://crbug.com/112131
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9310071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/env_observer.h')
-rw-r--r-- | ui/aura/env_observer.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ui/aura/env_observer.h b/ui/aura/env_observer.h new file mode 100644 index 0000000..9a4541a --- /dev/null +++ b/ui/aura/env_observer.h @@ -0,0 +1,27 @@ +// Copyright (c) 2012 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_ENV_OBSERVER_H_ +#define UI_AURA_ENV_OBSERVER_H_ +#pragma once + +#include "base/observer_list.h" +#include "ui/aura/aura_export.h" + +namespace aura { + +class Window; + +class AURA_EXPORT EnvObserver { + public: + // Called when |window| has been initialized. + virtual void OnWindowInitialized(Window* window) = 0; + + protected: + virtual ~EnvObserver() {} +}; + +} // namespace aura + +#endif // UI_AURA_ENV_OBSERVER_H_ |