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_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 void RepostNativeEvent(gfx::NativeEvent native_event) override; | 139 void RepostNativeEvent(gfx::NativeEvent native_event) override; |
140 | 140 |
141 // Overridden from views::InputMethodDelegate: | 141 // Overridden from views::InputMethodDelegate: |
142 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; | 142 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; |
143 | 143 |
144 // Overridden from aura::WindowDelegate: | 144 // Overridden from aura::WindowDelegate: |
145 gfx::Size GetMinimumSize() const override; | 145 gfx::Size GetMinimumSize() const override; |
146 gfx::Size GetMaximumSize() const override; | 146 gfx::Size GetMaximumSize() const override; |
147 void OnBoundsChanged(const gfx::Rect& old_bounds, | 147 void OnBoundsChanged(const gfx::Rect& old_bounds, |
148 const gfx::Rect& new_bounds) override; | 148 const gfx::Rect& new_bounds) override; |
| 149 ui::TextInputClient* GetFocusedTextInputClient() override; |
149 gfx::NativeCursor GetCursor(const gfx::Point& point) override; | 150 gfx::NativeCursor GetCursor(const gfx::Point& point) override; |
150 int GetNonClientComponent(const gfx::Point& point) const override; | 151 int GetNonClientComponent(const gfx::Point& point) const override; |
151 bool ShouldDescendIntoChildForEventHandling( | 152 bool ShouldDescendIntoChildForEventHandling( |
152 aura::Window* child, | 153 aura::Window* child, |
153 const gfx::Point& location) override; | 154 const gfx::Point& location) override; |
154 bool CanFocus() override; | 155 bool CanFocus() override; |
155 void OnCaptureLost() override; | 156 void OnCaptureLost() override; |
156 void OnPaint(gfx::Canvas* canvas) override; | 157 void OnPaint(gfx::Canvas* canvas) override; |
157 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 158 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
158 void OnWindowDestroying(aura::Window* window) override; | 159 void OnWindowDestroying(aura::Window* window) override; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // The following factory is used for calls to close the NativeWidgetAura | 230 // The following factory is used for calls to close the NativeWidgetAura |
230 // instance. | 231 // instance. |
231 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 232 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
232 | 233 |
233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 234 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
234 }; | 235 }; |
235 | 236 |
236 } // namespace views | 237 } // namespace views |
237 | 238 |
238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |