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 accessible or not. It's called "Visible()" |
msw
2017/04/04 22:46:39
Rename this function something more representative
Hzj_jie
2017/04/05 18:09:17
I used to rename it to IsToolbarAvailable(), which
| |
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. | |
224 virtual bool IsToolbarVisible() const = 0; | 227 virtual bool IsToolbarVisible() const = 0; |
225 | 228 |
229 // Returns whether the toolbar is showing up on the screen. | |
230 virtual bool IsToolbarShowing() const = 0; | |
231 | |
226 // Shows the Update Recommended dialog box. | 232 // Shows the Update Recommended dialog box. |
227 virtual void ShowUpdateChromeDialog() = 0; | 233 virtual void ShowUpdateChromeDialog() = 0; |
228 | 234 |
229 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 235 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
230 // |already_bookmarked| is true if the url is already bookmarked. | 236 // |already_bookmarked| is true if the url is already bookmarked. |
231 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; | 237 virtual void ShowBookmarkBubble(const GURL& url, bool already_bookmarked) = 0; |
232 | 238 |
233 // Callback type used with the ShowBookmarkAppBubble() method. The boolean | 239 // Callback type used with the ShowBookmarkAppBubble() method. The boolean |
234 // parameter is true when the user accepts the dialog. The WebApplicationInfo | 240 // parameter is true when the user accepts the dialog. The WebApplicationInfo |
235 // parameter contains the WebApplicationInfo as edited by the user. | 241 // 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; | 385 virtual std::string GetWorkspace() const = 0; |
380 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 386 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
381 | 387 |
382 protected: | 388 protected: |
383 friend class BrowserCloseManager; | 389 friend class BrowserCloseManager; |
384 friend class BrowserView; | 390 friend class BrowserView; |
385 virtual void DestroyBrowser() = 0; | 391 virtual void DestroyBrowser() = 0; |
386 }; | 392 }; |
387 | 393 |
388 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |