OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 131 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
132 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; | 132 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; |
133 virtual void OnActivated() OVERRIDE; | 133 virtual void OnActivated() OVERRIDE; |
134 virtual void OnLostActive() OVERRIDE; | 134 virtual void OnLostActive() OVERRIDE; |
135 virtual void OnCaptureLost() OVERRIDE; | 135 virtual void OnCaptureLost() OVERRIDE; |
136 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 136 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
137 virtual void OnWindowDestroying() OVERRIDE; | 137 virtual void OnWindowDestroying() OVERRIDE; |
138 virtual void OnWindowDestroyed() OVERRIDE; | 138 virtual void OnWindowDestroyed() OVERRIDE; |
139 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 139 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; |
140 | 140 |
141 // ViewProp key for window type. The prop value is one of | |
142 // Widget::InitParams::Type. | |
143 static const char* const kWindowTypeKey; | |
144 | |
145 private: | 141 private: |
146 internal::NativeWidgetDelegate* delegate_; | 142 internal::NativeWidgetDelegate* delegate_; |
147 | 143 |
148 aura::Window* window_; | 144 aura::Window* window_; |
149 | 145 |
150 // See class documentation for Widget in widget.h for a note about ownership. | 146 // See class documentation for Widget in widget.h for a note about ownership. |
151 Widget::InitParams::Ownership ownership_; | 147 Widget::InitParams::Ownership ownership_; |
152 | 148 |
153 // The following factory is used for calls to close the NativeWidgetAura | 149 // The following factory is used for calls to close the NativeWidgetAura |
154 // instance. | 150 // instance. |
155 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 151 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
156 | 152 |
157 bool can_activate_; | 153 bool can_activate_; |
158 | 154 |
159 gfx::NativeCursor cursor_; | 155 gfx::NativeCursor cursor_; |
160 | 156 |
161 scoped_ptr<TooltipManager> tooltip_manager_; | 157 scoped_ptr<TooltipManager> tooltip_manager_; |
162 | 158 |
163 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 159 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
164 }; | 160 }; |
165 | 161 |
166 } // namespace views | 162 } // namespace views |
167 | 163 |
168 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 164 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |