| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 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 ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ |   5 #ifndef ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ | 
|   6 #define ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ |   6 #define ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ | 
|   7  |   7  | 
|   8 #include <memory> |   8 #include <memory> | 
|   9  |   9  | 
|  10 #include "base/macros.h" |  10 #include "base/macros.h" | 
|  11  |  11  | 
|  12 namespace ash { |  12 namespace ash { | 
|  13  |  13  | 
|  14 class SystemTrayDelegate; |  14 class SystemTrayDelegate; | 
|  15  |  15  | 
 |  16 namespace mojom { | 
 |  17 class NewWindowClient; | 
 |  18 } | 
 |  19  | 
|  16 // Test API to access the internal state of the singleton WmShell. |  20 // Test API to access the internal state of the singleton WmShell. | 
|  17 class WmShellTestApi { |  21 class WmShellTestApi { | 
|  18  public: |  22  public: | 
|  19   WmShellTestApi(); |  23   WmShellTestApi(); | 
|  20   ~WmShellTestApi(); |  24   ~WmShellTestApi(); | 
|  21  |  25  | 
|  22   void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); |  26   void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); | 
|  23  |  27  | 
 |  28   void SetNewWindowClient(std::unique_ptr<mojom::NewWindowClient> client); | 
 |  29  | 
|  24  private: |  30  private: | 
|  25   DISALLOW_COPY_AND_ASSIGN(WmShellTestApi); |  31   DISALLOW_COPY_AND_ASSIGN(WmShellTestApi); | 
|  26 }; |  32 }; | 
|  27  |  33  | 
|  28 }  // namespace ash |  34 }  // namespace ash | 
|  29  |  35  | 
|  30 #endif  // ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ |  36 #endif  // ASH_COMMON_TEST_WM_SHELL_TEST_API_H_ | 
| OLD | NEW |