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

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

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. 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
« no previous file with comments | « ppapi/proxy/tcp_socket_resource.h ('k') | ppapi/proxy/truetype_font_singleton_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TRUETYPE_FONT_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_
6 #define PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ 6 #define PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 struct SerializedTrueTypeFontDesc; 24 struct SerializedTrueTypeFontDesc;
25 25
26 class PPAPI_PROXY_EXPORT TrueTypeFontResource 26 class PPAPI_PROXY_EXPORT TrueTypeFontResource
27 : public PluginResource, 27 : public PluginResource,
28 public thunk::PPB_TrueTypeFont_API { 28 public thunk::PPB_TrueTypeFont_API {
29 public: 29 public:
30 TrueTypeFontResource(Connection connection, 30 TrueTypeFontResource(Connection connection,
31 PP_Instance instance, 31 PP_Instance instance,
32 const PP_TrueTypeFontDesc_Dev& desc); 32 const PP_TrueTypeFontDesc_Dev& desc);
33 virtual ~TrueTypeFontResource(); 33 ~TrueTypeFontResource() override;
34 34
35 // Resource implementation. 35 // Resource implementation.
36 virtual thunk::PPB_TrueTypeFont_API* AsPPB_TrueTypeFont_API() override; 36 thunk::PPB_TrueTypeFont_API* AsPPB_TrueTypeFont_API() override;
37 37
38 // PPB_TrueTypeFont_API implementation. 38 // PPB_TrueTypeFont_API implementation.
39 virtual int32_t Describe( 39 int32_t Describe(
40 PP_TrueTypeFontDesc_Dev* desc, 40 PP_TrueTypeFontDesc_Dev* desc,
41 scoped_refptr<TrackedCallback> callback) override; 41 scoped_refptr<TrackedCallback> callback) override;
42 virtual int32_t GetTableTags( 42 int32_t GetTableTags(
43 const PP_ArrayOutput& output, 43 const PP_ArrayOutput& output,
44 scoped_refptr<TrackedCallback> callback) override; 44 scoped_refptr<TrackedCallback> callback) override;
45 virtual int32_t GetTable( 45 int32_t GetTable(
46 uint32_t table, 46 uint32_t table,
47 int32_t offset, 47 int32_t offset,
48 int32_t max_data_length, 48 int32_t max_data_length,
49 const PP_ArrayOutput& output, 49 const PP_ArrayOutput& output,
50 scoped_refptr<TrackedCallback> callback) override; 50 scoped_refptr<TrackedCallback> callback) override;
51 51
52 // PluginResource implementation. 52 // PluginResource implementation.
53 virtual void OnReplyReceived(const ResourceMessageReplyParams& params, 53 void OnReplyReceived(const ResourceMessageReplyParams& params,
54 const IPC::Message& msg) override; 54 const IPC::Message& msg) override;
55 55
56 private: 56 private:
57 void OnPluginMsgCreateComplete( 57 void OnPluginMsgCreateComplete(
58 const ResourceMessageReplyParams& params, 58 const ResourceMessageReplyParams& params,
59 const ppapi::proxy::SerializedTrueTypeFontDesc& desc, 59 const ppapi::proxy::SerializedTrueTypeFontDesc& desc,
60 int32_t result); 60 int32_t result);
61 void OnPluginMsgGetTableTagsComplete( 61 void OnPluginMsgGetTableTagsComplete(
62 scoped_refptr<TrackedCallback> callback, 62 scoped_refptr<TrackedCallback> callback,
63 PP_ArrayOutput array_output, 63 PP_ArrayOutput array_output,
64 const ResourceMessageReplyParams& params, 64 const ResourceMessageReplyParams& params,
(...skipping 12 matching lines...) Expand all
77 PP_TrueTypeFontDesc_Dev* describe_desc_; 77 PP_TrueTypeFontDesc_Dev* describe_desc_;
78 scoped_refptr<TrackedCallback> describe_callback_; 78 scoped_refptr<TrackedCallback> describe_callback_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(TrueTypeFontResource); 80 DISALLOW_COPY_AND_ASSIGN(TrueTypeFontResource);
81 }; 81 };
82 82
83 } // namespace proxy 83 } // namespace proxy
84 } // namespace ppapi 84 } // namespace ppapi
85 85
86 #endif // PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_ 86 #endif // PPAPI_PROXY_TRUETYPE_FONT_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/tcp_socket_resource.h ('k') | ppapi/proxy/truetype_font_singleton_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698