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

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

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 #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/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/autofill/password_generator.h" 8 #include "chrome/browser/autofill/password_generator.h"
9 #include "chrome/browser/password_manager/password_manager.h" 9 #include "chrome/browser/password_manager/password_manager.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 21 matching lines...) Expand all
32 if (!resource_id) 32 if (!resource_id)
33 return NULL; 33 return NULL;
34 return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed( 34 return ui::ResourceBundle::GetSharedInstance().GetNativeImageNamed(
35 resource_id, ui::ResourceBundle::RTL_ENABLED).ToGdkPixbuf(); 35 resource_id, ui::ResourceBundle::RTL_ENABLED).ToGdkPixbuf();
36 } 36 }
37 37
38 } // namespace 38 } // namespace
39 39
40 PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk( 40 PasswordGenerationBubbleGtk::PasswordGenerationBubbleGtk(
41 const gfx::Rect& anchor_rect, 41 const gfx::Rect& anchor_rect,
42 const webkit::forms::PasswordForm& form, 42 const content::PasswordForm& form,
43 TabContents* tab, 43 TabContents* tab,
44 autofill::PasswordGenerator* password_generator) 44 autofill::PasswordGenerator* password_generator)
45 : form_(form), 45 : form_(form),
46 tab_(tab), 46 tab_(tab),
47 password_generator_(password_generator) { 47 password_generator_(password_generator) {
48 // TODO(gcasto): Localize text after we have finalized the UI. 48 // TODO(gcasto): Localize text after we have finalized the UI.
49 // crbug.com/118062 49 // crbug.com/118062
50 GtkWidget* content = gtk_vbox_new(FALSE, 5); 50 GtkWidget* content = gtk_vbox_new(FALSE, 5);
51 51
52 // We have two lines of content. The first is the title and learn more link. 52 // We have two lines of content. The first is the title and learn more link.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { 145 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) {
146 actions_.learn_more_visited = true; 146 actions_.learn_more_visited = true;
147 Browser* browser = browser::FindBrowserWithWebContents(tab_->web_contents()); 147 Browser* browser = browser::FindBrowserWithWebContents(tab_->web_contents());
148 content::OpenURLParams params( 148 content::OpenURLParams params(
149 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), 149 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(),
150 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); 150 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false);
151 browser->OpenURL(params); 151 browser->OpenURL(params);
152 bubble_->Close(); 152 bubble_->Close();
153 } 153 }
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