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 "ui/aura/window_delegate.h" | 9 #include "ui/aura/window_delegate.h" |
10 #include "views/widget/native_widget_private.h" | 10 #include "views/widget/native_widget_private.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; | 115 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; |
116 | 116 |
117 // Overridden from aura::WindowDelegate: | 117 // Overridden from aura::WindowDelegate: |
118 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 118 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
119 const gfx::Rect& new_bounds) OVERRIDE; | 119 const gfx::Rect& new_bounds) OVERRIDE; |
120 virtual void OnFocus() OVERRIDE; | 120 virtual void OnFocus() OVERRIDE; |
121 virtual void OnBlur() OVERRIDE; | 121 virtual void OnBlur() OVERRIDE; |
122 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; | 122 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; |
123 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 123 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
124 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 124 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
| 125 virtual void OnCaptureLost() OVERRIDE; |
125 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 126 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
126 virtual void OnWindowDestroying() OVERRIDE; | 127 virtual void OnWindowDestroying() OVERRIDE; |
127 virtual void OnWindowDestroyed() OVERRIDE; | 128 virtual void OnWindowDestroyed() OVERRIDE; |
128 | 129 |
129 private: | 130 private: |
130 internal::NativeWidgetDelegate* delegate_; | 131 internal::NativeWidgetDelegate* delegate_; |
131 | 132 |
132 aura::Window* window_; | 133 aura::Window* window_; |
133 | 134 |
134 // See class documentation for Widget in widget.h for a note about ownership. | 135 // See class documentation for Widget in widget.h for a note about ownership. |
135 Widget::InitParams::Ownership ownership_; | 136 Widget::InitParams::Ownership ownership_; |
136 | 137 |
137 // The following factory is used for calls to close the NativeWidgetAura | 138 // The following factory is used for calls to close the NativeWidgetAura |
138 // instance. | 139 // instance. |
139 ScopedRunnableMethodFactory<NativeWidgetAura> close_widget_factory_; | 140 ScopedRunnableMethodFactory<NativeWidgetAura> close_widget_factory_; |
140 | 141 |
141 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 142 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
142 }; | 143 }; |
143 | 144 |
144 } // namespace views | 145 } // namespace views |
145 | 146 |
146 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 147 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |