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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 bool IsBookmarkBarVisible() const override; | 98 bool IsBookmarkBarVisible() const override; |
99 bool IsBookmarkBarAnimating() const override; | 99 bool IsBookmarkBarAnimating() const override; |
100 bool IsTabStripEditable() const override; | 100 bool IsTabStripEditable() const override; |
101 bool IsToolbarVisible() const override; | 101 bool IsToolbarVisible() const override; |
102 gfx::Rect GetRootWindowResizerRect() const override; | 102 gfx::Rect GetRootWindowResizerRect() const override; |
103 void ConfirmAddSearchProvider(TemplateURL* template_url, | 103 void ConfirmAddSearchProvider(TemplateURL* template_url, |
104 Profile* profile) override {} | 104 Profile* profile) override {} |
105 void ShowUpdateChromeDialog() override {} | 105 void ShowUpdateChromeDialog() override {} |
106 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override {} | 106 void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) override {} |
107 void ShowBookmarkAppBubble(const WebApplicationInfo& web_app_info, | 107 void ShowBookmarkAppBubble( |
108 const std::string& extension_id) override {} | 108 const WebApplicationInfo& web_app_info, |
| 109 const ShowBookmarkAppBubbleCallback& callback) override {} |
109 void ShowTranslateBubble(content::WebContents* contents, | 110 void ShowTranslateBubble(content::WebContents* contents, |
110 translate::TranslateStep step, | 111 translate::TranslateStep step, |
111 translate::TranslateErrors::Type error_type, | 112 translate::TranslateErrors::Type error_type, |
112 bool is_user_gesture) override {} | 113 bool is_user_gesture) override {} |
113 bool ShowSessionCrashedBubble() override; | 114 bool ShowSessionCrashedBubble() override; |
114 bool IsProfileResetBubbleSupported() const override; | 115 bool IsProfileResetBubbleSupported() const override; |
115 GlobalErrorBubbleViewBase* ShowProfileResetBubble( | 116 GlobalErrorBubbleViewBase* ShowProfileResetBubble( |
116 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; | 117 const base::WeakPtr<ProfileResetGlobalError>& global_error) override; |
117 #if defined(ENABLE_ONE_CLICK_SIGNIN) | 118 #if defined(ENABLE_ONE_CLICK_SIGNIN) |
118 void ShowOneClickSigninBubble( | 119 void ShowOneClickSigninBubble( |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 }; | 193 }; |
193 | 194 |
194 namespace chrome { | 195 namespace chrome { |
195 | 196 |
196 // Helper that handle the lifetime of TestBrowserWindow instances. | 197 // Helper that handle the lifetime of TestBrowserWindow instances. |
197 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); | 198 Browser* CreateBrowserWithTestWindowForParams(Browser::CreateParams* params); |
198 | 199 |
199 } // namespace chrome | 200 } // namespace chrome |
200 | 201 |
201 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ | 202 #endif // CHROME_TEST_BASE_TEST_BROWSER_WINDOW_H_ |
OLD | NEW |