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

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

Issue 10870014: Revert 152788 - Give access to browsers by Profile/HostDesktopType. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FINDER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_FINDER_H_
6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_FINDER_H_
7 7
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Returns the first tabbed browser matching |profile|. If there is no tabbed 30 // Returns the first tabbed browser matching |profile|. If there is no tabbed
31 // browser a new one is created and returned. If a new browser is created it is 31 // browser a new one is created and returned. If a new browser is created it is
32 // not made visible. 32 // not made visible.
33 Browser* FindOrCreateTabbedBrowser(Profile* profile); 33 Browser* FindOrCreateTabbedBrowser(Profile* profile);
34 34
35 // Find an existing browser window with any type. See comment above for 35 // Find an existing browser window with any type. See comment above for
36 // additional information. 36 // additional information.
37 Browser* FindAnyBrowser(Profile* profile, bool match_original_profiles); 37 Browser* FindAnyBrowser(Profile* profile, bool match_original_profiles);
38 38
39 // Find an existing browser window with the provided profile and hosted in the 39 // Find an existing browser window with the provided profile. Searches in the
40 // given desktop. Searches in the order of last activation. Only browsers that 40 // order of last activation. Only browsers that have been active can be
41 // have been active can be returned. Returns NULL if no such browser currently 41 // returned. Returns NULL if no such browser currently exists.
42 // exists. 42 Browser* FindBrowserWithProfile(Profile* profile);
43 Browser* FindBrowserWithProfile(Profile* profile,
44 chrome::HostDesktopType type);
45 43
46 // Find an existing browser with the provided ID. Returns NULL if no such 44 // Find an existing browser with the provided ID. Returns NULL if no such
47 // browser currently exists. 45 // browser currently exists.
48 Browser* FindBrowserWithID(SessionID::id_type desired_id); 46 Browser* FindBrowserWithID(SessionID::id_type desired_id);
49 47
50 // Find the browser represented by |window| or NULL if not found. 48 // Find the browser represented by |window| or NULL if not found.
51 Browser* FindBrowserWithWindow(gfx::NativeWindow window); 49 Browser* FindBrowserWithWindow(gfx::NativeWindow window);
52 50
53 // Find the browser containing |web_contents| or NULL if none is found. 51 // Find the browser containing |web_contents| or NULL if none is found.
54 // |web_contents| must not be NULL. 52 // |web_contents| must not be NULL.
(...skipping 12 matching lines...) Expand all
67 65
68 // Returns the number of browsers with the Profile |profile|. 66 // Returns the number of browsers with the Profile |profile|.
69 size_t GetBrowserCount(Profile* profile); 67 size_t GetBrowserCount(Profile* profile);
70 68
71 // Returns the number of tabbed browsers with the Profile |profile|. 69 // Returns the number of tabbed browsers with the Profile |profile|.
72 size_t GetTabbedBrowserCount(Profile* profile); 70 size_t GetTabbedBrowserCount(Profile* profile);
73 71
74 } // namespace browser 72 } // namespace browser
75 73
76 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_ 74 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698