| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/ui/cocoa/profiles/user_manager_mac.h" | 5 #include "chrome/browser/ui/cocoa/profiles/user_manager_mac.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #import "chrome/browser/app_controller_mac.h" | 10 #import "chrome/browser/app_controller_mac.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ~UserManagerModalHost() override {} | 76 ~UserManagerModalHost() override {} |
| 77 | 77 |
| 78 gfx::NativeView GetHostView() const override { | 78 gfx::NativeView GetHostView() const override { |
| 79 return host_view_; | 79 return host_view_; |
| 80 } | 80 } |
| 81 | 81 |
| 82 gfx::Point GetDialogPosition(const gfx::Size& size) override { | 82 gfx::Point GetDialogPosition(const gfx::Size& size) override { |
| 83 return gfx::Point(0, 0); | 83 return gfx::Point(0, 0); |
| 84 } | 84 } |
| 85 | 85 |
| 86 gfx::Point GetHostPosition() const override { return gfx::Point(); } |
| 87 |
| 86 void AddObserver(web_modal::ModalDialogHostObserver* observer) override {} | 88 void AddObserver(web_modal::ModalDialogHostObserver* observer) override {} |
| 87 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override {} | 89 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override {} |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 gfx::NativeView host_view_; | 92 gfx::NativeView host_view_; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 // The modal manager delegate allowing the display of constrained windows for | 95 // The modal manager delegate allowing the display of constrained windows for |
| 94 // the reauth dialog. | 96 // the reauth dialog. |
| 95 class UserManagerModalManagerDelegate : | 97 class UserManagerModalManagerDelegate : |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 [window_controller_ displayErrorMessage]; | 572 [window_controller_ displayErrorMessage]; |
| 571 } | 573 } |
| 572 | 574 |
| 573 void UserManagerMac::SetSigninProfilePath(const base::FilePath& profile_path) { | 575 void UserManagerMac::SetSigninProfilePath(const base::FilePath& profile_path) { |
| 574 signin_profile_path_ = profile_path; | 576 signin_profile_path_ = profile_path; |
| 575 } | 577 } |
| 576 | 578 |
| 577 base::FilePath UserManagerMac::GetSigninProfilePath() { | 579 base::FilePath UserManagerMac::GetSigninProfilePath() { |
| 578 return signin_profile_path_; | 580 return signin_profile_path_; |
| 579 } | 581 } |
| OLD | NEW |