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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_print_settings_manager.cc

Issue 616603004: Replacing the OVERRIDE with override and FINAL with final in content/browser/renderer_host (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 "content/browser/renderer_host/pepper/pepper_print_settings_manager.h" 5 #include "content/browser/renderer_host/pepper/pepper_print_settings_manager.h"
6 6
7 #include "content/public/browser/browser_thread.h" 7 #include "content/public/browser/browser_thread.h"
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "content/public/common/content_client.h" 9 #include "content/public/common/content_client.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 29 matching lines...) Expand all
40 result.point.y = 40 result.point.y =
41 DeviceUnitsInPoints(print_area.origin().y(), device_units_per_inch); 41 DeviceUnitsInPoints(print_area.origin().y(), device_units_per_inch);
42 result.size = 42 result.size =
43 PrintSizeToPPPrintSize(print_area.size(), device_units_per_inch); 43 PrintSizeToPPPrintSize(print_area.size(), device_units_per_inch);
44 return result; 44 return result;
45 } 45 }
46 46
47 class PrintingContextDelegate : public printing::PrintingContext::Delegate { 47 class PrintingContextDelegate : public printing::PrintingContext::Delegate {
48 public: 48 public:
49 // PrintingContext::Delegate methods. 49 // PrintingContext::Delegate methods.
50 virtual gfx::NativeView GetParentView() OVERRIDE { return NULL; } 50 virtual gfx::NativeView GetParentView() override { return NULL; }
51 virtual std::string GetAppLocale() OVERRIDE { 51 virtual std::string GetAppLocale() override {
52 return GetContentClient()->browser()->GetApplicationLocale(); 52 return GetContentClient()->browser()->GetApplicationLocale();
53 } 53 }
54 }; 54 };
55 55
56 PepperPrintSettingsManager::Result ComputeDefaultPrintSettings() { 56 PepperPrintSettingsManager::Result ComputeDefaultPrintSettings() {
57 // This function should run on the UI thread because |PrintingContext| methods 57 // This function should run on the UI thread because |PrintingContext| methods
58 // call into platform APIs. 58 // call into platform APIs.
59 DCHECK_CURRENTLY_ON(BrowserThread::UI); 59 DCHECK_CURRENTLY_ON(BrowserThread::UI);
60 60
61 PrintingContextDelegate delegate; 61 PrintingContextDelegate delegate;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void PepperPrintSettingsManagerImpl::GetDefaultPrintSettings( 108 void PepperPrintSettingsManagerImpl::GetDefaultPrintSettings(
109 PepperPrintSettingsManager::Callback callback) { 109 PepperPrintSettingsManager::Callback callback) {
110 BrowserThread::PostTaskAndReplyWithResult( 110 BrowserThread::PostTaskAndReplyWithResult(
111 BrowserThread::UI, 111 BrowserThread::UI,
112 FROM_HERE, 112 FROM_HERE,
113 base::Bind(ComputeDefaultPrintSettings), 113 base::Bind(ComputeDefaultPrintSettings),
114 callback); 114 callback);
115 } 115 }
116 116
117 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698