summaryrefslogtreecommitdiffstats
path: root/printing/emf_win.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-16 17:28:53 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-16 17:28:53 +0000
commitd85a45c07147317e9dcbc075629a24d200863c05 (patch)
tree34afda300349040ebf24b3814f5f29011323167d /printing/emf_win.h
parenta5a3689b36825d4b24e92f90d338b8eac43a5435 (diff)
downloadchromium_src-d85a45c07147317e9dcbc075629a24d200863c05.zip
chromium_src-d85a45c07147317e9dcbc075629a24d200863c05.tar.gz
chromium_src-d85a45c07147317e9dcbc075629a24d200863c05.tar.bz2
Add OVERRIDE to printing/.
BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8468031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110317 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win.h')
-rw-r--r--printing/emf_win.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h
index 1d10687..8317627 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -10,6 +10,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "printing/metafile.h"
@@ -42,45 +43,46 @@ class PRINTING_EXPORT Emf : public Metafile {
virtual bool InitFromFile(const FilePath& metafile_path);
// Metafile methods.
- virtual bool Init();
- virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
+ virtual bool Init() OVERRIDE;
+ virtual bool InitFromData(const void* src_buffer,
+ uint32 src_buffer_size) OVERRIDE;
virtual SkDevice* StartPageForVectorCanvas(
const gfx::Size& page_size, const gfx::Rect& content_area,
- const float& scale_factor);
+ const float& scale_factor) 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);
- virtual bool FinishPage();
- virtual bool FinishDocument();
+ const float& scale_factor) OVERRIDE;
+ virtual bool FinishPage() OVERRIDE;
+ virtual bool FinishDocument() OVERRIDE;
- virtual uint32 GetDataSize() const;
- virtual bool GetData(void* buffer, uint32 size) const;
+ virtual uint32 GetDataSize() const OVERRIDE;
+ virtual bool GetData(void* buffer, uint32 size) const OVERRIDE;
// Saves the EMF data to a file as-is. It is recommended to use the .emf file
// extension but it is not enforced. This function synchronously writes to the
// file. For testing only.
- virtual bool SaveTo(const FilePath& file_path) const;
+ virtual bool SaveTo(const FilePath& file_path) const OVERRIDE;
// Should be passed to Playback to keep the exact same size.
- virtual gfx::Rect GetPageBounds(unsigned int page_number) const;
+ virtual gfx::Rect GetPageBounds(unsigned int page_number) const OVERRIDE;
- virtual unsigned int GetPageCount() const {
+ virtual unsigned int GetPageCount() const OVERRIDE {
return page_count_;
}
- virtual HDC context() const {
+ virtual HDC context() const OVERRIDE {
return hdc_;
}
- virtual bool Playback(HDC hdc, const RECT* rect) const;
- virtual bool SafePlayback(HDC hdc) const;
+ virtual bool Playback(HDC hdc, const RECT* rect) const OVERRIDE;
+ virtual bool SafePlayback(HDC hdc) const OVERRIDE;
- virtual HENHMETAFILE emf() const {
+ virtual HENHMETAFILE emf() const OVERRIDE {
return emf_;
}