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