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

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

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 years, 6 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
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 // Download utility implementation 5 // Download utility implementation
6 6
7 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 7 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
8 8
9 #include "chrome/browser/download/download_util.h" 9 #include "chrome/browser/download/download_util.h"
10 10
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 return; 595 return;
596 } 596 }
597 597
598 // Iterate through all the browser windows, and draw the progress bar. 598 // Iterate through all the browser windows, and draw the progress bar.
599 for (BrowserList::const_iterator browser_iterator = BrowserList::begin(); 599 for (BrowserList::const_iterator browser_iterator = BrowserList::begin();
600 browser_iterator != BrowserList::end(); browser_iterator++) { 600 browser_iterator != BrowserList::end(); browser_iterator++) {
601 Browser* browser = *browser_iterator; 601 Browser* browser = *browser_iterator;
602 BrowserWindow* window = browser->window(); 602 BrowserWindow* window = browser->window();
603 if (!window) 603 if (!window)
604 continue; 604 continue;
605 HWND frame = window->GetNativeHandle(); 605 HWND frame = window->GetNativeWindow();
606 if (download_count == 0 || progress == 1.0f) 606 if (download_count == 0 || progress == 1.0f)
607 taskbar->SetProgressState(frame, TBPF_NOPROGRESS); 607 taskbar->SetProgressState(frame, TBPF_NOPROGRESS);
608 else if (!progress_known) 608 else if (!progress_known)
609 taskbar->SetProgressState(frame, TBPF_INDETERMINATE); 609 taskbar->SetProgressState(frame, TBPF_INDETERMINATE);
610 else 610 else
611 taskbar->SetProgressValue(frame, static_cast<int>(progress * 100), 100); 611 taskbar->SetProgressValue(frame, static_cast<int>(progress * 100), 100);
612 } 612 }
613 #elif defined(TOOLKIT_GTK) 613 #elif defined(TOOLKIT_GTK)
614 unity::SetDownloadCount(download_count); 614 unity::SetDownloadCount(download_count);
615 unity::SetProgressFraction(progress); 615 unity::SetProgressFraction(progress);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 UMA_HISTOGRAM_ENUMERATION( 658 UMA_HISTOGRAM_ENUMERATION(
659 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY); 659 "Download.CountsChrome", type, CHROME_DOWNLOAD_COUNT_TYPES_LAST_ENTRY);
660 } 660 }
661 661
662 void RecordDownloadSource(ChromeDownloadSource source) { 662 void RecordDownloadSource(ChromeDownloadSource source) {
663 UMA_HISTOGRAM_ENUMERATION( 663 UMA_HISTOGRAM_ENUMERATION(
664 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY); 664 "Download.SourcesChrome", source, CHROME_DOWNLOAD_SOURCE_LAST_ENTRY);
665 } 665 }
666 666
667 } // namespace download_util 667 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/network_config_view.cc ('k') | chrome/browser/extensions/browser_action_test_util_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698