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 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1028 UpdateRecommendedDialog::Show(window_); | 1028 UpdateRecommendedDialog::Show(window_); |
1029 } | 1029 } |
1030 | 1030 |
1031 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, | 1031 void BrowserWindowGtk::ShowBookmarkBubble(const GURL& url, |
1032 bool already_bookmarked) { | 1032 bool already_bookmarked) { |
1033 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1033 toolbar_->GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
1034 } | 1034 } |
1035 | 1035 |
1036 void BrowserWindowGtk::ShowTranslateBubble( | 1036 void BrowserWindowGtk::ShowTranslateBubble( |
1037 content::WebContents* contents, | 1037 content::WebContents* contents, |
1038 TranslateBubbleModel::ViewState view_state) { | 1038 TranslateBubbleModel::ViewState view_state, |
| 1039 TranslateErrors::Type error_type) { |
| 1040 NOTIMPLEMENTED(); |
1039 } | 1041 } |
1040 | 1042 |
1041 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 1043 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
1042 void BrowserWindowGtk::ShowOneClickSigninBubble( | 1044 void BrowserWindowGtk::ShowOneClickSigninBubble( |
1043 OneClickSigninBubbleType type, | 1045 OneClickSigninBubbleType type, |
1044 const string16& email, | 1046 const string16& email, |
1045 const string16& error_message, | 1047 const string16& error_message, |
1046 const StartSyncCallback& start_sync_callback) { | 1048 const StartSyncCallback& start_sync_callback) { |
1047 | 1049 |
1048 new OneClickSigninBubbleGtk(this, type, email, | 1050 new OneClickSigninBubbleGtk(this, type, email, |
(...skipping 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2421 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); | 2423 BrowserWindowGtk* browser_window_gtk = new BrowserWindowGtk(browser); |
2422 browser_window_gtk->Init(); | 2424 browser_window_gtk->Init(); |
2423 return browser_window_gtk; | 2425 return browser_window_gtk; |
2424 } | 2426 } |
2425 | 2427 |
2426 // static | 2428 // static |
2427 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( | 2429 chrome::HostDesktopType BrowserWindow::AdjustHostDesktopType( |
2428 chrome::HostDesktopType desktop_type) { | 2430 chrome::HostDesktopType desktop_type) { |
2429 return desktop_type; | 2431 return desktop_type; |
2430 } | 2432 } |
OLD | NEW |