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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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) 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/download/download_shelf_context_menu.h" 5 #include "chrome/browser/download/download_shelf_context_menu.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/download/download_crx_util.h" 9 #include "chrome/browser/download/download_crx_util.h"
10 #include "chrome/browser/download/download_item_model.h" 10 #include "chrome/browser/download/download_item_model.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Should only be getting invoked if we are using safe browsing. 210 // Should only be getting invoked if we are using safe browsing.
211 NOTREACHED(); 211 NOTREACHED();
212 #endif 212 #endif
213 break; 213 break;
214 } 214 }
215 case LEARN_MORE_INTERRUPTED: 215 case LEARN_MORE_INTERRUPTED:
216 navigator_->OpenURL( 216 navigator_->OpenURL(
217 content::OpenURLParams(GURL(chrome::kDownloadInterruptedLearnMoreURL), 217 content::OpenURLParams(GURL(chrome::kDownloadInterruptedLearnMoreURL),
218 content::Referrer(), 218 content::Referrer(),
219 NEW_FOREGROUND_TAB, 219 NEW_FOREGROUND_TAB,
220 content::PAGE_TRANSITION_LINK, 220 ui::PAGE_TRANSITION_LINK,
221 false)); 221 false));
222 break; 222 break;
223 } 223 }
224 } 224 }
225 225
226 bool DownloadShelfContextMenu::GetAcceleratorForCommandId( 226 bool DownloadShelfContextMenu::GetAcceleratorForCommandId(
227 int command_id, ui::Accelerator* accelerator) { 227 int command_id, ui::Accelerator* accelerator) {
228 return false; 228 return false;
229 } 229 }
230 230
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 #if defined(OS_WIN) 395 #if defined(OS_WIN)
396 bool DownloadShelfContextMenu::IsDownloadPdf() const { 396 bool DownloadShelfContextMenu::IsDownloadPdf() const {
397 base::FilePath path = download_item_->GetTargetFilePath(); 397 base::FilePath path = download_item_->GetTargetFilePath();
398 return path.MatchesExtension(FILE_PATH_LITERAL(".pdf")); 398 return path.MatchesExtension(FILE_PATH_LITERAL(".pdf"));
399 } 399 }
400 400
401 bool DownloadShelfContextMenu::CanOpenPdfInReader() const { 401 bool DownloadShelfContextMenu::CanOpenPdfInReader() const {
402 return (is_pdf_reader_up_to_date_ && IsDownloadPdf()); 402 return (is_pdf_reader_up_to_date_ && IsDownloadPdf());
403 } 403 }
404 #endif 404 #endif
OLDNEW
« no previous file with comments | « chrome/browser/download/download_request_limiter.cc ('k') | chrome/browser/download/download_target_determiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698