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