summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 03:24:00 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 03:24:00 +0000
commitff8e86e13b5df6c717d5e1410be63c141be96799 (patch)
tree3aaa531d2f7f8c719ac4b4ad03629c5ca11ebedf /chrome/browser/browser.h
parent1d42c502e39ff554c88f60f7c0fb1380be34b02f (diff)
downloadchromium_src-ff8e86e13b5df6c717d5e1410be63c141be96799.zip
chromium_src-ff8e86e13b5df6c717d5e1410be63c141be96799.tar.gz
chromium_src-ff8e86e13b5df6c717d5e1410be63c141be96799.tar.bz2
Rework the way the FindBrowserWithProfile/Type methods work.
We now always walk the last active list backwards rather than consulting the last active then walking the registered browser list forwards. This ensures that when the last active browser is a popup or app frame the last active TYPE_NORMAL browser is located when opening a new tab. http://crbug.com/17498 TEST=Open an app frame. Open a browser window (Ctrl+N) and load a page. Minimize it. Open another browser window and minimize it. Activate the app frame. Press Ctrl+T. The second browser window should be restored and have a new tab added to it rather than the first. Review URL: http://codereview.chromium.org/330013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index c3a2552..2781abf 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -48,10 +48,11 @@ class Browser : public TabStripModelDelegate,
// TODO(sky): move into a common place that is referenced by both ui_tests
// and chrome.
enum Type {
- TYPE_NORMAL = 0,
- TYPE_POPUP = 1,
- TYPE_APP = 2,
+ TYPE_NORMAL = 1,
+ TYPE_POPUP = 2,
+ TYPE_APP = 4,
TYPE_APP_POPUP = TYPE_APP | TYPE_POPUP,
+ TYPE_ANY = TYPE_NORMAL | TYPE_POPUP | TYPE_APP
};
// Possible elements of the Browser window.