| 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_TEST_TEST_DESKTOP_DELEGATE_H_ | 5 #ifndef UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ |
| 6 #define UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ | 6 #define UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public: | 21 public: |
| 22 TestDesktopDelegate(); | 22 TestDesktopDelegate(); |
| 23 virtual ~TestDesktopDelegate(); | 23 virtual ~TestDesktopDelegate(); |
| 24 | 24 |
| 25 Window* default_container() { return default_container_.get(); } | 25 Window* default_container() { return default_container_.get(); } |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 // Overridden from DesktopDelegate: | 28 // Overridden from DesktopDelegate: |
| 29 virtual void AddChildToDefaultParent(Window* window) OVERRIDE; | 29 virtual void AddChildToDefaultParent(Window* window) OVERRIDE; |
| 30 virtual Window* GetTopmostWindowToActivate(Window* ignore) const OVERRIDE; | 30 virtual Window* GetTopmostWindowToActivate(Window* ignore) const OVERRIDE; |
| 31 virtual void WindowAdded(Window* window) OVERRIDE; |
| 32 virtual void WillRemoveWindow(Window* window) OVERRIDE; |
| 31 | 33 |
| 32 scoped_ptr<ToplevelWindowContainer> default_container_; | 34 scoped_ptr<ToplevelWindowContainer> default_container_; |
| 33 | 35 |
| 34 DISALLOW_COPY_AND_ASSIGN(TestDesktopDelegate); | 36 DISALLOW_COPY_AND_ASSIGN(TestDesktopDelegate); |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 } // namespace test | 39 } // namespace test |
| 38 } // namespace aura | 40 } // namespace aura |
| 39 | 41 |
| 40 #endif // UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ | 42 #endif // UI_AURA_TEST_TEST_DESKTOP_DELEGATE_H_ |
| OLD | NEW |