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

Unified Diff: chrome/browser/ui/browser.h

Issue 2581023002: Add tab status to accessibility labels (Closed)
Patch Set: Return early if invalid tab index Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 3fe7f3b6a0bf8b1bf4f20727aa43ad46157eb50b..3cd531a061bb7f85849331f879e149f8cf4da3a7 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -43,6 +43,7 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/page_navigator.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/common/page_zoom.h"
#include "extensions/features/features.h"
@@ -301,6 +302,16 @@ class Browser : public TabStripModelObserver,
// Disables additional formatting when |include_app_name| is false.
base::string16 GetWindowTitleForCurrentTab(bool include_app_name) const;
+ // Gets the window title of the tab at |index|.
+ // Disables additional formatting when |include_app_name| is false.
+ base::string16 GetWindowTitleForTab(bool include_app_name, int index) const;
+
+ // Gets the window title from the provided WebContents.
+ // Disables additional formatting when |include_app_name| is false.
+ base::string16 GetWindowTitleFromWebContents(
+ bool include_app_name,
+ content::WebContents* contents) const;
+
// Prepares a title string for display (removes embedded newlines, etc).
static void FormatTitleForDisplay(base::string16* title);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698