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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_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
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/gtk/login_prompt_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser_window_gtk.h" 5 #include "chrome/browser/ui/gtk/browser_window_gtk.h"
6 6
7 #include <gdk/gdkkeysyms.h> 7 #include <gdk/gdkkeysyms.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 &rect); 1160 &rect);
1161 } 1161 }
1162 1162
1163 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { 1163 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() {
1164 if (titlebar_->avatar_button()) 1164 if (titlebar_->avatar_button())
1165 titlebar_->avatar_button()->ShowAvatarBubble(); 1165 titlebar_->avatar_button()->ShowAvatarBubble();
1166 } 1166 }
1167 1167
1168 void BrowserWindowGtk::ShowPasswordGenerationBubble( 1168 void BrowserWindowGtk::ShowPasswordGenerationBubble(
1169 const gfx::Rect& rect, 1169 const gfx::Rect& rect,
1170 const content::PasswordForm& form, 1170 const autofill::PasswordForm& form,
1171 autofill::PasswordGenerator* password_generator) { 1171 autofill::PasswordGenerator* password_generator) {
1172 WebContents* web_contents = 1172 WebContents* web_contents =
1173 browser_->tab_strip_model()->GetActiveWebContents(); 1173 browser_->tab_strip_model()->GetActiveWebContents();
1174 if (!web_contents || !web_contents->GetView()->GetContentNativeView()) { 1174 if (!web_contents || !web_contents->GetView()->GetContentNativeView()) {
1175 return; 1175 return;
1176 } 1176 }
1177 1177
1178 new PasswordGenerationBubbleGtk(rect, form, web_contents, password_generator); 1178 new PasswordGenerationBubbleGtk(rect, form, web_contents, password_generator);
1179 } 1179 }
1180 1180
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2414 wm_type == ui::WM_OPENBOX || 2414 wm_type == ui::WM_OPENBOX ||
2415 wm_type == ui::WM_XFWM4); 2415 wm_type == ui::WM_XFWM4);
2416 } 2416 }
2417 2417
2418 // static 2418 // static
2419 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2419 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2420 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2420 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2421 browser_window_gtk->Init(); 2421 browser_window_gtk->Init();
2422 return browser_window_gtk; 2422 return browser_window_gtk;
2423 } 2423 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/gtk/login_prompt_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698