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