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

Side by Side Diff: chrome/browser/browser.cc

Issue 2280003: Use IPC to wait for download in DownloadTest. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Fix compile error. Created 10 years, 7 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser.h" 5 #include "chrome/browser/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2579 matching lines...) Expand 10 before | Expand all | Expand 10 after
2590 2590
2591 if (source == GetSelectedTabContents()) { 2591 if (source == GetSelectedTabContents()) {
2592 PrefService* prefs = profile_->GetPrefs(); 2592 PrefService* prefs = profile_->GetPrefs();
2593 GetStatusBubble()->SetURL(url, prefs->GetString(prefs::kAcceptLanguages)); 2593 GetStatusBubble()->SetURL(url, prefs->GetString(prefs::kAcceptLanguages));
2594 } 2594 }
2595 } 2595 }
2596 2596
2597 void Browser::UpdateDownloadShelfVisibility(bool visible) { 2597 void Browser::UpdateDownloadShelfVisibility(bool visible) {
2598 if (GetStatusBubble()) 2598 if (GetStatusBubble())
2599 GetStatusBubble()->UpdateDownloadShelfVisibility(visible); 2599 GetStatusBubble()->UpdateDownloadShelfVisibility(visible);
2600
2601 NotificationService::current()->Notify(
2602 NotificationType::DOWNLOAD_SHELF_VISIBILITY_CHANGED,
2603 Source<Browser>(this),
2604 NotificationService::NoDetails());
2600 } 2605 }
2601 2606
2602 void Browser::ContentsZoomChange(bool zoom_in) { 2607 void Browser::ContentsZoomChange(bool zoom_in) {
2603 ExecuteCommand(zoom_in ? IDC_ZOOM_PLUS : IDC_ZOOM_MINUS); 2608 ExecuteCommand(zoom_in ? IDC_ZOOM_PLUS : IDC_ZOOM_MINUS);
2604 } 2609 }
2605 2610
2606 void Browser::OnContentSettingsChange(TabContents* source) { 2611 void Browser::OnContentSettingsChange(TabContents* source) {
2607 if (source == GetSelectedTabContents()) 2612 if (source == GetSelectedTabContents())
2608 window_->GetLocationBar()->UpdateContentSettingsIcons(); 2613 window_->GetLocationBar()->UpdateContentSettingsIcons();
2609 } 2614 }
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
3864 } 3869 }
3865 3870
3866 bool Browser::IsPinned(TabContents* source) { 3871 bool Browser::IsPinned(TabContents* source) {
3867 int index = tabstrip_model_.GetIndexOfTabContents(source); 3872 int index = tabstrip_model_.GetIndexOfTabContents(source);
3868 if (index == TabStripModel::kNoTab) { 3873 if (index == TabStripModel::kNoTab) {
3869 NOTREACHED() << "IsPinned called for tab not in our strip"; 3874 NOTREACHED() << "IsPinned called for tab not in our strip";
3870 return false; 3875 return false;
3871 } 3876 }
3872 return tabstrip_model_.IsTabPinned(index); 3877 return tabstrip_model_.IsTabPinned(index);
3873 } 3878 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/browser_encoding_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698