Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/ui/gtk/browser_window_gtk.cc

Issue 87503004: Pass the Translate error type to the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.h ('k') | chrome/browser/ui/translate/translate_bubble_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698