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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual void OpenTabpose() OVERRIDE {} | 124 virtual void OpenTabpose() OVERRIDE {} |
125 virtual void EnterFullscreenWithChrome() OVERRIDE {} | 125 virtual void EnterFullscreenWithChrome() OVERRIDE {} |
126 virtual bool IsFullscreenWithChrome() OVERRIDE; | 126 virtual bool IsFullscreenWithChrome() OVERRIDE; |
127 virtual bool IsFullscreenWithoutChrome() OVERRIDE; | 127 virtual bool IsFullscreenWithoutChrome() OVERRIDE; |
128 #endif | 128 #endif |
129 | 129 |
130 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 130 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
131 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 131 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
132 const gfx::Rect& bounds) OVERRIDE; | 132 const gfx::Rect& bounds) OVERRIDE; |
133 virtual FindBar* CreateFindBar() OVERRIDE; | 133 virtual FindBar* CreateFindBar() OVERRIDE; |
134 virtual WebContentsModalDialogHost* | 134 virtual web_modal::WebContentsModalDialogHost* |
135 GetWebContentsModalDialogHost() OVERRIDE; | 135 GetWebContentsModalDialogHost() OVERRIDE; |
136 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 136 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
137 const gfx::Rect& rect) OVERRIDE {} | 137 const gfx::Rect& rect) OVERRIDE {} |
138 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE {} | 138 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE {} |
139 virtual void ShowPasswordGenerationBubble( | 139 virtual void ShowPasswordGenerationBubble( |
140 const gfx::Rect& rect, | 140 const gfx::Rect& rect, |
141 const content::PasswordForm& form, | 141 const content::PasswordForm& form, |
142 autofill::PasswordGenerator* generator) OVERRIDE {} | 142 autofill::PasswordGenerator* generator) OVERRIDE {} |
143 | 143 |
144 protected: | 144 protected: |
145 virtual void DestroyBrowser() OVERRIDE {} | 145 virtual void DestroyBrowser() OVERRIDE {} |
146 | 146 |
147 private: | 147 private: |
148 TestDownloadShelf download_shelf_; | 148 TestDownloadShelf download_shelf_; |
149 TestLocationBar location_bar_; | 149 TestLocationBar location_bar_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 151 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
152 }; | 152 }; |
153 | 153 |
154 namespace chrome { | 154 namespace chrome { |
155 | 155 |
156 // Helper that handle the lifetime of TestBrowserWindow instances. | 156 // Helper that handle the lifetime of TestBrowserWindow instances. |
157 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 157 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
158 | 158 |
159 } // namespace chrome | 159 } // namespace chrome |
160 | 160 |
161 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 161 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |