Chromium Code Reviews| 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 #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.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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 virtual void ShowUpdateChromeDialog() = 0; | 216 virtual void ShowUpdateChromeDialog() = 0; |
| 216 | 217 |
| 217 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 218 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
| 218 // |already_bookmarked| is true if the url is already bookmarked. | 219 // |already_bookmarked| is true if the url is already bookmarked. |
| 219 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 220 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
| 220 | 221 |
| 221 // Shows the bookmark prompt. | 222 // Shows the bookmark prompt. |
| 222 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. | 223 // TODO(yosin): Make ShowBookmarkPrompt pure virtual. |
| 223 virtual void ShowBookmarkPrompt() {} | 224 virtual void ShowBookmarkPrompt() {} |
| 224 | 225 |
| 226 // Shows the translate bubble. | |
| 227 // TODO(hajimehoshi): Make this pure virtual. | |
|
Takashi Toyoshima
2013/10/08 14:54:09
Yeah, this TODO means we don't implement this meth
hajimehoshi
2013/10/10 11:07:10
OK, I'll write the test.
| |
| 228 virtual void ShowTranslateBubble(content::WebContents* contents, | |
| 229 TranslateBubble::Type type) {} | |
| 230 | |
| 225 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 231 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 226 enum OneClickSigninBubbleType { | 232 enum OneClickSigninBubbleType { |
| 227 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, | 233 ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE, |
| 228 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, | 234 ONE_CLICK_SIGNIN_BUBBLE_TYPE_MODAL_DIALOG, |
| 229 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG | 235 ONE_CLICK_SIGNIN_BUBBLE_TYPE_SAML_MODAL_DIALOG |
| 230 }; | 236 }; |
| 231 | 237 |
| 232 // Callback type used with the ShowOneClickSigninBubble() method. If the | 238 // Callback type used with the ShowOneClickSigninBubble() method. If the |
| 233 // user chooses to accept the sign in, the callback is called to start the | 239 // user chooses to accept the sign in, the callback is called to start the |
| 234 // sync process. | 240 // sync process. |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 407 | 413 |
| 408 // Returns the ToolbarView. | 414 // Returns the ToolbarView. |
| 409 virtual ToolbarView* GetToolbarView() const = 0; | 415 virtual ToolbarView* GetToolbarView() const = 0; |
| 410 #endif | 416 #endif |
| 411 | 417 |
| 412 protected: | 418 protected: |
| 413 virtual ~BrowserWindowTesting() {} | 419 virtual ~BrowserWindowTesting() {} |
| 414 }; | 420 }; |
| 415 | 421 |
| 416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 422 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |