| 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_STACKING_CLIENT_H_ | 5 #ifndef UI_AURA_TEST_TEST_STACKING_CLIENT_H_ |
| 6 #define UI_AURA_TEST_TEST_STACKING_CLIENT_H_ | 6 #define UI_AURA_TEST_TEST_STACKING_CLIENT_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 11 matching lines...) Expand all Loading... |
| 22 // about it -- the c'tor passes ownership of the TestStackingClient to the | 22 // about it -- the c'tor passes ownership of the TestStackingClient to the |
| 23 // static Desktop object. | 23 // static Desktop object. |
| 24 TestStackingClient(); | 24 TestStackingClient(); |
| 25 virtual ~TestStackingClient(); | 25 virtual ~TestStackingClient(); |
| 26 | 26 |
| 27 Window* default_container() { return default_container_.get(); } | 27 Window* default_container() { return default_container_.get(); } |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 // Overridden from StackingClient: | 30 // Overridden from StackingClient: |
| 31 virtual void AddChildToDefaultParent(Window* window) OVERRIDE; | 31 virtual void AddChildToDefaultParent(Window* window) OVERRIDE; |
| 32 virtual bool CanActivateWindow(Window* window) const OVERRIDE; |
| 33 virtual Window* GetTopmostWindowToActivate(Window* ignore) const OVERRIDE; |
| 32 | 34 |
| 33 scoped_ptr<Window> default_container_; | 35 scoped_ptr<Window> default_container_; |
| 34 | 36 |
| 35 DISALLOW_COPY_AND_ASSIGN(TestStackingClient); | 37 DISALLOW_COPY_AND_ASSIGN(TestStackingClient); |
| 36 }; | 38 }; |
| 37 | 39 |
| 38 } // namespace test | 40 } // namespace test |
| 39 } // namespace aura | 41 } // namespace aura |
| 40 | 42 |
| 41 #endif // UI_AURA_TEST_TEST_STACKING_CLIENT_H_ | 43 #endif // UI_AURA_TEST_TEST_STACKING_CLIENT_H_ |
| OLD | NEW |