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; | |
34 | 32 |
35 scoped_ptr<Window> default_container_; | 33 scoped_ptr<Window> default_container_; |
36 | 34 |
37 DISALLOW_COPY_AND_ASSIGN(TestStackingClient); | 35 DISALLOW_COPY_AND_ASSIGN(TestStackingClient); |
38 }; | 36 }; |
39 | 37 |
40 } // namespace test | 38 } // namespace test |
41 } // namespace aura | 39 } // namespace aura |
42 | 40 |
43 #endif // UI_AURA_TEST_TEST_STACKING_CLIENT_H_ | 41 #endif // UI_AURA_TEST_TEST_STACKING_CLIENT_H_ |
OLD | NEW |