| 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 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 } | 969 } |
| 970 | 970 |
| 971 void BrowserWindowGtk::ShowChromeToMobileBubble() { | 971 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
| 972 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); | 972 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); |
| 973 } | 973 } |
| 974 | 974 |
| 975 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 975 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 976 void BrowserWindowGtk::ShowOneClickSigninBubble( | 976 void BrowserWindowGtk::ShowOneClickSigninBubble( |
| 977 OneClickSigninBubbleType type, | 977 OneClickSigninBubbleType type, |
| 978 const string16& email, | 978 const string16& email, |
| 979 const string16& error_message, |
| 979 const StartSyncCallback& start_sync_callback) { | 980 const StartSyncCallback& start_sync_callback) { |
| 980 new OneClickSigninBubbleGtk(this, type, start_sync_callback); | 981 new OneClickSigninBubbleGtk(this, type, start_sync_callback); |
| 981 } | 982 } |
| 982 #endif | 983 #endif |
| 983 | 984 |
| 984 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 985 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
| 985 return download_shelf_.get() && download_shelf_->IsShowing(); | 986 return download_shelf_.get() && download_shelf_->IsShowing(); |
| 986 } | 987 } |
| 987 | 988 |
| 988 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { | 989 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { |
| (...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2391 wm_type == ui::WM_OPENBOX || | 2392 wm_type == ui::WM_OPENBOX || |
| 2392 wm_type == ui::WM_XFWM4); | 2393 wm_type == ui::WM_XFWM4); |
| 2393 } | 2394 } |
| 2394 | 2395 |
| 2395 // static | 2396 // static |
| 2396 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2397 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2397 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2398 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2398 browser_window_gtk->Init(); | 2399 browser_window_gtk->Init(); |
| 2399 return browser_window_gtk; | 2400 return browser_window_gtk; |
| 2400 } | 2401 } |
| OLD | NEW |