Chromium Code Reviews| 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 virtual bool IsToolbarShowing() const = 0; | |
|
sky
2017/04/06 20:38:10
Will this be renamed to IsToolbarVisible() once yo
Hzj_jie
2017/04/06 20:42:09
I think so. TODO has been added.
| |
| 233 | |
| 226 // Shows the Update Recommended dialog box. | 234 // Shows the Update Recommended dialog box. |
| 227 virtual void ShowUpdateChromeDialog() = 0; | 235 virtual void ShowUpdateChromeDialog() = 0; |
| 228 | 236 |
| 229 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 237 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
| 230 // |already_bookmarked| is true if the url is already bookmarked. | 238 // |already_bookmarked| is true if the url is already bookmarked. |
| 231 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 239 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
| 232 | 240 |
| 233 // Callback type used with the ShowBookmarkAppBubble() method. The boolean | 241 // Callback type used with the ShowBookmarkAppBubble() method. The boolean |
| 234 // parameter is true when the user accepts the dialog. The WebApplicationInfo | 242 // parameter is true when the user accepts the dialog. The WebApplicationInfo |
| 235 // parameter contains the WebApplicationInfo as edited by the user. | 243 // 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; | 387 virtual std::string GetWorkspace() const = 0; |
| 380 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 388 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
| 381 | 389 |
| 382 protected: | 390 protected: |
| 383 friend class BrowserCloseManager; | 391 friend class BrowserCloseManager; |
| 384 friend class BrowserView; | 392 friend class BrowserView; |
| 385 virtual void DestroyBrowser() = 0; | 393 virtual void DestroyBrowser() = 0; |
| 386 }; | 394 }; |
| 387 | 395 |
| 388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 396 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |