Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/ui/login/login_prompt_win.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/string16.h" 7 #include "base/string16.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/password_manager/password_manager.h" 9 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/tab_contents/tab_util.h" 10 #include "chrome/browser/tab_contents/tab_util.h"
11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 11 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 virtual string16 GetWindowTitle() const OVERRIDE { 56 virtual string16 GetWindowTitle() const OVERRIDE {
57 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE); 57 return l10n_util::GetStringUTF16(IDS_LOGIN_DIALOG_TITLE);
58 } 58 }
59 59
60 virtual void WindowClosing() OVERRIDE { 60 virtual void WindowClosing() OVERRIDE {
61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
62 62
63 WebContents* tab = GetWebContentsForLogin(); 63 WebContents* tab = GetWebContentsForLogin();
64 if (tab) 64 if (tab)
65 tab->GetRenderViewHost()->set_ignore_input_events(false); 65 tab->GetRenderViewHost()->SetIgnoreInputEvents(false);
66 66
67 // Reference is no longer valid. 67 // Reference is no longer valid.
68 SetDialog(NULL); 68 SetDialog(NULL);
69 69
70 CancelAuth(); 70 CancelAuth();
71 } 71 }
72 72
73 virtual void DeleteDelegate() OVERRIDE { 73 virtual void DeleteDelegate() OVERRIDE {
74 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 74 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
75 75
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 LoginView* login_view_; 144 LoginView* login_view_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin); 146 DISALLOW_COPY_AND_ASSIGN(LoginHandlerWin);
147 }; 147 };
148 148
149 // static 149 // static
150 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info, 150 LoginHandler* LoginHandler::Create(net::AuthChallengeInfo* auth_info,
151 net::URLRequest* request) { 151 net::URLRequest* request) {
152 return new LoginHandlerWin(auth_info, request); 152 return new LoginHandlerWin(auth_info, request);
153 } 153 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/pdf/pdf_unsupported_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698