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

Side by Side Diff: ppapi/proxy/pdf_resource.h

Issue 630883002: replace OVERRIDE and FINAL with override and final in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef PPAPI_PROXY_PDF_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PDF_RESOURCE_H_
6 #define PPAPI_PROXY_PDF_RESOURCE_H_ 6 #define PPAPI_PROXY_PDF_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ppapi/c/pp_instance.h" 10 #include "ppapi/c/pp_instance.h"
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 PDFResource(Connection connection, PP_Instance instance); 27 PDFResource(Connection connection, PP_Instance instance);
28 virtual ~PDFResource(); 28 virtual ~PDFResource();
29 29
30 // For unittesting with a given locale. 30 // For unittesting with a given locale.
31 void SetLocaleForTest(const std::string& locale) { 31 void SetLocaleForTest(const std::string& locale) {
32 locale_ = locale; 32 locale_ = locale;
33 } 33 }
34 34
35 // Resource override. 35 // Resource override.
36 virtual thunk::PPB_PDF_API* AsPPB_PDF_API() OVERRIDE; 36 virtual thunk::PPB_PDF_API* AsPPB_PDF_API() override;
37 37
38 // PPB_PDF_API implementation. 38 // PPB_PDF_API implementation.
39 PP_Var GetLocalizedString(PP_ResourceString string_id) OVERRIDE; 39 PP_Var GetLocalizedString(PP_ResourceString string_id) override;
40 virtual void SearchString(const unsigned short* input_string, 40 virtual void SearchString(const unsigned short* input_string,
41 const unsigned short* input_term, 41 const unsigned short* input_term,
42 bool case_sensitive, 42 bool case_sensitive,
43 PP_PrivateFindResult** results, 43 PP_PrivateFindResult** results,
44 int* count) OVERRIDE; 44 int* count) override;
45 virtual void DidStartLoading() OVERRIDE; 45 virtual void DidStartLoading() override;
46 virtual void DidStopLoading() OVERRIDE; 46 virtual void DidStopLoading() override;
47 virtual void SetContentRestriction(int restrictions) OVERRIDE; 47 virtual void SetContentRestriction(int restrictions) override;
48 virtual void HistogramPDFPageCount(int count) OVERRIDE; 48 virtual void HistogramPDFPageCount(int count) override;
49 virtual void UserMetricsRecordAction(const PP_Var& action) OVERRIDE; 49 virtual void UserMetricsRecordAction(const PP_Var& action) override;
50 virtual void HasUnsupportedFeature() OVERRIDE; 50 virtual void HasUnsupportedFeature() override;
51 virtual void Print() OVERRIDE; 51 virtual void Print() override;
52 virtual void SaveAs() OVERRIDE; 52 virtual void SaveAs() override;
53 virtual PP_Bool IsFeatureEnabled(PP_PDFFeature feature) OVERRIDE; 53 virtual PP_Bool IsFeatureEnabled(PP_PDFFeature feature) override;
54 virtual PP_Resource GetResourceImageForScale(PP_ResourceImage image_id, 54 virtual PP_Resource GetResourceImageForScale(PP_ResourceImage image_id,
55 float scale) OVERRIDE; 55 float scale) override;
56 virtual PP_Resource GetResourceImage(PP_ResourceImage image_id) OVERRIDE; 56 virtual PP_Resource GetResourceImage(PP_ResourceImage image_id) override;
57 virtual PP_Bool IsOutOfProcess() OVERRIDE; 57 virtual PP_Bool IsOutOfProcess() override;
58 virtual void SetSelectedText(const char* selected_text) OVERRIDE; 58 virtual void SetSelectedText(const char* selected_text) override;
59 virtual void SetLinkUnderCursor(const char* url) OVERRIDE; 59 virtual void SetLinkUnderCursor(const char* url) override;
60 60
61 private: 61 private:
62 std::string locale_; 62 std::string locale_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(PDFResource); 64 DISALLOW_COPY_AND_ASSIGN(PDFResource);
65 }; 65 };
66 66
67 } // namespace proxy 67 } // namespace proxy
68 } // namespace ppapi 68 } // namespace ppapi
69 69
70 #endif // PPAPI_PROXY_PDF_RESOURCE_H_ 70 #endif // PPAPI_PROXY_PDF_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/output_protection_resource.h ('k') | ppapi/proxy/platform_verification_private_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698