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 <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <gdk/gdkkeysyms.h> | 8 #include <gdk/gdkkeysyms.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 bool already_bookmarked) { | 1068 bool already_bookmarked) { |
1069 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1069 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
1070 } | 1070 } |
1071 | 1071 |
1072 void BrowserWindowGtk::ShowChromeToMobileBubble() { | 1072 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
1073 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); | 1073 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); |
1074 } | 1074 } |
1075 | 1075 |
1076 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 1076 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
1077 void BrowserWindowGtk::ShowOneClickSigninBubble( | 1077 void BrowserWindowGtk::ShowOneClickSigninBubble( |
1078 const base::Closure& learn_more_callback, | 1078 const base::Callback<void(bool)>& start_sync_callback) { |
1079 const base::Closure& advanced_callback) { | 1079 ignore_result(new OneClickSigninBubbleGtk(this, start_sync_callback)); |
1080 ignore_result(new OneClickSigninBubbleGtk(this, learn_more_callback, | |
1081 advanced_callback)); | |
1082 } | 1080 } |
1083 #endif | 1081 #endif |
1084 | 1082 |
1085 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 1083 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
1086 return download_shelf_.get() && download_shelf_->IsShowing(); | 1084 return download_shelf_.get() && download_shelf_->IsShowing(); |
1087 } | 1085 } |
1088 | 1086 |
1089 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { | 1087 DownloadShelf* BrowserWindowGtk::GetDownloadShelf() { |
1090 if (!download_shelf_.get()) | 1088 if (!download_shelf_.get()) |
1091 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), | 1089 download_shelf_.reset(new DownloadShelfGtk(browser_.get(), |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 wm_type == ui::WM_OPENBOX || | 2583 wm_type == ui::WM_OPENBOX || |
2586 wm_type == ui::WM_XFWM4); | 2584 wm_type == ui::WM_XFWM4); |
2587 } | 2585 } |
2588 | 2586 |
2589 // static | 2587 // static |
2590 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2588 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2591 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2589 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2592 browser_window_gtk->Init(); | 2590 browser_window_gtk->Init(); |
2593 return browser_window_gtk; | 2591 return browser_window_gtk; |
2594 } | 2592 } |
OLD | NEW |