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

Side by Side Diff: chrome/browser/ui/gtk/browser_window_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
« 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 (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/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 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect); 1171 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect);
1172 } 1172 }
1173 1173
1174 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { 1174 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() {
1175 if (titlebar_->avatar_button()) 1175 if (titlebar_->avatar_button())
1176 titlebar_->avatar_button()->ShowAvatarBubble(); 1176 titlebar_->avatar_button()->ShowAvatarBubble();
1177 } 1177 }
1178 1178
1179 void BrowserWindowGtk::ShowPasswordGenerationBubble( 1179 void BrowserWindowGtk::ShowPasswordGenerationBubble(
1180 const gfx::Rect& rect, 1180 const gfx::Rect& rect,
1181 const webkit::forms::PasswordForm& form, 1181 const content::PasswordForm& form,
1182 autofill::PasswordGenerator* password_generator) { 1182 autofill::PasswordGenerator* password_generator) {
1183 WebContents* web_contents = chrome::GetActiveWebContents(browser_.get()); 1183 WebContents* web_contents = chrome::GetActiveWebContents(browser_.get());
1184 if (!web_contents || !web_contents->GetContentNativeView()) { 1184 if (!web_contents || !web_contents->GetContentNativeView()) {
1185 return; 1185 return;
1186 } 1186 }
1187 1187
1188 TabContents* tab_contents = TabContents::FromWebContents(web_contents); 1188 TabContents* tab_contents = TabContents::FromWebContents(web_contents);
1189 if (!tab_contents) 1189 if (!tab_contents)
1190 return; 1190 return;
1191 1191
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2413 wm_type == ui::WM_OPENBOX || 2413 wm_type == ui::WM_OPENBOX ||
2414 wm_type == ui::WM_XFWM4); 2414 wm_type == ui::WM_XFWM4);
2415 } 2415 }
2416 2416
2417 // static 2417 // static
2418 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { 2418 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) {
2419 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); 2419 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser);
2420 browser_window_gtk->Init(); 2420 browser_window_gtk->Init();
2421 return browser_window_gtk; 2421 return browser_window_gtk;
2422 } 2422 }
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