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