| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/login/login_prompt.h" | 5 #include "chrome/browser/ui/login/login_prompt.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/password_manager/password_manager.h" | 8 #include "chrome/browser/password_manager/password_manager.h" |
| 9 #include "chrome/browser/tab_contents/tab_util.h" | 9 #include "chrome/browser/tab_contents/tab_util.h" |
| 10 #include "chrome/browser/ui/views/login_view.h" | 10 #include "chrome/browser/ui/views/login_view.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 return true; | 89 return true; |
| 90 } | 90 } |
| 91 | 91 |
| 92 virtual views::View* GetInitiallyFocusedView() OVERRIDE { | 92 virtual views::View* GetInitiallyFocusedView() OVERRIDE { |
| 93 return login_view_->GetInitiallyFocusedView(); | 93 return login_view_->GetInitiallyFocusedView(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 virtual views::View* GetContentsView() OVERRIDE { | 96 virtual views::View* GetContentsView() OVERRIDE { |
| 97 return login_view_; | 97 return login_view_; |
| 98 } | 98 } |
| 99 virtual views::Widget* GetWidget() OVERRIDE { |
| 100 return login_view_->GetWidget(); |
| 101 } |
| 102 virtual const views::Widget* GetWidget() const OVERRIDE { |
| 103 return login_view_->GetWidget(); |
| 104 } |
| 99 | 105 |
| 100 // LoginHandler: | 106 // LoginHandler: |
| 101 | 107 |
| 102 virtual void BuildViewForPasswordManager( | 108 virtual void BuildViewForPasswordManager( |
| 103 PasswordManager* manager, | 109 PasswordManager* manager, |
| 104 const string16& explanation) OVERRIDE { | 110 const string16& explanation) OVERRIDE { |
| 105 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 111 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 106 | 112 |
| 107 // Create a new LoginView and set the model for it. The model | 113 // Create a new LoginView and set the model for it. The model |
| 108 // (password manager) is owned by the view's parent TabContents, | 114 // (password manager) is owned by the view's parent TabContents, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 130 LoginView* login_view_; | 136 LoginView* login_view_; |
| 131 | 137 |
| 132 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); | 138 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); |
| 133 }; | 139 }; |
| 134 | 140 |
| 135 // static | 141 // static |
| 136 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, | 142 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, |
| 137 net::URLRequest* request) { | 143 net::URLRequest* request) { |
| 138 return new LoginHandlerWin(auth_info, request); | 144 return new LoginHandlerWin(auth_info, request); |
| 139 } | 145 } |
| OLD | NEW |