| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 WindowOpenDisposition GetDispositionForPopupBounds( | 143 WindowOpenDisposition GetDispositionForPopupBounds( |
| 144 const gfx::Rect& bounds) override; | 144 const gfx::Rect& bounds) override; |
| 145 FindBar* CreateFindBar() override; | 145 FindBar* CreateFindBar() override; |
| 146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() | 146 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost() |
| 147 override; | 147 override; |
| 148 void ShowAvatarBubbleFromAvatarButton( | 148 void ShowAvatarBubbleFromAvatarButton( |
| 149 AvatarBubbleMode mode, | 149 AvatarBubbleMode mode, |
| 150 const signin::ManageAccountsParams& manage_accounts_params) override {} | 150 const signin::ManageAccountsParams& manage_accounts_params) override {} |
| 151 void ShowModalSigninWindow(AvatarBubbleMode mode) override {} | 151 void ShowModalSigninWindow(AvatarBubbleMode mode) override {} |
| 152 void CloseModalSigninWindow() override {} | 152 void CloseModalSigninWindow() override {} |
| 153 void ShowModalSyncConfirmationWindow() override {} |
| 153 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; | 154 int GetRenderViewHeightInsetWithDetachedBookmarkBar() override; |
| 154 void ExecuteExtensionCommand(const extensions::Extension* extension, | 155 void ExecuteExtensionCommand(const extensions::Extension* extension, |
| 155 const extensions::Command& command) override; | 156 const extensions::Command& command) override; |
| 156 ExclusiveAccessContext* GetExclusiveAccessContext() override; | 157 ExclusiveAccessContext* GetExclusiveAccessContext() override; |
| 157 | 158 |
| 158 protected: | 159 protected: |
| 159 void DestroyBrowser() override {} | 160 void DestroyBrowser() override {} |
| 160 | 161 |
| 161 private: | 162 private: |
| 162 class TestLocationBar : public LocationBar { | 163 class TestLocationBar : public LocationBar { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 215 |
| 215 namespace chrome { | 216 namespace chrome { |
| 216 | 217 |
| 217 // Helper that handle the lifetime of TestBrowserWindow instances. | 218 // Helper that handle the lifetime of TestBrowserWindow instances. |
| 218 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( | 219 scoped_ptr<Browser> CreateBrowserWithTestWindowForParams( |
| 219 Browser::CreateParams* params); | 220 Browser::CreateParams* params); |
| 220 | 221 |
| 221 } // namespace chrome | 222 } // namespace chrome |
| 222 | 223 |
| 223 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 224 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
| OLD | NEW |