| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |