OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
294 | 294 |
295 // Returns the state of the bookmark bar. | 295 // Returns the state of the bookmark bar. |
296 BookmarkBar::State bookmark_bar_state() const { return bookmark_bar_state_; } | 296 BookmarkBar::State bookmark_bar_state() const { return bookmark_bar_state_; } |
297 | 297 |
298 // State Storage and Retrieval for UI /////////////////////////////////////// | 298 // State Storage and Retrieval for UI /////////////////////////////////////// |
299 | 299 |
300 // Gets the Favicon of the page in the selected tab. | 300 // Gets the Favicon of the page in the selected tab. |
301 gfx::Image GetCurrentPageIcon() const; | 301 gfx::Image GetCurrentPageIcon() const; |
302 | 302 |
303 // Gets the title of the window based on the selected tab's title. | 303 // Gets the title of the window based on the selected tab's title. |
304 base::string16 GetWindowTitleForCurrentTab() const; | 304 // Disables additional formatting when |accessible| is true. |
305 base::string16 GetWindowTitleForCurrentTab(bool accessible) const; | |
sky
2016/06/25 14:59:37
How about naming accessible more explicitly: inclu
varkha
2016/06/27 15:00:24
Done.
| |
305 | 306 |
306 // Prepares a title string for display (removes embedded newlines, etc). | 307 // Prepares a title string for display (removes embedded newlines, etc). |
307 static void FormatTitleForDisplay(base::string16* title); | 308 static void FormatTitleForDisplay(base::string16* title); |
308 | 309 |
309 // OnBeforeUnload handling ////////////////////////////////////////////////// | 310 // OnBeforeUnload handling ////////////////////////////////////////////////// |
310 | 311 |
311 // Gives beforeunload handlers the chance to cancel the close. Returns whether | 312 // Gives beforeunload handlers the chance to cancel the close. Returns whether |
312 // to proceed with the close. If called while the process begun by | 313 // to proceed with the close. If called while the process begun by |
313 // CallBeforeUnloadHandlers is in progress, returns false without taking | 314 // CallBeforeUnloadHandlers is in progress, returns false without taking |
314 // action. | 315 // action. |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1008 // The following factory is used for chrome update coalescing. | 1009 // The following factory is used for chrome update coalescing. |
1009 base::WeakPtrFactory<Browser> chrome_updater_factory_; | 1010 base::WeakPtrFactory<Browser> chrome_updater_factory_; |
1010 | 1011 |
1011 // The following factory is used to close the frame at a later time. | 1012 // The following factory is used to close the frame at a later time. |
1012 base::WeakPtrFactory<Browser> weak_factory_; | 1013 base::WeakPtrFactory<Browser> weak_factory_; |
1013 | 1014 |
1014 DISALLOW_COPY_AND_ASSIGN(Browser); | 1015 DISALLOW_COPY_AND_ASSIGN(Browser); |
1015 }; | 1016 }; |
1016 | 1017 |
1017 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1018 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
OLD | NEW |