| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 201 |
| 202 // Returns whether the tool bar is visible or not. | 202 // Returns whether the tool bar is visible or not. |
| 203 virtual bool IsToolbarVisible() const = 0; | 203 virtual bool IsToolbarVisible() const = 0; |
| 204 | 204 |
| 205 // Returns the rect where the resize corner should be drawn by the render | 205 // Returns the rect where the resize corner should be drawn by the render |
| 206 // widget host view (on top of what the renderer returns). We return an empty | 206 // widget host view (on top of what the renderer returns). We return an empty |
| 207 // rect to identify that there shouldn't be a resize corner (in the cases | 207 // rect to identify that there shouldn't be a resize corner (in the cases |
| 208 // where we take care of it ourselves at the browser level). | 208 // where we take care of it ourselves at the browser level). |
| 209 virtual gfx::Rect GetRootWindowResizerRect() const = 0; | 209 virtual gfx::Rect GetRootWindowResizerRect() const = 0; |
| 210 | 210 |
| 211 // Shows a confirmation dialog box for adding a search engine described by | |
| 212 // |template_url|. Takes ownership of |template_url|. | |
| 213 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, | |
| 214 Profile* profile) = 0; | |
| 215 | |
| 216 // Shows the Update Recommended dialog box. | 211 // Shows the Update Recommended dialog box. |
| 217 virtual void ShowUpdateChromeDialog() = 0; | 212 virtual void ShowUpdateChromeDialog() = 0; |
| 218 | 213 |
| 219 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 214 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
| 220 // |already_bookmarked| is true if the url is already bookmarked. | 215 // |already_bookmarked| is true if the url is already bookmarked. |
| 221 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 216 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
| 222 | 217 |
| 223 // Callback type used with the ShowBookmarkAppBubble() method. The boolean | 218 // Callback type used with the ShowBookmarkAppBubble() method. The boolean |
| 224 // parameter is true when the user accepts the dialog. The WebApplicationInfo | 219 // parameter is true when the user accepts the dialog. The WebApplicationInfo |
| 225 // parameter contains the WebApplicationInfo as edited by the user. | 220 // parameter contains the WebApplicationInfo as edited by the user. |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // currently resides in. | 378 // currently resides in. |
| 384 virtual std::string GetWorkspace() const = 0; | 379 virtual std::string GetWorkspace() const = 0; |
| 385 | 380 |
| 386 protected: | 381 protected: |
| 387 friend class BrowserCloseManager; | 382 friend class BrowserCloseManager; |
| 388 friend class BrowserView; | 383 friend class BrowserView; |
| 389 virtual void DestroyBrowser() = 0; | 384 virtual void DestroyBrowser() = 0; |
| 390 }; | 385 }; |
| 391 | 386 |
| 392 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 387 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |