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

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

Issue 2894743002: Make launching apps from shelf more intuitive (Closed)
Patch Set: Affected by new revision, gclient sync and re-upload. Created 3 years, 7 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/browser/ui/ash/launcher/launcher_controller_helper.cc ('k') | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »
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 bd6bd209d0047f92fc54a221b392225a3b5cbe86..9149a00ba1b16cd6569f5147b06be6211b0a772a 100644
--- a/chrome/browser/ui/browser_finder.h
+++ b/chrome/browser/ui/browser_finder.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include "chrome/browser/ui/browser.h"
+#include "ui/display/types/display_constants.h"
#include "ui/gfx/native_widget_types.h"
class Profile;
@@ -29,7 +30,11 @@ namespace chrome {
// browser->profile()->GetOriginalProfile(). This has the effect of matching
// 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);
+// If |display_id| is not equal to display::kInvalidDisplayId, only the browsers
+// in the corresponding display may be returned.
+Browser* FindTabbedBrowser(Profile* profile,
+ bool match_original_profiles,
+ int64_t display_id = display::kInvalidDisplayId);
// Finds an existing browser window of any kind.
Browser* FindAnyBrowser(Profile* profile,
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_controller_helper.cc ('k') | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698