| 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 UI_AURA_DESKTOP_DELEGATE_H_ | 5 #ifndef UI_AURA_DESKTOP_DELEGATE_H_ |
| 6 #define UI_AURA_DESKTOP_DELEGATE_H_ | 6 #define UI_AURA_DESKTOP_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 | 12 |
| 13 class DragDropController; |
| 13 class Window; | 14 class Window; |
| 14 | 15 |
| 15 class AURA_EXPORT DesktopDelegate { | 16 class AURA_EXPORT DesktopDelegate { |
| 16 public: | 17 public: |
| 17 virtual ~DesktopDelegate() {} | 18 virtual ~DesktopDelegate() {} |
| 18 | 19 |
| 19 // Called by the Window when its parent is set to NULL. The delegate is given | 20 // Called by the Window when its parent is set to NULL. The delegate is given |
| 20 // an opportunity to inspect the window and add it to a default parent window | 21 // an opportunity to inspect the window and add it to a default parent window |
| 21 // of its choosing. | 22 // of its choosing. |
| 22 virtual void AddChildToDefaultParent(Window* window) = 0; | 23 virtual void AddChildToDefaultParent(Window* window) = 0; |
| 23 | 24 |
| 24 // Returns the window that should be activated other than |ignore|. | 25 // Returns the window that should be activated other than |ignore|. |
| 25 virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0; | 26 virtual Window* GetTopmostWindowToActivate(Window* ignore) const = 0; |
| 27 |
| 28 virtual DragDropController* GetDragDropController() const = 0; |
| 26 }; | 29 }; |
| 27 | 30 |
| 28 } // namespace aura | 31 } // namespace aura |
| 29 | 32 |
| 30 #endif // UI_AURA_DESKTOP_DELEGATE_H_ | 33 #endif // UI_AURA_DESKTOP_DELEGATE_H_ |
| OLD | NEW |