| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 213 |
| 214 // Returns whether the bookmark bar is visible or not. | 214 // Returns whether the bookmark bar is visible or not. |
| 215 virtual bool IsBookmarkBarVisible() const = 0; | 215 virtual bool IsBookmarkBarVisible() const = 0; |
| 216 | 216 |
| 217 // Returns whether the bookmark bar is animating or not. | 217 // Returns whether the bookmark bar is animating or not. |
| 218 virtual bool IsBookmarkBarAnimating() const = 0; | 218 virtual bool IsBookmarkBarAnimating() const = 0; |
| 219 | 219 |
| 220 // Returns whether the tab strip is editable (for extensions). | 220 // Returns whether the tab strip is editable (for extensions). |
| 221 virtual bool IsTabStripEditable() const = 0; | 221 virtual bool IsTabStripEditable() const = 0; |
| 222 | 222 |
| 223 // Returns whether the tool bar is visible or not. | 223 // Returns whether the toolbar is available or not. It's called "Visible()" |
| 224 // to follow the name convention. But it does not indicate the visibility of |
| 225 // the toolbar, i.e. toolbar may be hidden, and only visible when the mouse |
| 226 // cursor is at a certain place. |
| 227 // TODO(zijiehe): Rename Visible() functions into Available() to match their |
| 228 // original meaning. |
| 224 virtual bool IsToolbarVisible() const = 0; | 229 virtual bool IsToolbarVisible() const = 0; |
| 225 | 230 |
| 231 // Returns whether the toolbar is showing up on the screen. |
| 232 // TODO(zijiehe): Rename this function into IsToolbarVisible() once other |
| 233 // Visible() functions are renamed to Available(). |
| 234 virtual bool IsToolbarShowing() const = 0; |
| 235 |
| 226 // Shows the Update Recommended dialog box. | 236 // Shows the Update Recommended dialog box. |
| 227 virtual void ShowUpdateChromeDialog() = 0; | 237 virtual void ShowUpdateChromeDialog() = 0; |
| 228 | 238 |
| 229 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 239 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
| 230 // |already_bookmarked| is true if the url is already bookmarked. | 240 // |already_bookmarked| is true if the url is already bookmarked. |
| 231 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 241 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
| 232 | 242 |
| 233 // Callback type used with the ShowBookmarkAppBubble() method. The boolean | 243 // Callback type used with the ShowBookmarkAppBubble() method. The boolean |
| 234 // parameter is true when the user accepts the dialog. The WebApplicationInfo | 244 // parameter is true when the user accepts the dialog. The WebApplicationInfo |
| 235 // parameter contains the WebApplicationInfo as edited by the user. | 245 // parameter contains the WebApplicationInfo as edited by the user. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 virtual std::string GetWorkspace() const = 0; | 389 virtual std::string GetWorkspace() const = 0; |
| 380 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 390 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
| 381 | 391 |
| 382 protected: | 392 protected: |
| 383 friend class BrowserCloseManager; | 393 friend class BrowserCloseManager; |
| 384 friend class BrowserView; | 394 friend class BrowserView; |
| 385 virtual void DestroyBrowser() = 0; | 395 virtual void DestroyBrowser() = 0; |
| 386 }; | 396 }; |
| 387 | 397 |
| 388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 398 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |