diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 23:15:38 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 23:15:38 +0000 |
commit | 5d9c88fcaef44daa1c2482b9c0fd235a1b5c242f (patch) | |
tree | cf078cc80e62b0371460e28e1100741d0e20f5f9 /chrome/browser/ui/views/frame | |
parent | 00f37dd5d0844cd01395812f427c59c731c9e922 (diff) | |
download | chromium_src-5d9c88fcaef44daa1c2482b9c0fd235a1b5c242f.zip chromium_src-5d9c88fcaef44daa1c2482b9c0fd235a1b5c242f.tar.gz chromium_src-5d9c88fcaef44daa1c2482b9c0fd235a1b5c242f.tar.bz2 |
Revert 89752 - Multi-tab: Adding new Notification when tab selection changes.
In this CL
1) TabStripModelObserver::ActiveTabChanged is only called when the active tab actually changes
(where as before it was called to also signal tab selection changes).
2) TabStripModelObserver::TabSelectionChanged is called when the tab selection changes.
3) BaseTabStrip::SelectTabAt() is replaced by BaseTabStrip::SetSelection().
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/7033048
TBR=dpapad@chromium.org
Review URL: http://codereview.chromium.org/7200044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/frame')
-rw-r--r-- | chrome/browser/ui/views/frame/browser_view.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc index 78a91cd..3f57cd6 100644 --- a/chrome/browser/ui/views/frame/browser_view.cc +++ b/chrome/browser/ui/views/frame/browser_view.cc @@ -1419,6 +1419,9 @@ void BrowserView::ActiveTabChanged(TabContentsWrapper* old_contents, TabContentsWrapper* new_contents, int index, bool user_gesture) { + if (old_contents == new_contents) + return; + ProcessTabSelected(new_contents, true); } |