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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 virtual void OnWindowDestroyed() OVERRIDE; | 143 virtual void OnWindowDestroyed() OVERRIDE; |
144 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 144 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; |
145 | 145 |
146 // Overridden from aura::WindowDragDropDelegate: | 146 // Overridden from aura::WindowDragDropDelegate: |
147 virtual bool CanDrop(const aura::DropTargetEvent& event) OVERRIDE; | 147 virtual bool CanDrop(const aura::DropTargetEvent& event) OVERRIDE; |
148 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; | 148 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; |
149 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; | 149 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; |
150 virtual void OnDragExited() OVERRIDE; | 150 virtual void OnDragExited() OVERRIDE; |
151 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; | 151 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; |
152 | 152 |
| 153 protected: |
| 154 internal::NativeWidgetDelegate* delegate() { return delegate_; } |
| 155 |
153 private: | 156 private: |
154 class DesktopObserverImpl; | 157 class DesktopObserverImpl; |
155 | 158 |
156 internal::NativeWidgetDelegate* delegate_; | 159 internal::NativeWidgetDelegate* delegate_; |
157 | 160 |
158 aura::Window* window_; | 161 aura::Window* window_; |
159 | 162 |
160 // See class documentation for Widget in widget.h for a note about ownership. | 163 // See class documentation for Widget in widget.h for a note about ownership. |
161 Widget::InitParams::Ownership ownership_; | 164 Widget::InitParams::Ownership ownership_; |
162 | 165 |
(...skipping 11 matching lines...) Expand all Loading... |
174 scoped_ptr<DesktopObserverImpl> desktop_observer_; | 177 scoped_ptr<DesktopObserverImpl> desktop_observer_; |
175 | 178 |
176 scoped_ptr<DropHelper> drop_helper_; | 179 scoped_ptr<DropHelper> drop_helper_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 181 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
179 }; | 182 }; |
180 | 183 |
181 } // namespace views | 184 } // namespace views |
182 | 185 |
183 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 186 #endif // VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |