| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 virtual void OnWindowFocused(aura::Window* gained_focus, | 173 virtual void OnWindowFocused(aura::Window* gained_focus, |
| 174 aura::Window* lost_focus) OVERRIDE; | 174 aura::Window* lost_focus) OVERRIDE; |
| 175 | 175 |
| 176 // Overridden from aura::client::DragDropDelegate: | 176 // Overridden from aura::client::DragDropDelegate: |
| 177 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 177 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
| 178 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 178 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
| 179 virtual void OnDragExited() OVERRIDE; | 179 virtual void OnDragExited() OVERRIDE; |
| 180 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 180 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 181 | 181 |
| 182 // Overridden from NativeWidget: | 182 // Overridden from NativeWidget: |
| 183 virtual ui::EventHandler* GetEventHandler() OVERRIDE; | 183 virtual void RepostNativeEvent(gfx::NativeEvent os_event) OVERRIDE; |
| 184 | 184 |
| 185 protected: | 185 protected: |
| 186 virtual ~NativeWidgetAura(); | 186 virtual ~NativeWidgetAura(); |
| 187 | 187 |
| 188 internal::NativeWidgetDelegate* delegate() { return delegate_; } | 188 internal::NativeWidgetDelegate* delegate() { return delegate_; } |
| 189 | 189 |
| 190 private: | 190 private: |
| 191 class ActiveWindowObserver; | 191 class ActiveWindowObserver; |
| 192 | 192 |
| 193 void SetInitialFocus(ui::WindowShowState show_state); | 193 void SetInitialFocus(ui::WindowShowState show_state); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 222 | 222 |
| 223 scoped_ptr<DropHelper> drop_helper_; | 223 scoped_ptr<DropHelper> drop_helper_; |
| 224 int last_drop_operation_; | 224 int last_drop_operation_; |
| 225 | 225 |
| 226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 } // namespace views | 229 } // namespace views |
| 230 | 230 |
| 231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
| OLD | NEW |