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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, | 1072 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, |
1073 bool already_bookmarked) { | 1073 bool already_bookmarked) { |
1074 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1074 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
1075 } | 1075 } |
1076 | 1076 |
1077 void BrowserWindowGtk::ShowChromeToMobileBubble() { | 1077 void BrowserWindowGtk::ShowChromeToMobileBubble() { |
1078 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); | 1078 toolbar_->GetLocationBarView()->ShowChromeToMobileBubble(); |
1079 } | 1079 } |
1080 | 1080 |
1081 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 1081 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
1082 void BrowserWindowGtk::ShowOneClickSigninBubble() { | 1082 void BrowserWindowGtk::ShowOneClickSigninBubble( |
| 1083 const base::Closure& learn_more_callback, |
| 1084 const base::Closure& advanced_callback) { |
1083 // TODO(rogerta): will be implemented when the one-click feature is done on | 1085 // TODO(rogerta): will be implemented when the one-click feature is done on |
1084 // linux. | 1086 // linux. |
1085 NOTIMPLEMENTED(); | 1087 NOTIMPLEMENTED(); |
1086 } | 1088 } |
1087 #endif | 1089 #endif |
1088 | 1090 |
1089 bool BrowserWindowGtk::IsDownloadShelfVisible() const { | 1091 bool BrowserWindowGtk::IsDownloadShelfVisible() const { |
1090 return download_shelf_.get() && download_shelf_->IsShowing(); | 1092 return download_shelf_.get() && download_shelf_->IsShowing(); |
1091 } | 1093 } |
1092 | 1094 |
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2576 wm_type == ui::WM_OPENBOX || | 2578 wm_type == ui::WM_OPENBOX || |
2577 wm_type == ui::WM_XFWM4); | 2579 wm_type == ui::WM_XFWM4); |
2578 } | 2580 } |
2579 | 2581 |
2580 // static | 2582 // static |
2581 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { | 2583 BrowserWindow* BrowserWindow::CreateBrowserWindow(Browser* browser) { |
2582 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2584 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2583 browser_window_gtk->Init(); | 2585 browser_window_gtk->Init(); |
2584 return browser_window_gtk; | 2586 return browser_window_gtk; |
2585 } | 2587 } |
OLD | NEW |