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

Side by Side Diff: chrome/browser/ui/gtk/password_generation_bubble_gtk.cc

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Rebase Created 7 years, 3 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 #include "chrome/browser/ui/gtk/password_generation_bubble_gtk.h" 5 #include "chrome/browser/ui/gtk/password_generation_bubble_gtk.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/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/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 22 matching lines...) Expand all
33 if (!resource_id) 33 if (!resource_id)
34 return NULL; 34 return NULL;
35 return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( 35 return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
36 resource_id, ui::ResourceBundle::RTL_ENABLED).ToGdkPixbuf(); 36 resource_id, ui::ResourceBundle::RTL_ENABLED).ToGdkPixbuf();
37 } 37 }
38 38
39 } // namespace 39 } // namespace
40 40
41 PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk( 41 PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk(
42 const gfx::Rect& anchor_rect, 42 const gfx::Rect& anchor_rect,
43 const content::PasswordForm& form, 43 const autofill::PasswordForm& form,
44 content::WebContents* web_contents, 44 content::WebContents* web_contents,
45 autofill::PasswordGenerator* password_generator) 45 autofill::PasswordGenerator* password_generator)
46 : form_(form), 46 : form_(form),
47 web_contents_(web_contents), 47 web_contents_(web_contents),
48 password_generator_(password_generator) { 48 password_generator_(password_generator) {
49 // TODO(gcasto): Localize text after we have finalized the UI. 49 // TODO(gcasto): Localize text after we have finalized the UI.
50 // crbug.com/118062 50 // crbug.com/118062
51 GtkWidget* content = gtk_vbox_new(FALSE, 5); 51 GtkWidget* content = gtk_vbox_new(FALSE, 5);
52 52
53 // We have two lines of content. The first is the title and learn more link. 53 // We have two lines of content. The first is the title and learn more link.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { 151 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) {
152 actions_.learn_more_visited = true; 152 actions_.learn_more_visited = true;
153 Browser* browser = chrome::FindBrowserWithWebContents(web_contents_); 153 Browser* browser = chrome::FindBrowserWithWebContents(web_contents_);
154 content::OpenURLParams params( 154 content::OpenURLParams params(
155 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), 155 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(),
156 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); 156 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false);
157 browser->OpenURL(params); 157 browser->OpenURL(params);
158 bubble_->Close(); 158 bubble_->Close();
159 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/password_generation_bubble_gtk.h ('k') | chrome/browser/ui/login/login_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698