diff options
author | nick <nick@chromium.org> | 2015-04-22 21:56:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-23 04:56:53 +0000 |
commit | 07903e579abf9f18d79935e1f531c7cd88503c58 (patch) | |
tree | 1fe0923604c2a7d6d2f2e4ff4eb9db2694751a8e /pdf/out_of_process_instance.h | |
parent | f1d985551fa7433d440b49a7e909a92a4ca2347f (diff) | |
download | chromium_src-07903e579abf9f18d79935e1f531c7cd88503c58.zip chromium_src-07903e579abf9f18d79935e1f531c7cd88503c58.tar.gz chromium_src-07903e579abf9f18d79935e1f531c7cd88503c58.tar.bz2 |
Update {virtual,override} to follow C++11 style in pdf.
The Google style guide states that only one of {virtual,override,final} should be used for each declaration, since override implies virtual and final implies both virtual and override.
This patch was manually generated using a regex and a text editor.
BUG=417463
Review URL: https://codereview.chromium.org/1088763004
Cr-Commit-Position: refs/heads/master@{#326456}
Diffstat (limited to 'pdf/out_of_process_instance.h')
-rw-r--r-- | pdf/out_of_process_instance.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h index 62d21c1..091fbc3 100644 --- a/pdf/out_of_process_instance.h +++ b/pdf/out_of_process_instance.h @@ -45,35 +45,32 @@ class OutOfProcessInstance : public pp::Instance, public PreviewModeClient::Client { public: explicit OutOfProcessInstance(PP_Instance instance); - virtual ~OutOfProcessInstance(); + ~OutOfProcessInstance() override; // pp::Instance implementation. - virtual bool Init(uint32_t argc, - const char* argn[], - const char* argv[]) override; - virtual void HandleMessage(const pp::Var& message) override; - virtual bool HandleInputEvent(const pp::InputEvent& event) override; - virtual void DidChangeView(const pp::View& view) override; + bool Init(uint32_t argc, const char* argn[], const char* argv[]) override; + void HandleMessage(const pp::Var& message) override; + bool HandleInputEvent(const pp::InputEvent& event) override; + void DidChangeView(const pp::View& view) override; // pp::Find_Private implementation. - virtual bool StartFind(const std::string& text, bool case_sensitive) override; - virtual void SelectFindResult(bool forward) override; - virtual void StopFind() override; + bool StartFind(const std::string& text, bool case_sensitive) override; + void SelectFindResult(bool forward) override; + void StopFind() override; // pp::PaintManager::Client implementation. - virtual void OnPaint(const std::vector<pp::Rect>& paint_rects, - std::vector<PaintManager::ReadyRect>* ready, - std::vector<pp::Rect>* pending) override; + void OnPaint(const std::vector<pp::Rect>& paint_rects, + std::vector<PaintManager::ReadyRect>* ready, + std::vector<pp::Rect>* pending) override; // pp::Printing_Dev implementation. - virtual uint32_t QuerySupportedPrintOutputFormats() override; - virtual int32_t PrintBegin( - const PP_PrintSettings_Dev& print_settings) override; - virtual pp::Resource PrintPages( + uint32_t QuerySupportedPrintOutputFormats() override; + int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) override; + pp::Resource PrintPages( const PP_PrintPageNumberRange_Dev* page_ranges, uint32_t page_range_count) override; - virtual void PrintEnd() override; - virtual bool IsPrintScalingDisabled() override; + void PrintEnd() override; + bool IsPrintScalingDisabled() override; // pp::Private implementation. virtual pp::Var GetLinkAtPosition(const pp::Point& point); @@ -81,7 +78,7 @@ class OutOfProcessInstance : public pp::Instance, PP_PdfPrintPresetOptions_Dev* options); // PPP_Selection_Dev implementation. - virtual pp::Var GetSelectedText(bool html) override; + pp::Var GetSelectedText(bool html) override; void FlushCallback(int32_t result); void DidOpen(int32_t result); |