| 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 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect); | 1173 BubbleGtk::ARROW_LOCATION_TOP_LEFT, &rect); |
| 1174 } | 1174 } |
| 1175 | 1175 |
| 1176 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { | 1176 void BrowserWindowGtk::ShowAvatarBubbleFromAvatarButton() { |
| 1177 if (titlebar_->avatar_button()) | 1177 if (titlebar_->avatar_button()) |
| 1178 titlebar_->avatar_button()->ShowAvatarBubble(); | 1178 titlebar_->avatar_button()->ShowAvatarBubble(); |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 void BrowserWindowGtk::ShowPasswordGenerationBubble( | 1181 void BrowserWindowGtk::ShowPasswordGenerationBubble( |
| 1182 const gfx::Rect& rect, | 1182 const gfx::Rect& rect, |
| 1183 const webkit::forms::PasswordForm& form, | 1183 const content::PasswordForm& form, |
| 1184 autofill::PasswordGenerator* password_generator) { | 1184 autofill::PasswordGenerator* password_generator) { |
| 1185 WebContents* web_contents = chrome::GetActiveWebContents(browser_.get()); | 1185 WebContents* web_contents = chrome::GetActiveWebContents(browser_.get()); |
| 1186 if (!web_contents || !web_contents->GetContentNativeView()) { | 1186 if (!web_contents || !web_contents->GetContentNativeView()) { |
| 1187 return; | 1187 return; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 TabContents* tab_contents = TabContents::FromWebContents(web_contents); | 1190 TabContents* tab_contents = TabContents::FromWebContents(web_contents); |
| 1191 if (!tab_contents) | 1191 if (!tab_contents) |
| 1192 return; | 1192 return; |
| 1193 | 1193 |
| (...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2449 wm_type == ui::WM_OPENBOX || | 2449 wm_type == ui::WM_OPENBOX || |
| 2450 wm_type == ui::WM_XFWM4); | 2450 wm_type == ui::WM_XFWM4); |
| 2451 } | 2451 } |
| 2452 | 2452 |
| 2453 // static | 2453 // static |
| 2454 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2454 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2455 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2455 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2456 browser_window_gtk->Init(); | 2456 browser_window_gtk->Init(); |
| 2457 return browser_window_gtk; | 2457 return browser_window_gtk; |
| 2458 } | 2458 } |
| OLD | NEW |