| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_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 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
| 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Returns whether the tool bar is visible or not. | 196 // Returns whether the tool bar is visible or not. |
| 197 virtual bool IsToolbarVisible() const = 0; | 197 virtual bool IsToolbarVisible() const = 0; |
| 198 | 198 |
| 199 // Returns the rect where the resize corner should be drawn by the render | 199 // Returns the rect where the resize corner should be drawn by the render |
| 200 // widget host view (on top of what the renderer returns). We return an empty | 200 // widget host view (on top of what the renderer returns). We return an empty |
| 201 // rect to identify that there shouldn't be a resize corner (in the cases | 201 // rect to identify that there shouldn't be a resize corner (in the cases |
| 202 // where we take care of it ourselves at the browser level). | 202 // where we take care of it ourselves at the browser level). |
| 203 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | 203 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 204 | 204 |
| 205 // Tells the frame not to render as inactive until the next activation change. | |
| 206 // This is required on Windows when dropdown selects are shown to prevent the | |
| 207 // select from deactivating the browser frame. A stub implementation is | |
| 208 // provided here since the functionality is Windows-specific. | |
| 209 virtual void DisableInactiveFrame() {} | |
| 210 | |
| 211 // Shows a confirmation dialog box for adding a search engine described by | 205 // Shows a confirmation dialog box for adding a search engine described by |
| 212 // |template_url|. Takes ownership of |template_url|. | 206 // |template_url|. Takes ownership of |template_url|. |
| 213 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, | 207 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, |
| 214 Profile* profile) = 0; | 208 Profile* profile) = 0; |
| 215 | 209 |
| 216 // Shows the Update Recommended dialog box. | 210 // Shows the Update Recommended dialog box. |
| 217 virtual void ShowUpdateChromeDialog() = 0; | 211 virtual void ShowUpdateChromeDialog() = 0; |
| 218 | 212 |
| 219 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 213 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
| 220 // |already_bookmarked| is true if the url is already bookmarked. | 214 // |already_bookmarked| is true if the url is already bookmarked. |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 411 |
| 418 // Returns the ToolbarView. | 412 // Returns the ToolbarView. |
| 419 virtual ToolbarView* GetToolbarView() const = 0; | 413 virtual ToolbarView* GetToolbarView() const = 0; |
| 420 #endif | 414 #endif |
| 421 | 415 |
| 422 protected: | 416 protected: |
| 423 virtual ~BrowserWindowTesting() {} | 417 virtual ~BrowserWindowTesting() {} |
| 424 }; | 418 }; |
| 425 | 419 |
| 426 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 420 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |