| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 !defined(USE_GTK_MESSAGE_PUMP) | 72 !defined(USE_GTK_MESSAGE_PUMP) |
| 73 base::MessageLoop::Dispatcher* GetDispatcher(); | 73 base::MessageLoop::Dispatcher* GetDispatcher(); |
| 74 #endif | 74 #endif |
| 75 | 75 |
| 76 // Invoked by RootWindow when its host is activated. | 76 // Invoked by RootWindow when its host is activated. |
| 77 void RootWindowActivated(RootWindow* root_window); | 77 void RootWindowActivated(RootWindow* root_window); |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 friend class test::EnvTestHelper; | 80 friend class test::EnvTestHelper; |
| 81 friend class Window; | 81 friend class Window; |
| 82 friend class WindowTreeHost; | 82 friend class RootWindowHost; |
| 83 | 83 |
| 84 void Init(); | 84 void Init(); |
| 85 | 85 |
| 86 // Called by the Window when it is initialized. Notifies observers. | 86 // Called by the Window when it is initialized. Notifies observers. |
| 87 void NotifyWindowInitialized(Window* window); | 87 void NotifyWindowInitialized(Window* window); |
| 88 | 88 |
| 89 // Called by the RootWindow when it is initialized. Notifies observers. | 89 // Called by the RootWindow when it is initialized. Notifies observers. |
| 90 void NotifyRootWindowInitialized(RootWindow* root_window); | 90 void NotifyRootWindowInitialized(RootWindow* root_window); |
| 91 | 91 |
| 92 // Overridden from ui::EventTarget: | 92 // Overridden from ui::EventTarget: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 scoped_ptr<InputStateLookup> input_state_lookup_; | 111 scoped_ptr<InputStateLookup> input_state_lookup_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(Env); | 113 DISALLOW_COPY_AND_ASSIGN(Env); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace aura | 116 } // namespace aura |
| 117 | 117 |
| 118 #endif // UI_AURA_ENV_H_ | 118 #endif // UI_AURA_ENV_H_ |
| OLD | NEW |