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

Side by Side Diff: ppapi/examples/stub/stub.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 12 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/examples/stub/stub.c ('k') | ppapi/examples/threading/threading.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <stdint.h>
6
5 #include "ppapi/cpp/instance.h" 7 #include "ppapi/cpp/instance.h"
6 #include "ppapi/cpp/module.h" 8 #include "ppapi/cpp/module.h"
7 9
8 // This is the simplest possible C++ Pepper plugin that does nothing. 10 // This is the simplest possible C++ Pepper plugin that does nothing.
9 11
10 // This object represents one time the page says <embed>. 12 // This object represents one time the page says <embed>.
11 class MyInstance : public pp::Instance { 13 class MyInstance : public pp::Instance {
12 public: 14 public:
13 explicit MyInstance(PP_Instance instance) : pp::Instance(instance) {} 15 explicit MyInstance(PP_Instance instance) : pp::Instance(instance) {}
14 virtual ~MyInstance() {} 16 virtual ~MyInstance() {}
(...skipping 17 matching lines...) Expand all
32 }; 34 };
33 35
34 namespace pp { 36 namespace pp {
35 37
36 // Factory function for your specialization of the Module object. 38 // Factory function for your specialization of the Module object.
37 Module* CreateModule() { 39 Module* CreateModule() {
38 return new MyModule(); 40 return new MyModule();
39 } 41 }
40 42
41 } // namespace pp 43 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/examples/stub/stub.c ('k') | ppapi/examples/threading/threading.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698