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

Unified Diff: printing/emf_win.h

Issue 1101023002: Update {virtual,override} to follow C++11 style in printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/emf_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/emf_win.h
diff --git a/printing/emf_win.h b/printing/emf_win.h
index 1da9364c0a12566b3db244fefbc0796df0c07351..e3019884c388449274f895b0154d6e9249bd4ee9 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -41,7 +41,7 @@ class PRINTING_EXPORT Emf : public Metafile {
// Generates a virtual HDC that will record every GDI commands and compile
// it in a EMF data stream.
Emf();
- virtual ~Emf();
+ ~Emf() override;
// Closes metafile.
void Close();
@@ -54,34 +54,34 @@ class PRINTING_EXPORT Emf : public Metafile {
bool InitFromFile(const base::FilePath& metafile_path);
// Metafile methods.
- virtual bool Init() override;
- virtual bool InitFromData(const void* src_buffer,
- uint32 src_buffer_size) override;
+ bool Init() override;
+ bool InitFromData(const void* src_buffer,
+ uint32 src_buffer_size) override;
// Inserts a custom GDICOMMENT records indicating StartPage/EndPage calls
// (since StartPage and EndPage do not work in a metafile DC). Only valid
// when hdc_ is non-NULL. |page_size|, |content_area|, and |scale_factor| are
// ignored.
- virtual bool StartPage(const gfx::Size& page_size,
- const gfx::Rect& content_area,
- const float& scale_factor) override;
- virtual bool FinishPage() override;
- virtual bool FinishDocument() override;
+ bool StartPage(const gfx::Size& page_size,
+ const gfx::Rect& content_area,
+ const float& scale_factor) override;
+ bool FinishPage() override;
+ bool FinishDocument() override;
- virtual uint32 GetDataSize() const override;
- virtual bool GetData(void* buffer, uint32 size) const override;
+ uint32 GetDataSize() const override;
+ bool GetData(void* buffer, uint32 size) const override;
// Should be passed to Playback to keep the exact same size.
- virtual gfx::Rect GetPageBounds(unsigned int page_number) const override;
+ gfx::Rect GetPageBounds(unsigned int page_number) const override;
- virtual unsigned int GetPageCount() const override { return 1; }
+ unsigned int GetPageCount() const override { return 1; }
- virtual HDC context() const override {
+ HDC context() const override {
return hdc_;
}
- virtual bool Playback(HDC hdc, const RECT* rect) const override;
- virtual bool SafePlayback(HDC hdc) const override;
+ bool Playback(HDC hdc, const RECT* rect) const override;
+ bool SafePlayback(HDC hdc) const override;
HENHMETAFILE emf() const { return emf_; }
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/emf_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698