| OLD | NEW | 
|   1 // Copyright 2015 The Chromium Authors. All rights reserved. |   1 // Copyright 2015 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 CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ |   5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ | 
|   6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ |   6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ | 
|   7  |   7  | 
|   8 #include "base/macros.h" |   8 #include "base/macros.h" | 
|   9 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" |   9 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" | 
|  10 #include "components/signin/core/account_id/account_id.h" |  10 #include "components/signin/core/account_id/account_id.h" | 
|  11  |  11  | 
 |  12 class Browser; | 
 |  13  | 
|  12 // This is a test implementation of a MultiUserWindowManager which allows to |  14 // This is a test implementation of a MultiUserWindowManager which allows to | 
|  13 // test a visiting window on another desktop. It will install and remove itself |  15 // test a visiting window on another desktop. It will install and remove itself | 
|  14 // from the system upon creation / destruction. |  16 // from the system upon creation / destruction. | 
|  15 // The creation function gets a |browser| which is shown on |desktop_owner|'s |  17 // The creation function gets a |browser| which is shown on |desktop_owner|'s | 
|  16 // desktop. |  18 // desktop. | 
|  17 class TestMultiUserWindowManager : public chrome::MultiUserWindowManager { |  19 class TestMultiUserWindowManager : public chrome::MultiUserWindowManager { | 
|  18  public: |  20  public: | 
|  19   TestMultiUserWindowManager(Browser* visiting_browser, |  21   TestMultiUserWindowManager(Browser* visiting_browser, | 
|  20                              const AccountId& desktop_owner); |  22                              const AccountId& desktop_owner); | 
|  21   ~TestMultiUserWindowManager() override; |  23   ~TestMultiUserWindowManager() override; | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
|  49   aura::Window* created_window_; |  51   aura::Window* created_window_; | 
|  50   // The location of the window. |  52   // The location of the window. | 
|  51   AccountId created_window_shown_for_; |  53   AccountId created_window_shown_for_; | 
|  52   // The current selected active user. |  54   // The current selected active user. | 
|  53   AccountId current_account_id_; |  55   AccountId current_account_id_; | 
|  54  |  56  | 
|  55   DISALLOW_COPY_AND_ASSIGN(TestMultiUserWindowManager); |  57   DISALLOW_COPY_AND_ASSIGN(TestMultiUserWindowManager); | 
|  56 }; |  58 }; | 
|  57  |  59  | 
|  58 #endif  // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ |  60 #endif  // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_TEST_H_ | 
| OLD | NEW |