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

Side by Side Diff: chrome/browser/ui/webui/filebrowse_ui.cc

Issue 6672065: Support touch icon in FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some style issues Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/webui/filebrowse_ui.h" 5 #include "chrome/browser/ui/webui/filebrowse_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 381 }
382 382
383 ClearDownloadItems(); 383 ClearDownloadItems();
384 download_manager_->RemoveObserver(this); 384 download_manager_->RemoveObserver(this);
385 } 385 }
386 386
387 WebUIMessageHandler* FilebrowseHandler::Attach(WebUI* web_ui) { 387 WebUIMessageHandler* FilebrowseHandler::Attach(WebUI* web_ui) {
388 // Create our favicon data source. 388 // Create our favicon data source.
389 profile_ = web_ui->GetProfile(); 389 profile_ = web_ui->GetProfile();
390 profile_->GetChromeURLDataManager()->AddDataSource( 390 profile_->GetChromeURLDataManager()->AddDataSource(
391 new FaviconSource(profile_)); 391 new FaviconSource(profile_, chrome::kChromeUIFaviconHost));
392 tab_contents_ = web_ui->tab_contents(); 392 tab_contents_ = web_ui->tab_contents();
393 return WebUIMessageHandler::Attach(web_ui); 393 return WebUIMessageHandler::Attach(web_ui);
394 } 394 }
395 395
396 void FilebrowseHandler::Init() { 396 void FilebrowseHandler::Init() {
397 download_manager_ = profile_->GetDownloadManager(); 397 download_manager_ = profile_->GetDownloadManager();
398 download_manager_->AddObserver(this); 398 download_manager_->AddObserver(this);
399 } 399 }
400 400
401 void FilebrowseHandler::RegisterMessages() { 401 void FilebrowseHandler::RegisterMessages() {
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 } 1071 }
1072 } 1072 }
1073 1073
1074 return NULL; 1074 return NULL;
1075 } 1075 }
1076 1076
1077 const int FileBrowseUI::kPopupWidth = 250; 1077 const int FileBrowseUI::kPopupWidth = 250;
1078 const int FileBrowseUI::kPopupHeight = 300; 1078 const int FileBrowseUI::kPopupHeight = 300;
1079 const int FileBrowseUI::kSmallPopupWidth = 250; 1079 const int FileBrowseUI::kSmallPopupWidth = 250;
1080 const int FileBrowseUI::kSmallPopupHeight = 50; 1080 const int FileBrowseUI::kSmallPopupHeight = 50;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698