OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_UI_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 9 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual bool IsToolbarVisible() const = 0; | 187 virtual bool IsToolbarVisible() const = 0; |
188 | 188 |
189 // Tells the frame not to render as inactive until the next activation change. | 189 // Tells the frame not to render as inactive until the next activation change. |
190 // This is required on Windows when dropdown selects are shown to prevent the | 190 // This is required on Windows when dropdown selects are shown to prevent the |
191 // select from deactivating the browser frame. A stub implementation is | 191 // select from deactivating the browser frame. A stub implementation is |
192 // provided here since the functionality is Windows-specific. | 192 // provided here since the functionality is Windows-specific. |
193 virtual void DisableInactiveFrame() {} | 193 virtual void DisableInactiveFrame() {} |
194 | 194 |
195 // Shows a confirmation dialog box for setting the default search engine | 195 // Shows a confirmation dialog box for setting the default search engine |
196 // described by |template_url|. Takes ownership of |template_url|. | 196 // described by |template_url|. Takes ownership of |template_url|. |
197 virtual void ConfirmSetDefaultSearchProvider( | 197 virtual void ConfirmSetDefaultSearchProvider(TabContents* tab_contents, |
198 TabContents* tab_contents, | 198 TemplateURL* template_url, |
199 TemplateURL* template_url, | 199 Profile* profile) { |
200 TemplateURLService* template_url_service) { | |
201 // TODO(levin): Implement this for non-Windows platforms and make it pure. | 200 // TODO(levin): Implement this for non-Windows platforms and make it pure. |
202 // http://crbug.com/38475 | 201 // http://crbug.com/38475 |
203 } | 202 } |
204 | 203 |
205 // Shows a confirmation dialog box for adding a search engine described by | 204 // Shows a confirmation dialog box for adding a search engine described by |
206 // |template_url|. Takes ownership of |template_url|. | 205 // |template_url|. Takes ownership of |template_url|. |
207 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 206 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
208 Profile* profile) = 0; | 207 Profile* profile) = 0; |
209 | 208 |
210 // Shows or hides the bookmark bar depending on its current visibility. | 209 // Shows or hides the bookmark bar depending on its current visibility. |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 384 |
386 // Returns the ToolbarView. | 385 // Returns the ToolbarView. |
387 virtual ToolbarView* GetToolbarView() const = 0; | 386 virtual ToolbarView* GetToolbarView() const = 0; |
388 #endif | 387 #endif |
389 | 388 |
390 protected: | 389 protected: |
391 virtual ~BrowserWindowTesting() {} | 390 virtual ~BrowserWindowTesting() {} |
392 }; | 391 }; |
393 | 392 |
394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 393 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |