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

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

Issue 10855183: Give access to browsers by Profile/HostDesktopType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Isolated brwoser_finder changes, task manager changes moved to another CL. Created 8 years, 4 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 | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | chrome/browser/ui/browser_finder.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_finder.h
diff --git a/chrome/browser/ui/browser_finder.h b/chrome/browser/ui/browser_finder.h
index a55b212577bc815882fbb53ae5abce1f6bfced7e..fb944e86c5edbf60d73bcba514db63fccd3afefd 100644
--- a/chrome/browser/ui/browser_finder.h
+++ b/chrome/browser/ui/browser_finder.h
@@ -26,20 +26,41 @@ namespace browser {
// against both non-incognito and incognito profiles. If
// |match_original_profiles| is false, only an exact match may be returned.
Browser* FindTabbedBrowser(Profile* profile, bool match_original_profiles);
+// Same as above, but for a specific host desktop type.
+Browser* FindDesktopTabbedBrowser(Profile* profile,
+ chrome::HostDesktopType type,
+ bool match_original_profiles);
// Returns the first tabbed browser matching |profile|. If there is no tabbed
// browser a new one is created and returned. If a new browser is created it is
// not made visible.
Browser* FindOrCreateTabbedBrowser(Profile* profile);
+// Same as above, but for a specific host desktop type.
+Browser* FindOrCreateDesktopTabbedBrowser(Profile* profile,
+ chrome::HostDesktopType type);
// Find an existing browser window with any type. See comment above for
// additional information.
Browser* FindAnyBrowser(Profile* profile, bool match_original_profiles);
+// Same as above, but for a specific host desktop type.
+Browser* FindDesktopBrowser(Profile* profile,
+ chrome::HostDesktopType type,
+ bool match_original_profiles);
// Find an existing browser window with the provided profile. Searches in the
// order of last activation. Only browsers that have been active can be
// returned. Returns NULL if no such browser currently exists.
Browser* FindBrowserWithProfile(Profile* profile);
+// Same as above, but for a specific host desktop type.
+Browser* FindDesktopBrowserWithProfile(Profile* profile,
+ chrome::HostDesktopType type);
+
+// Find an existing browser window with the provided profile and of the provided
+// host desktop type. Searches in the order of last activation. Only browsers
+// that have been active can be returned. Returns NULL if no such browser
+// currently exists.
+Browser* FindDesktopBrowserWithProfile(Profile* profile,
+ chrome::HostDesktopType type);
robertshield 2012/08/16 21:05:16 this looks duplicated from line 55
MAD 2012/08/17 12:45:51 Oupsss... :-) Done.
// Find an existing browser with the provided ID. Returns NULL if no such
// browser currently exists.
« no previous file with comments | « no previous file | chrome/browser/ui/browser_finder.cc » ('j') | chrome/browser/ui/browser_finder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698