| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, | 150 virtual void ShowAvatarBubbleFromAvatarButton(AvatarBubbleMode mode, |
| 151 const signin::ManageAccountsParams& manage_accounts_params) OVERRIDE {} | 151 const signin::ManageAccountsParams& manage_accounts_params) OVERRIDE {} |
| 152 virtual void ShowPasswordGenerationBubble( | 152 virtual void ShowPasswordGenerationBubble( |
| 153 const gfx::Rect& rect, | 153 const gfx::Rect& rect, |
| 154 const autofill::PasswordForm& form, | 154 const autofill::PasswordForm& form, |
| 155 autofill::PasswordGenerator* generator) OVERRIDE {} | 155 autofill::PasswordGenerator* generator) OVERRIDE {} |
| 156 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; | 156 virtual int GetRenderViewHeightInsetWithDetachedBookmarkBar() OVERRIDE; |
| 157 virtual void ExecuteExtensionCommand( | 157 virtual void ExecuteExtensionCommand( |
| 158 const extensions::Extension* extension, | 158 const extensions::Extension* extension, |
| 159 const extensions::Command& command) OVERRIDE; | 159 const extensions::Command& command) OVERRIDE; |
| 160 virtual void ShowPageActionPopup( | |
| 161 const extensions::Extension* extension) OVERRIDE; | |
| 162 virtual void ShowBrowserActionPopup( | |
| 163 const extensions::Extension* extension) OVERRIDE; | |
| 164 | 160 |
| 165 protected: | 161 protected: |
| 166 virtual void DestroyBrowser() OVERRIDE {} | 162 virtual void DestroyBrowser() OVERRIDE {} |
| 167 | 163 |
| 168 private: | 164 private: |
| 169 class TestLocationBar : public LocationBar { | 165 class TestLocationBar : public LocationBar { |
| 170 public: | 166 public: |
| 171 TestLocationBar() : LocationBar(NULL) {} | 167 TestLocationBar() : LocationBar(NULL) {} |
| 172 virtual ~TestLocationBar() {} | 168 virtual ~TestLocationBar() {} |
| 173 | 169 |
| 174 // LocationBar: | 170 // LocationBar: |
| 175 virtual void ShowFirstRunBubble() OVERRIDE {} | 171 virtual void ShowFirstRunBubble() OVERRIDE {} |
| 176 virtual GURL GetDestinationURL() const OVERRIDE; | 172 virtual GURL GetDestinationURL() const OVERRIDE; |
| 177 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; | 173 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; |
| 178 virtual content::PageTransition GetPageTransition() const OVERRIDE; | 174 virtual content::PageTransition GetPageTransition() const OVERRIDE; |
| 179 virtual void AcceptInput() OVERRIDE {} | 175 virtual void AcceptInput() OVERRIDE {} |
| 180 virtual void FocusLocation(bool select_all) OVERRIDE {} | 176 virtual void FocusLocation(bool select_all) OVERRIDE {} |
| 181 virtual void FocusSearch() OVERRIDE {} | 177 virtual void FocusSearch() OVERRIDE {} |
| 182 virtual void UpdateContentSettingsIcons() OVERRIDE {} | 178 virtual void UpdateContentSettingsIcons() OVERRIDE {} |
| 183 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE {} | 179 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE {} |
| 184 virtual void UpdatePageActions() OVERRIDE {} | 180 virtual void UpdatePageActions() OVERRIDE {} |
| 185 virtual void InvalidatePageActions() OVERRIDE {} | 181 virtual void InvalidatePageActions() OVERRIDE {} |
| 182 virtual bool ShowPageActionPopup(const extensions::Extension* extension, |
| 183 bool grant_active_tab) OVERRIDE; |
| 186 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE {} | 184 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE {} |
| 187 virtual void UpdateGeneratedCreditCardView() OVERRIDE {} | 185 virtual void UpdateGeneratedCreditCardView() OVERRIDE {} |
| 188 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE {} | 186 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE {} |
| 189 virtual void Revert() OVERRIDE {} | 187 virtual void Revert() OVERRIDE {} |
| 190 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; | 188 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; |
| 191 virtual OmniboxView* GetOmniboxView() OVERRIDE; | 189 virtual OmniboxView* GetOmniboxView() OVERRIDE; |
| 192 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; | 190 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; |
| 193 | 191 |
| 194 private: | 192 private: |
| 195 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); | 193 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); |
| 196 }; | 194 }; |
| 197 | 195 |
| 198 TestDownloadShelf download_shelf_; | 196 TestDownloadShelf download_shelf_; |
| 199 TestLocationBar location_bar_; | 197 TestLocationBar location_bar_; |
| 200 | 198 |
| 201 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 199 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
| 202 }; | 200 }; |
| 203 | 201 |
| 204 namespace chrome { | 202 namespace chrome { |
| 205 | 203 |
| 206 // Helper that handle the lifetime of TestBrowserWindow instances. | 204 // Helper that handle the lifetime of TestBrowserWindow instances. |
| 207 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 205 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
| 208 | 206 |
| 209 } // namespace chrome | 207 } // namespace chrome |
| 210 | 208 |
| 211 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 209 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |