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

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

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add the browser test Created 7 years, 2 months 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/common/content_settings_types.h" 16 #include "chrome/common/content_settings_types.h"
16 #include "ui/base/base_window.h" 17 #include "ui/base/base_window.h"
17 #include "ui/base/window_open_disposition.h" 18 #include "ui/base/window_open_disposition.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
19 20
20 class Browser; 21 class Browser;
21 class BrowserWindowTesting; 22 class BrowserWindowTesting;
22 class DownloadShelf; 23 class DownloadShelf;
23 class FindBar; 24 class FindBar;
24 class GURL; 25 class GURL;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 virtual void ShowUpdateChromeDialog() = 0; 213 virtual void ShowUpdateChromeDialog() = 0;
213 214
214 // Shows the Bookmark bubble. |url| is the URL being bookmarked, 215 // Shows the Bookmark bubble. |url| is the URL being bookmarked,
215 // |already_bookmarked| is true if the url is already bookmarked. 216 // |already_bookmarked| is true if the url is already bookmarked.
216 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; 217 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0;
217 218
218 // Shows the bookmark prompt. 219 // Shows the bookmark prompt.
219 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. 220 // TODO(yosin): Make ShowBookmarkPrompt pure virtual.
220 virtual void ShowBookmarkPrompt() {} 221 virtual void ShowBookmarkPrompt() {}
221 222
223 // Shows the translate bubble.
224 virtual void ShowTranslateBubble(
sky 2013/10/18 14:31:10 Why does this and GetTranslateBUbbleModel need to
hajimehoshi 2013/10/22 10:30:25 Removed GetTranslateBubbleModel.
225 content::WebContents* contents,
226 TranslateBubbleModel::ViewState view_state) = 0;
227
222 #if defined(ENABLE_ONE_CLICK_SIGNIN) 228 #if defined(ENABLE_ONE_CLICK_SIGNIN)
223 enum OneClickSigninBubbleType { 229 enum OneClickSigninBubbleType {
224 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, 230 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE,
225 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, 231 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG,
226 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG 232 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG
227 }; 233 };
228 234
229 // Callback type used with the ShowOneClickSigninBubble() method. If the 235 // Callback type used with the ShowOneClickSigninBubble() method. If the
230 // user chooses to accept the sign in, the callback is called to start the 236 // user chooses to accept the sign in, the callback is called to start the
231 // sync process. 237 // sync process.
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // Returns the LocationBarView. 401 // Returns the LocationBarView.
396 virtual LocationBarView* GetLocationBarView() const = 0; 402 virtual LocationBarView* GetLocationBarView() const = 0;
397 403
398 // Returns the TabContentsContainer. 404 // Returns the TabContentsContainer.
399 virtual views::View* GetTabContentsContainerView() const = 0; 405 virtual views::View* GetTabContentsContainerView() const = 0;
400 406
401 // Returns the ToolbarView. 407 // Returns the ToolbarView.
402 virtual ToolbarView* GetToolbarView() const = 0; 408 virtual ToolbarView* GetToolbarView() const = 0;
403 #endif 409 #endif
404 410
411 // Returns the Translate bubble model. This may return NULL.
412 virtual TranslateBubbleModel* GetTranslateBubbleModel() const = 0;
413
405 protected: 414 protected:
406 virtual ~BrowserWindowTesting() {} 415 virtual ~BrowserWindowTesting() {}
407 }; 416 };
408 417
409 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 418 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698