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

Side by Side Diff: chrome/browser/ui/cocoa/login_prompt_cocoa.mm

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2012 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 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h" 5 #import "chrome/browser/ui/cocoa/login_prompt_cocoa.h"
6 6
7 #include "base/mac/bundle_locations.h" 7 #include "base/mac/bundle_locations.h"
8 #include "base/mac/mac_util.h" 8 #include "base/mac/mac_util.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/sys_string_conversions.h" 11 #include "base/sys_string_conversions.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/password_manager/password_manager.h" 13 #include "chrome/browser/password_manager/password_manager.h"
14 #include "chrome/browser/tab_contents/tab_util.h" 14 #include "chrome/browser/tab_contents/tab_util.h"
15 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" 15 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
16 #include "chrome/browser/ui/login/login_model.h" 16 #include "chrome/browser/ui/login/login_model.h"
17 #include "chrome/browser/ui/login/login_prompt.h" 17 #include "chrome/browser/ui/login/login_prompt.h"
18 #include "chrome/browser/ui/tab_contents/tab_contents.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents.h"
19 #include "content/public/browser/browser_thread.h" 19 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "net/url_request/url_request.h" 22 #include "net/url_request/url_request.h"
23 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 23 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 using content::BrowserThread; 26 using content::BrowserThread;
27 using content::PasswordForm;
27 using content::WebContents; 28 using content::WebContents;
28 using webkit::forms::PasswordForm;
29 29
30 // ---------------------------------------------------------------------------- 30 // ----------------------------------------------------------------------------
31 // LoginHandlerMac 31 // LoginHandlerMac
32 32
33 // This class simply forwards the authentication from the LoginView (on 33 // This class simply forwards the authentication from the LoginView (on
34 // the UI thread) to the net::URLRequest (on the I/O thread). 34 // the UI thread) to the net::URLRequest (on the I/O thread).
35 // This class uses ref counting to ensure that it lives until all InvokeLaters 35 // This class uses ref counting to ensure that it lives until all InvokeLaters
36 // have been called. 36 // have been called.
37 class LoginHandlerMac : public LoginHandler, 37 class LoginHandlerMac : public LoginHandler,
38 public ConstrainedWindowMacDelegateCustomSheet { 38 public ConstrainedWindowMacDelegateCustomSheet {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 sizeToFitFixedWidthTextField:explanationField_]; 188 sizeToFitFixedWidthTextField:explanationField_];
189 189
190 // Resize the window (no shifting needed due to window layout). 190 // Resize the window (no shifting needed due to window layout).
191 NSSize windowDelta = NSMakeSize(0, explanationShift); 191 NSSize windowDelta = NSMakeSize(0, explanationShift);
192 [GTMUILocalizerAndLayoutTweaker 192 [GTMUILocalizerAndLayoutTweaker
193 resizeWindowWithoutAutoResizingSubViews:[self window] 193 resizeWindowWithoutAutoResizingSubViews:[self window]
194 delta:windowDelta]; 194 delta:windowDelta];
195 } 195 }
196 196
197 @end 197 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/gtk/autofill/autofill_external_delegate_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698