| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 6 #define CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 bool IsTabStripEditable() const override; | 102 bool IsTabStripEditable() const override; |
| 103 bool IsToolbarVisible() const override; | 103 bool IsToolbarVisible() const override; |
| 104 gfx::Rect GetRootWindowResizerRect() const override; | 104 gfx::Rect GetRootWindowResizerRect() const override; |
| 105 void ConfirmAddSearchProvider(TemplateURL* template_url, | 105 void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 106 Profile* profile) override {} | 106 Profile* profile) override {} |
| 107 void ShowUpdateChromeDialog() override {} | 107 void ShowUpdateChromeDialog() override {} |
| 108 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override {} | 108 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override {} |
| 109 void ShowBookmarkAppBubble( | 109 void ShowBookmarkAppBubble( |
| 110 const WebApplicationInfo& web_app_info, | 110 const WebApplicationInfo& web_app_info, |
| 111 const ShowBookmarkAppBubbleCallback& callback) override {} | 111 const ShowBookmarkAppBubbleCallback& callback) override {} |
| 112 autofill::SaveCardBubbleView* ShowSaveCreditCardBubble( |
| 113 content::WebContents* contents, |
| 114 autofill::SaveCardBubbleController* controller) override; |
| 112 void ShowTranslateBubble(content::WebContents* contents, | 115 void ShowTranslateBubble(content::WebContents* contents, |
| 113 translate::TranslateStep step, | 116 translate::TranslateStep step, |
| 114 translate::TranslateErrors::Type error_type, | 117 translate::TranslateErrors::Type error_type, |
| 115 bool is_user_gesture) override {} | 118 bool is_user_gesture) override {} |
| 116 bool IsProfileResetBubbleSupported() const override; | 119 bool IsProfileResetBubbleSupported() const override; |
| 117 GlobalErrorBubbleViewBase* ShowProfileResetBubble( | 120 GlobalErrorBubbleViewBase* ShowProfileResetBubble( |
| 118 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; | 121 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; |
| 119 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 122 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
| 120 void ShowOneClickSigninBubble( | 123 void ShowOneClickSigninBubble( |
| 121 OneClickSigninBubbleType type, | 124 OneClickSigninBubbleType type, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // LocationBar: | 165 // LocationBar: |
| 163 void ShowFirstRunBubble() override {} | 166 void ShowFirstRunBubble() override {} |
| 164 GURL GetDestinationURL() const override; | 167 GURL GetDestinationURL() const override; |
| 165 WindowOpenDisposition GetWindowOpenDisposition() const override; | 168 WindowOpenDisposition GetWindowOpenDisposition() const override; |
| 166 ui::PageTransition GetPageTransition() const override; | 169 ui::PageTransition GetPageTransition() const override; |
| 167 void AcceptInput() override {} | 170 void AcceptInput() override {} |
| 168 void FocusLocation(bool select_all) override {} | 171 void FocusLocation(bool select_all) override {} |
| 169 void FocusSearch() override {} | 172 void FocusSearch() override {} |
| 170 void UpdateContentSettingsIcons() override {} | 173 void UpdateContentSettingsIcons() override {} |
| 171 void UpdateManagePasswordsIconAndBubble() override {} | 174 void UpdateManagePasswordsIconAndBubble() override {} |
| 175 void UpdateSaveCreditCardIcon() override {} |
| 172 void UpdatePageActions() override {} | 176 void UpdatePageActions() override {} |
| 173 void UpdateBookmarkStarVisibility() override {} | 177 void UpdateBookmarkStarVisibility() override {} |
| 174 void UpdateLocationBarVisibility(bool visible, bool animate) override {} | 178 void UpdateLocationBarVisibility(bool visible, bool animate) override {} |
| 175 bool ShowPageActionPopup(const extensions::Extension* extension, | 179 bool ShowPageActionPopup(const extensions::Extension* extension, |
| 176 bool grant_active_tab) override; | 180 bool grant_active_tab) override; |
| 177 void UpdateOpenPDFInReaderPrompt() override {} | 181 void UpdateOpenPDFInReaderPrompt() override {} |
| 178 void SaveStateToContents(content::WebContents* contents) override {} | 182 void SaveStateToContents(content::WebContents* contents) override {} |
| 179 void Revert() override {} | 183 void Revert() override {} |
| 180 const OmniboxView* GetOmniboxView() const override; | 184 const OmniboxView* GetOmniboxView() const override; |
| 181 OmniboxView* GetOmniboxView() override; | 185 OmniboxView* GetOmniboxView() override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 208 | 212 |
| 209 namespace chrome { | 213 namespace chrome { |
| 210 | 214 |
| 211 // Helper that handle the lifetime of TestBrowserWindow instances. | 215 // Helper that handle the lifetime of TestBrowserWindow instances. |
| 212 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( | 216 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( |
| 213 Browser::CreateParams* params); | 217 Browser::CreateParams* params); |
| 214 | 218 |
| 215 } // namespace chrome | 219 } // namespace chrome |
| 216 | 220 |
| 217 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 221 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |