| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_AURA_ENV_H_ | 5 #ifndef UI_AURA_ENV_H_ |
| 6 #define UI_AURA_ENV_H_ | 6 #define UI_AURA_ENV_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // base::RunLoop(dispatcher), or used to dispatch an event by | 67 // base::RunLoop(dispatcher), or used to dispatch an event by |
| 68 // |Dispatch(const NativeEvent&)| on it. It must never be stored. | 68 // |Dispatch(const NativeEvent&)| on it. It must never be stored. |
| 69 base::MessageLoop::Dispatcher* GetDispatcher(); | 69 base::MessageLoop::Dispatcher* GetDispatcher(); |
| 70 | 70 |
| 71 // Invoked by RootWindow when its host is activated. | 71 // Invoked by RootWindow when its host is activated. |
| 72 void RootWindowActivated(RootWindow* root_window); | 72 void RootWindowActivated(RootWindow* root_window); |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 friend class test::EnvTestHelper; | 75 friend class test::EnvTestHelper; |
| 76 friend class Window; | 76 friend class Window; |
| 77 friend class RootWindowHost; | 77 friend class WindowTreeHost; |
| 78 | 78 |
| 79 void Init(); | 79 void Init(); |
| 80 | 80 |
| 81 // Called by the Window when it is initialized. Notifies observers. | 81 // Called by the Window when it is initialized. Notifies observers. |
| 82 void NotifyWindowInitialized(Window* window); | 82 void NotifyWindowInitialized(Window* window); |
| 83 | 83 |
| 84 // Called by the RootWindow when it is initialized. Notifies observers. | 84 // Called by the RootWindow when it is initialized. Notifies observers. |
| 85 void NotifyRootWindowInitialized(RootWindow* root_window); | 85 void NotifyRootWindowInitialized(RootWindow* root_window); |
| 86 | 86 |
| 87 // Overridden from ui::EventTarget: | 87 // Overridden from ui::EventTarget: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 scoped_ptr<InputStateLookup> input_state_lookup_; | 106 scoped_ptr<InputStateLookup> input_state_lookup_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(Env); | 108 DISALLOW_COPY_AND_ASSIGN(Env); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace aura | 111 } // namespace aura |
| 112 | 112 |
| 113 #endif // UI_AURA_ENV_H_ | 113 #endif // UI_AURA_ENV_H_ |
| OLD | NEW |