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. |