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

Side by Side Diff: ppapi/host/resource_host.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HOST_RESOURCE_HOST_H_ 5 #ifndef PPAPI_HOST_RESOURCE_HOST_H_
6 #define PPAPI_HOST_RESOURCE_HOST_H_ 6 #define PPAPI_HOST_RESOURCE_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 #include "ppapi/host/ppapi_host_export.h" 10 #include "ppapi/host/ppapi_host_export.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // 45 //
46 // If you don't have a particular reply message, you can just ignore 46 // If you don't have a particular reply message, you can just ignore
47 // the reply in the message context. However, if you have a reply more than 47 // the reply in the message context. However, if you have a reply more than
48 // just the int32_t result code, set the reply to be the message of your 48 // just the int32_t result code, set the reply to be the message of your
49 // choosing. 49 // choosing.
50 // 50 //
51 // The default implementation just returns PP_ERROR_NOTSUPPORTED. 51 // The default implementation just returns PP_ERROR_NOTSUPPORTED.
52 virtual int32_t OnResourceMessageReceived(const IPC::Message& msg, 52 virtual int32_t OnResourceMessageReceived(const IPC::Message& msg,
53 HostMessageContext* context); 53 HostMessageContext* context);
54 54
55 virtual bool IsGraphics2DHost() const { return false; }
56
55 private: 57 private:
56 // The host that owns this object. 58 // The host that owns this object.
57 PpapiHost* host_; 59 PpapiHost* host_;
58 60
59 PP_Instance pp_instance_; 61 PP_Instance pp_instance_;
60 PP_Resource pp_resource_; 62 PP_Resource pp_resource_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(ResourceHost); 64 DISALLOW_COPY_AND_ASSIGN(ResourceHost);
63 }; 65 };
64 66
65 } // namespace host 67 } // namespace host
66 } // namespace ppapi 68 } // namespace ppapi
67 69
68 #endif // PPAPI_HOST_RESOURCE_HOST_H_ 70 #endif // PPAPI_HOST_RESOURCE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698