OLD | NEW |
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 #include "chrome/browser/ui/browser_command_controller.h" | 5 #include "chrome/browser/ui/browser_command_controller.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/defaults.h" | 10 #include "chrome/browser/defaults.h" |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 } | 732 } |
733 | 733 |
734 // BrowserCommandController, TabStripModelObserver implementation: | 734 // BrowserCommandController, TabStripModelObserver implementation: |
735 | 735 |
736 void BrowserCommandController::TabInsertedAt(WebContents* contents, | 736 void BrowserCommandController::TabInsertedAt(WebContents* contents, |
737 int index, | 737 int index, |
738 bool foreground) { | 738 bool foreground) { |
739 AddInterstitialObservers(contents); | 739 AddInterstitialObservers(contents); |
740 } | 740 } |
741 | 741 |
742 void BrowserCommandController::TabDetachedAt(WebContents* contents, int index) { | 742 void BrowserCommandController::TabDetachedAt(WebContents* contents, |
| 743 int index, |
| 744 bool closing_all) { |
743 RemoveInterstitialObservers(contents); | 745 RemoveInterstitialObservers(contents); |
744 } | 746 } |
745 | 747 |
746 void BrowserCommandController::TabReplacedAt(TabStripModel* tab_strip_model, | 748 void BrowserCommandController::TabReplacedAt(TabStripModel* tab_strip_model, |
747 WebContents* old_contents, | 749 WebContents* old_contents, |
748 WebContents* new_contents, | 750 WebContents* new_contents, |
749 int index) { | 751 int index) { |
750 RemoveInterstitialObservers(old_contents); | 752 RemoveInterstitialObservers(old_contents); |
751 AddInterstitialObservers(new_contents); | 753 AddInterstitialObservers(new_contents); |
752 } | 754 } |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1251 | 1253 |
1252 BrowserWindow* BrowserCommandController::window() { | 1254 BrowserWindow* BrowserCommandController::window() { |
1253 return browser_->window(); | 1255 return browser_->window(); |
1254 } | 1256 } |
1255 | 1257 |
1256 Profile* BrowserCommandController::profile() { | 1258 Profile* BrowserCommandController::profile() { |
1257 return browser_->profile(); | 1259 return browser_->profile(); |
1258 } | 1260 } |
1259 | 1261 |
1260 } // namespace chrome | 1262 } // namespace chrome |
OLD | NEW |