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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 #if defined(OS_WIN) | 78 #if defined(OS_WIN) |
79 virtual void SetMetroSnapMode(bool enable) override {} | 79 virtual void SetMetroSnapMode(bool enable) override {} |
80 virtual bool IsInMetroSnapMode() const override; | 80 virtual bool IsInMetroSnapMode() const override; |
81 #endif | 81 #endif |
82 LocationBar* GetLocationBar() const override; | 82 LocationBar* GetLocationBar() const override; |
83 void SetFocusToLocationBar(bool select_all) override {} | 83 void SetFocusToLocationBar(bool select_all) override {} |
84 void UpdateReloadStopState(bool is_loading, bool force) override {} | 84 void UpdateReloadStopState(bool is_loading, bool force) override {} |
85 void UpdateToolbar(content::WebContents* contents) override {} | 85 void UpdateToolbar(content::WebContents* contents) override {} |
86 void ResetToolbarTabState(content::WebContents* contents) override {} | 86 void ResetToolbarTabState(content::WebContents* contents) override {} |
87 void FocusToolbar() override {} | 87 void FocusToolbar() override {} |
| 88 void ToolbarSizeChanged(bool is_animating) override {} |
88 void FocusAppMenu() override {} | 89 void FocusAppMenu() override {} |
89 void FocusBookmarksToolbar() override {} | 90 void FocusBookmarksToolbar() override {} |
90 void FocusInfobars() override {} | 91 void FocusInfobars() override {} |
91 void RotatePaneFocus(bool forwards) override {} | 92 void RotatePaneFocus(bool forwards) override {} |
92 void ShowAppMenu() override {} | 93 void ShowAppMenu() override {} |
93 bool PreHandleKeyboardEvent(const content::NativeWebKeyboardEvent& event, | 94 bool PreHandleKeyboardEvent(const content::NativeWebKeyboardEvent& event, |
94 bool* is_keyboard_shortcut) override; | 95 bool* is_keyboard_shortcut) override; |
95 void HandleKeyboardEvent( | 96 void HandleKeyboardEvent( |
96 const content::NativeWebKeyboardEvent& event) override {} | 97 const content::NativeWebKeyboardEvent& event) override {} |
97 | 98 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 GURL GetDestinationURL() const override; | 167 GURL GetDestinationURL() const override; |
167 WindowOpenDisposition GetWindowOpenDisposition() const override; | 168 WindowOpenDisposition GetWindowOpenDisposition() const override; |
168 ui::PageTransition GetPageTransition() const override; | 169 ui::PageTransition GetPageTransition() const override; |
169 void AcceptInput() override {} | 170 void AcceptInput() override {} |
170 void FocusLocation(bool select_all) override {} | 171 void FocusLocation(bool select_all) override {} |
171 void FocusSearch() override {} | 172 void FocusSearch() override {} |
172 void UpdateContentSettingsIcons() override {} | 173 void UpdateContentSettingsIcons() override {} |
173 void UpdateManagePasswordsIconAndBubble() override {} | 174 void UpdateManagePasswordsIconAndBubble() override {} |
174 void UpdatePageActions() override {} | 175 void UpdatePageActions() override {} |
175 void UpdateBookmarkStarVisibility() override {} | 176 void UpdateBookmarkStarVisibility() override {} |
| 177 void UpdateLocationBarVisibility(bool visible, bool animate) override {} |
176 bool ShowPageActionPopup(const extensions::Extension* extension, | 178 bool ShowPageActionPopup(const extensions::Extension* extension, |
177 bool grant_active_tab) override; | 179 bool grant_active_tab) override; |
178 void UpdateOpenPDFInReaderPrompt() override {} | 180 void UpdateOpenPDFInReaderPrompt() override {} |
179 void UpdateGeneratedCreditCardView() override {} | 181 void UpdateGeneratedCreditCardView() override {} |
180 void SaveStateToContents(content::WebContents* contents) override {} | 182 void SaveStateToContents(content::WebContents* contents) override {} |
181 void Revert() override {} | 183 void Revert() override {} |
182 const OmniboxView* GetOmniboxView() const override; | 184 const OmniboxView* GetOmniboxView() const override; |
183 OmniboxView* GetOmniboxView() override; | 185 OmniboxView* GetOmniboxView() override; |
184 LocationBarTesting* GetLocationBarForTesting() override; | 186 LocationBarTesting* GetLocationBarForTesting() override; |
185 | 187 |
186 private: | 188 private: |
187 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); | 189 DISALLOW_COPY_AND_ASSIGN(TestLocationBar); |
188 }; | 190 }; |
189 | 191 |
190 TestDownloadShelf download_shelf_; | 192 TestDownloadShelf download_shelf_; |
191 TestLocationBar location_bar_; | 193 TestLocationBar location_bar_; |
192 | 194 |
193 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); | 195 DISALLOW_COPY_AND_ASSIGN(TestBrowserWindow); |
194 }; | 196 }; |
195 | 197 |
196 namespace chrome { | 198 namespace chrome { |
197 | 199 |
198 // Helper that handle the lifetime of TestBrowserWindow instances. | 200 // Helper that handle the lifetime of TestBrowserWindow instances. |
199 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 201 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
200 | 202 |
201 } // namespace chrome | 203 } // namespace chrome |
202 | 204 |
203 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 205 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |