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

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

Issue 1091093006: Update {virtual,override} to follow C++11 style in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out some webrtc files. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_truetype_font.h" 5 #include "content/browser/renderer_host/pepper/pepper_truetype_font.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/sys_byteorder.h" 13 #include "base/sys_byteorder.h"
14 #include "base/win/scoped_gdi_object.h" 14 #include "base/win/scoped_gdi_object.h"
15 #include "base/win/scoped_hdc.h" 15 #include "base/win/scoped_hdc.h"
16 #include "base/win/scoped_select_object.h" 16 #include "base/win/scoped_select_object.h"
17 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 17 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
18 #include "ppapi/c/pp_errors.h" 18 #include "ppapi/c/pp_errors.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 namespace { 22 namespace {
23 23
24 class PepperTrueTypeFontWin : public PepperTrueTypeFont { 24 class PepperTrueTypeFontWin : public PepperTrueTypeFont {
25 public: 25 public:
26 PepperTrueTypeFontWin(); 26 PepperTrueTypeFontWin();
27 27
28 // PepperTrueTypeFont implementation. 28 // PepperTrueTypeFont implementation.
29 virtual int32_t Initialize( 29 int32_t Initialize(ppapi::proxy::SerializedTrueTypeFontDesc* desc) override;
30 ppapi::proxy::SerializedTrueTypeFontDesc* desc) override; 30 int32_t GetTableTags(std::vector<uint32_t>* tags) override;
31 virtual int32_t GetTableTags(std::vector<uint32_t>* tags) override; 31 int32_t GetTable(uint32_t table_tag,
32 virtual int32_t GetTable(uint32_t table_tag, 32 int32_t offset,
33 int32_t offset, 33 int32_t max_data_length,
34 int32_t max_data_length, 34 std::string* data) override;
35 std::string* data) override;
36 35
37 private: 36 private:
38 virtual ~PepperTrueTypeFontWin(); 37 ~PepperTrueTypeFontWin() override;
39 38
40 DWORD GetFontData(HDC hdc, 39 DWORD GetFontData(HDC hdc,
41 DWORD table, 40 DWORD table,
42 DWORD offset, 41 DWORD offset,
43 LPVOID buffer, 42 LPVOID buffer,
44 DWORD length); 43 DWORD length);
45 44
46 base::win::ScopedHFONT font_; 45 base::win::ScopedHFONT font_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(PepperTrueTypeFontWin); 47 DISALLOW_COPY_AND_ASSIGN(PepperTrueTypeFontWin);
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 227 }
229 228
230 } // namespace 229 } // namespace
231 230
232 // static 231 // static
233 PepperTrueTypeFont* PepperTrueTypeFont::Create() { 232 PepperTrueTypeFont* PepperTrueTypeFont::Create() {
234 return new PepperTrueTypeFontWin(); 233 return new PepperTrueTypeFontWin();
235 } 234 }
236 235
237 } // namespace content 236 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698