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

Side by Side Diff: chrome/browser/ui/browser_window.h

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 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/browser_close_manager.h" 9 #include "chrome/browser/lifetime/browser_close_manager.h"
10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h" 12 #include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
13 #include "chrome/browser/ui/host_desktop.h" 13 #include "chrome/browser/ui/host_desktop.h"
14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" 14 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
15 #include "chrome/browser/ui/translate/translate_bubble_model.h" 15 #include "chrome/browser/ui/translate/translate_bubble_model.h"
16 #include "chrome/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
17 #include "chrome/common/translate/translate_errors.h"
17 #include "ui/base/base_window.h" 18 #include "ui/base/base_window.h"
18 #include "ui/base/window_open_disposition.h" 19 #include "ui/base/window_open_disposition.h"
19 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
20 21
21 class Browser; 22 class Browser;
22 class BrowserWindowTesting; 23 class BrowserWindowTesting;
23 class DownloadShelf; 24 class DownloadShelf;
24 class FindBar; 25 class FindBar;
25 class GURL; 26 class GURL;
26 class LocationBar; 27 class LocationBar;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 // |already_bookmarked| is true if the url is already bookmarked. 220 // |already_bookmarked| is true if the url is already bookmarked.
220 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; 221 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0;
221 222
222 // Shows the bookmark prompt. 223 // Shows the bookmark prompt.
223 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. 224 // TODO(yosin): Make ShowBookmarkPrompt pure virtual.
224 virtual void ShowBookmarkPrompt() {} 225 virtual void ShowBookmarkPrompt() {}
225 226
226 // Shows the translate bubble. 227 // Shows the translate bubble.
227 virtual void ShowTranslateBubble( 228 virtual void ShowTranslateBubble(
228 content::WebContents* contents, 229 content::WebContents* contents,
229 TranslateBubbleModel::ViewState view_state) = 0; 230 TranslateBubbleModel::ViewState view_state,
231 TranslateErrors::Type error_type) = 0;
230 232
231 #if defined(ENABLE_ONE_CLICK_SIGNIN) 233 #if defined(ENABLE_ONE_CLICK_SIGNIN)
232 enum OneClickSigninBubbleType { 234 enum OneClickSigninBubbleType {
233 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, 235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
234 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, 236 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG,
235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG 237 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG
236 }; 238 };
237 239
238 // Callback type used with the ShowOneClickSigninBubble() method. If the 240 // Callback type used with the ShowOneClickSigninBubble() method. If the
239 // user chooses to accept the sign in, the callback is called to start the 241 // user chooses to accept the sign in, the callback is called to start the
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 417
416 // Returns the ToolbarView. 418 // Returns the ToolbarView.
417 virtual ToolbarView* GetToolbarView() const = 0; 419 virtual ToolbarView* GetToolbarView() const = 0;
418 #endif 420 #endif
419 421
420 protected: 422 protected:
421 virtual ~BrowserWindowTesting() {} 423 virtual ~BrowserWindowTesting() {}
422 }; 424 };
423 425
424 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698