| 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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 bool already_bookmarked) { | 961 bool already_bookmarked) { |
| 962 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 962 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
| 963 } | 963 } |
| 964 | 964 |
| 965 void BrowserWindowGtk::ShowChromeToMobileBubble() { | 965 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
| 966 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); | 966 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); |
| 967 } | 967 } |
| 968 | 968 |
| 969 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 969 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 970 void BrowserWindowGtk::ShowOneClickSigninBubble( | 970 void BrowserWindowGtk::ShowOneClickSigninBubble( |
| 971 const StartSyncCallback& start_sync_callback) { | 971 OneClickSigninBubbleType type, |
| 972 const StartSyncCallback& start_sync_callback) { |
| 972 new OneClickSigninBubbleGtk(this, start_sync_callback); | 973 new OneClickSigninBubbleGtk(this, start_sync_callback); |
| 973 } | 974 } |
| 974 #endif | 975 #endif |
| 975 | 976 |
| 976 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 977 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
| 977 return download_shelf_.get() && download_shelf_->IsShowing(); | 978 return download_shelf_.get() && download_shelf_->IsShowing(); |
| 978 } | 979 } |
| 979 | 980 |
| 980 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { | 981 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { |
| 981 if (!download_shelf_.get()) | 982 if (!download_shelf_.get()) |
| (...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 wm_type == ui::WM_OPENBOX || | 2397 wm_type == ui::WM_OPENBOX || |
| 2397 wm_type == ui::WM_XFWM4); | 2398 wm_type == ui::WM_XFWM4); |
| 2398 } | 2399 } |
| 2399 | 2400 |
| 2400 // static | 2401 // static |
| 2401 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2402 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
| 2402 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2403 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
| 2403 browser_window_gtk->Init(); | 2404 browser_window_gtk->Init(); |
| 2404 return browser_window_gtk; | 2405 return browser_window_gtk; |
| 2405 } | 2406 } |
| OLD | NEW |