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

Side by Side Diff: gpu/np_utils/np_browser_stub.h

Issue 481007: Deleted np_utils library. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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 | Annotate | Revision Log
« no previous file with comments | « gpu/np_utils/np_browser_mock.h ('k') | gpu/np_utils/np_browser_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef GPU_NP_UTILS_NP_BROWSER_STUB_H_
6 #define GPU_NP_UTILS_NP_BROWSER_STUB_H_
7
8 #include <set>
9 #include <string>
10
11 #include "gpu/np_utils/np_browser.h"
12
13 namespace np_utils {
14
15 // Simple implementation of subset of the NPN functions for testing.
16 class StubNPBrowser : public NPBrowser {
17 public:
18 StubNPBrowser();
19 virtual ~StubNPBrowser();
20
21 // Standard functions from NPNetscapeFuncs.
22
23 virtual NPIdentifier GetStringIdentifier(const NPUTF8* name);
24
25 virtual void* MemAlloc(size_t size);
26
27 virtual void MemFree(void* p);
28
29 virtual NPObject* CreateObject(NPP npp, const NPClass* cl);
30
31 virtual NPObject* RetainObject(NPObject* object);
32
33 virtual void ReleaseObject(NPObject* object);
34
35 virtual void ReleaseVariantValue(NPVariant* variant);
36
37 virtual bool HasProperty(NPP npp,
38 NPObject* object,
39 NPIdentifier name);
40
41 virtual bool GetProperty(NPP npp,
42 NPObject* object,
43 NPIdentifier name,
44 NPVariant* result);
45
46 virtual bool SetProperty(NPP npp,
47 NPObject* object,
48 NPIdentifier name,
49 const NPVariant* result);
50
51 virtual bool RemoveProperty(NPP npp,
52 NPObject* object,
53 NPIdentifier name);
54
55 virtual bool HasMethod(NPP npp,
56 NPObject* object,
57 NPIdentifier name);
58 virtual bool Invoke(NPP npp,
59 NPObject* object,
60 NPIdentifier name,
61 const NPVariant* args,
62 uint32_t num_args,
63 NPVariant* result);
64
65 virtual NPObject* GetWindowNPObject(NPP npp);
66
67 virtual void PluginThreadAsyncCall(NPP npp,
68 PluginThreadAsyncCallProc callback,
69 void* data);
70
71 virtual uint32 ScheduleTimer(NPP npp,
72 uint32 interval,
73 bool repeat,
74 TimerProc callback);
75
76 virtual void UnscheduleTimer(NPP npp, uint32 timer_id);
77
78 private:
79 DISALLOW_COPY_AND_ASSIGN(StubNPBrowser);
80 };
81
82 } // namespace np_utils
83
84 #endif // GPU_NP_UTILS_NP_BROWSER_STUB_H_
OLDNEW
« no previous file with comments | « gpu/np_utils/np_browser_mock.h ('k') | gpu/np_utils/np_browser_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698