Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/ui/browser.h

Issue 2093963003: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [ash-md] Uses 'Chrome - <title>' format for browser windows in overview (comment) Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |include_app_name| is false.
305 base::string16 GetWindowTitleForCurrentTab(bool include_app_name) const;
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility/spoken_feedback_browsertest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698