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/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 // Invoked by WindowTreeHost when it is activated. Notifies observers. | 87 // Invoked by WindowTreeHost when it is activated. Notifies observers. |
88 void NotifyHostActivated(WindowTreeHost* host); | 88 void NotifyHostActivated(WindowTreeHost* host); |
89 | 89 |
90 // Overridden from ui::EventTarget: | 90 // Overridden from ui::EventTarget: |
91 bool CanAcceptEvent(const ui::Event& event) override; | 91 bool CanAcceptEvent(const ui::Event& event) override; |
92 ui::EventTarget* GetParentTarget() override; | 92 ui::EventTarget* GetParentTarget() override; |
93 scoped_ptr<ui::EventTargetIterator> GetChildIterator() const override; | 93 scoped_ptr<ui::EventTargetIterator> GetChildIterator() const override; |
94 ui::EventTargeter* GetEventTargeter() override; | 94 ui::EventTargeter* GetEventTargeter() override; |
95 | 95 |
96 ObserverList<EnvObserver> observers_; | 96 base::ObserverList<EnvObserver> observers_; |
97 | 97 |
98 int mouse_button_flags_; | 98 int mouse_button_flags_; |
99 // Location of last mouse event, in screen coordinates. | 99 // Location of last mouse event, in screen coordinates. |
100 gfx::Point last_mouse_location_; | 100 gfx::Point last_mouse_location_; |
101 bool is_touch_down_; | 101 bool is_touch_down_; |
102 | 102 |
103 scoped_ptr<InputStateLookup> input_state_lookup_; | 103 scoped_ptr<InputStateLookup> input_state_lookup_; |
104 scoped_ptr<ui::PlatformEventSource> event_source_; | 104 scoped_ptr<ui::PlatformEventSource> event_source_; |
105 | 105 |
106 ui::ContextFactory* context_factory_; | 106 ui::ContextFactory* context_factory_; |
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 |