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

Side by Side 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: Now Ash and Native desktop types are the same on ChromeOS Created 8 years, 3 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. Searches in the 39 // Find an existing browser window with the provided profile and hosted in the
40 // order of last activation. Only browsers that have been active can be 40 // given desktop. Searches in the order of last activation. Only browsers that
41 // returned. Returns NULL if no such browser currently exists. 41 // have been active can be returned. Returns NULL if no such browser currently
42 Browser* FindBrowserWithProfile(Profile* profile); 42 // exists.
43 Browser* FindBrowserWithProfile(Profile* profile,
44 chrome::HostDesktopType type);
43 45
44 // Find an existing browser with the provided ID. Returns NULL if no such 46 // Find an existing browser with the provided ID. Returns NULL if no such
45 // browser currently exists. 47 // browser currently exists.
46 Browser* FindBrowserWithID(SessionID::id_type desired_id); 48 Browser* FindBrowserWithID(SessionID::id_type desired_id);
47 49
48 // Find the browser represented by |window| or NULL if not found. 50 // Find the browser represented by |window| or NULL if not found.
49 Browser* FindBrowserWithWindow(gfx::NativeWindow window); 51 Browser* FindBrowserWithWindow(gfx::NativeWindow window);
50 52
51 // Find the browser containing |web_contents| or NULL if none is found. 53 // Find the browser containing |web_contents| or NULL if none is found.
52 // |web_contents| must not be NULL. 54 // |web_contents| must not be NULL.
(...skipping 12 matching lines...) Expand all
65 67
66 // Returns the number of browsers with the Profile |profile|. 68 // Returns the number of browsers with the Profile |profile|.
67 size_t GetBrowserCount(Profile* profile); 69 size_t GetBrowserCount(Profile* profile);
68 70
69 // Returns the number of tabbed browsers with the Profile |profile|. 71 // Returns the number of tabbed browsers with the Profile |profile|.
70 size_t GetTabbedBrowserCount(Profile* profile); 72 size_t GetTabbedBrowserCount(Profile* profile);
71 73
72 } // namespace browser 74 } // namespace browser
73 75
74 #endif // CHROME_BROWSER_UI_BROWSER_FINDER_H_ 76 #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