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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 virtual void ShowInstant(TabContents* preview_contents, | 133 virtual void ShowInstant(TabContents* preview_contents, |
134 int height, | 134 int height, |
135 InstantSizeUnits units) OVERRIDE {} | 135 InstantSizeUnits units) OVERRIDE {} |
136 virtual void HideInstant() OVERRIDE {} | 136 virtual void HideInstant() OVERRIDE {} |
137 virtual gfx::Rect GetInstantBounds() OVERRIDE; | 137 virtual gfx::Rect GetInstantBounds() OVERRIDE; |
138 virtual bool IsInstantTabShowing() OVERRIDE; | 138 virtual bool IsInstantTabShowing() OVERRIDE; |
139 virtual WindowOpenDisposition GetDispositionForPopupBounds( | 139 virtual WindowOpenDisposition GetDispositionForPopupBounds( |
140 const gfx::Rect& bounds) OVERRIDE; | 140 const gfx::Rect& bounds) OVERRIDE; |
141 virtual FindBar* CreateFindBar() OVERRIDE; | 141 virtual FindBar* CreateFindBar() OVERRIDE; |
| 142 virtual int GetConstrainedWindowTopY() OVERRIDE; |
142 virtual void ShowAvatarBubble(content::WebContents* web_contents, | 143 virtual void ShowAvatarBubble(content::WebContents* web_contents, |
143 const gfx::Rect& rect) OVERRIDE {} | 144 const gfx::Rect& rect) OVERRIDE {} |
144 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE {} | 145 virtual void ShowAvatarBubbleFromAvatarButton() OVERRIDE {} |
145 | 146 |
146 protected: | 147 protected: |
147 virtual void DestroyBrowser() OVERRIDE {} | 148 virtual void DestroyBrowser() OVERRIDE {} |
148 | 149 |
149 private: | 150 private: |
150 TestDownloadShelf download_shelf_; | 151 TestDownloadShelf download_shelf_; |
151 TestLocationBar location_bar_; | 152 TestLocationBar location_bar_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 154 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
154 }; | 155 }; |
155 | 156 |
156 namespace chrome { | 157 namespace chrome { |
157 | 158 |
158 // Helpers that handle the lifetime of TestBrowserWindow instances. | 159 // Helpers that handle the lifetime of TestBrowserWindow instances. |
159 Browser* CreateBrowserWithTestWindowForProfile(Profile* profile); | 160 Browser* CreateBrowserWithTestWindowForProfile(Profile* profile); |
160 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 161 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
161 | 162 |
162 } // namespace chrome | 163 } // namespace chrome |
163 | 164 |
164 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 165 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |