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

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

Issue 630883002: replace OVERRIDE and FINAL with override and final in ppapi/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.h ('k') | ppapi/proxy/ppb_message_loop_proxy.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) 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_PROXY_PPB_INSTANCE_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 27 matching lines...) Expand all
38 public PPB_Instance_Shared { 38 public PPB_Instance_Shared {
39 public: 39 public:
40 PPB_Instance_Proxy(Dispatcher* dispatcher); 40 PPB_Instance_Proxy(Dispatcher* dispatcher);
41 virtual ~PPB_Instance_Proxy(); 41 virtual ~PPB_Instance_Proxy();
42 42
43 // InterfaceProxy implementation. 43 // InterfaceProxy implementation.
44 virtual bool OnMessageReceived(const IPC::Message& msg); 44 virtual bool OnMessageReceived(const IPC::Message& msg);
45 45
46 // PPB_Instance_API implementation. 46 // PPB_Instance_API implementation.
47 virtual PP_Bool BindGraphics(PP_Instance instance, 47 virtual PP_Bool BindGraphics(PP_Instance instance,
48 PP_Resource device) OVERRIDE; 48 PP_Resource device) override;
49 virtual PP_Bool IsFullFrame(PP_Instance instance) OVERRIDE; 49 virtual PP_Bool IsFullFrame(PP_Instance instance) override;
50 virtual const ViewData* GetViewData(PP_Instance instance) OVERRIDE; 50 virtual const ViewData* GetViewData(PP_Instance instance) override;
51 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; 51 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) override;
52 virtual PP_Var GetWindowObject(PP_Instance instance) OVERRIDE; 52 virtual PP_Var GetWindowObject(PP_Instance instance) override;
53 virtual PP_Var GetOwnerElementObject(PP_Instance instance) OVERRIDE; 53 virtual PP_Var GetOwnerElementObject(PP_Instance instance) override;
54 virtual PP_Var ExecuteScript(PP_Instance instance, 54 virtual PP_Var ExecuteScript(PP_Instance instance,
55 PP_Var script, 55 PP_Var script,
56 PP_Var* exception) OVERRIDE; 56 PP_Var* exception) override;
57 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance) 57 virtual uint32_t GetAudioHardwareOutputSampleRate(PP_Instance instance)
58 OVERRIDE; 58 override;
59 virtual uint32_t GetAudioHardwareOutputBufferSize(PP_Instance instance) 59 virtual uint32_t GetAudioHardwareOutputBufferSize(PP_Instance instance)
60 OVERRIDE; 60 override;
61 virtual PP_Var GetDefaultCharSet(PP_Instance instance) OVERRIDE; 61 virtual PP_Var GetDefaultCharSet(PP_Instance instance) override;
62 virtual void SetPluginToHandleFindRequests(PP_Instance instance) OVERRIDE; 62 virtual void SetPluginToHandleFindRequests(PP_Instance instance) override;
63 virtual void NumberOfFindResultsChanged(PP_Instance instance, 63 virtual void NumberOfFindResultsChanged(PP_Instance instance,
64 int32_t total, 64 int32_t total,
65 PP_Bool final_result) OVERRIDE; 65 PP_Bool final_result) override;
66 virtual void SelectedFindResultChanged(PP_Instance instance, 66 virtual void SelectedFindResultChanged(PP_Instance instance,
67 int32_t index) OVERRIDE; 67 int32_t index) override;
68 virtual void SetTickmarks(PP_Instance instance, 68 virtual void SetTickmarks(PP_Instance instance,
69 const PP_Rect* tickmarks, 69 const PP_Rect* tickmarks,
70 uint32_t count) OVERRIDE; 70 uint32_t count) override;
71 virtual PP_Bool IsFullscreen(PP_Instance instance) OVERRIDE; 71 virtual PP_Bool IsFullscreen(PP_Instance instance) override;
72 virtual PP_Bool SetFullscreen(PP_Instance instance, 72 virtual PP_Bool SetFullscreen(PP_Instance instance,
73 PP_Bool fullscreen) OVERRIDE; 73 PP_Bool fullscreen) override;
74 virtual PP_Bool GetScreenSize(PP_Instance instance, 74 virtual PP_Bool GetScreenSize(PP_Instance instance,
75 PP_Size* size) OVERRIDE; 75 PP_Size* size) override;
76 virtual Resource* GetSingletonResource(PP_Instance instance, 76 virtual Resource* GetSingletonResource(PP_Instance instance,
77 SingletonResourceID id) OVERRIDE; 77 SingletonResourceID id) override;
78 virtual int32_t RequestInputEvents(PP_Instance instance, 78 virtual int32_t RequestInputEvents(PP_Instance instance,
79 uint32_t event_classes) OVERRIDE; 79 uint32_t event_classes) override;
80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance, 80 virtual int32_t RequestFilteringInputEvents(PP_Instance instance,
81 uint32_t event_classes) OVERRIDE; 81 uint32_t event_classes) override;
82 virtual void StartTrackingLatency(PP_Instance instance) OVERRIDE; 82 virtual void StartTrackingLatency(PP_Instance instance) override;
83 virtual void ClearInputEventRequest(PP_Instance instance, 83 virtual void ClearInputEventRequest(PP_Instance instance,
84 uint32_t event_classes) OVERRIDE; 84 uint32_t event_classes) override;
85 virtual void ZoomChanged(PP_Instance instance, double factor) OVERRIDE; 85 virtual void ZoomChanged(PP_Instance instance, double factor) override;
86 virtual void ZoomLimitsChanged(PP_Instance instance, 86 virtual void ZoomLimitsChanged(PP_Instance instance,
87 double minimum_factor, 87 double minimum_factor,
88 double maximium_factor) OVERRIDE; 88 double maximium_factor) override;
89 virtual void PostMessage(PP_Instance instance, PP_Var message) OVERRIDE; 89 virtual void PostMessage(PP_Instance instance, PP_Var message) override;
90 virtual int32_t RegisterMessageHandler(PP_Instance instance, 90 virtual int32_t RegisterMessageHandler(PP_Instance instance,
91 void* user_data, 91 void* user_data,
92 const PPP_MessageHandler_0_2* handler, 92 const PPP_MessageHandler_0_2* handler,
93 PP_Resource message_loop) OVERRIDE; 93 PP_Resource message_loop) override;
94 virtual int32_t RegisterMessageHandler_1_1_Deprecated( 94 virtual int32_t RegisterMessageHandler_1_1_Deprecated(
95 PP_Instance instance, 95 PP_Instance instance,
96 void* user_data, 96 void* user_data,
97 const PPP_MessageHandler_0_1_Deprecated* handler, 97 const PPP_MessageHandler_0_1_Deprecated* handler,
98 PP_Resource message_loop) OVERRIDE; 98 PP_Resource message_loop) override;
99 virtual void UnregisterMessageHandler(PP_Instance instance) OVERRIDE; 99 virtual void UnregisterMessageHandler(PP_Instance instance) override;
100 virtual PP_Bool SetCursor(PP_Instance instance, 100 virtual PP_Bool SetCursor(PP_Instance instance,
101 PP_MouseCursor_Type type, 101 PP_MouseCursor_Type type,
102 PP_Resource image, 102 PP_Resource image,
103 const PP_Point* hot_spot) OVERRIDE; 103 const PP_Point* hot_spot) override;
104 virtual int32_t LockMouse(PP_Instance instance, 104 virtual int32_t LockMouse(PP_Instance instance,
105 scoped_refptr<TrackedCallback> callback) OVERRIDE; 105 scoped_refptr<TrackedCallback> callback) override;
106 virtual void UnlockMouse(PP_Instance instance) OVERRIDE; 106 virtual void UnlockMouse(PP_Instance instance) override;
107 virtual void SetTextInputType(PP_Instance instance, 107 virtual void SetTextInputType(PP_Instance instance,
108 PP_TextInput_Type type) OVERRIDE; 108 PP_TextInput_Type type) override;
109 virtual void UpdateCaretPosition(PP_Instance instance, 109 virtual void UpdateCaretPosition(PP_Instance instance,
110 const PP_Rect& caret, 110 const PP_Rect& caret,
111 const PP_Rect& bounding_box) OVERRIDE; 111 const PP_Rect& bounding_box) override;
112 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; 112 virtual void CancelCompositionText(PP_Instance instance) override;
113 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; 113 virtual void SelectionChanged(PP_Instance instance) override;
114 virtual void UpdateSurroundingText(PP_Instance instance, 114 virtual void UpdateSurroundingText(PP_Instance instance,
115 const char* text, 115 const char* text,
116 uint32_t caret, 116 uint32_t caret,
117 uint32_t anchor) OVERRIDE; 117 uint32_t anchor) override;
118 virtual PP_Var GetDocumentURL(PP_Instance instance, 118 virtual PP_Var GetDocumentURL(PP_Instance instance,
119 PP_URLComponents_Dev* components) OVERRIDE; 119 PP_URLComponents_Dev* components) override;
120 #if !defined(OS_NACL) 120 #if !defined(OS_NACL)
121 virtual PP_Var ResolveRelativeToDocument( 121 virtual PP_Var ResolveRelativeToDocument(
122 PP_Instance instance, 122 PP_Instance instance,
123 PP_Var relative, 123 PP_Var relative,
124 PP_URLComponents_Dev* components) OVERRIDE; 124 PP_URLComponents_Dev* components) override;
125 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; 125 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) override;
126 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, 126 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance,
127 PP_Instance target) OVERRIDE; 127 PP_Instance target) override;
128 virtual PP_Var GetPluginInstanceURL( 128 virtual PP_Var GetPluginInstanceURL(
129 PP_Instance instance, 129 PP_Instance instance,
130 PP_URLComponents_Dev* components) OVERRIDE; 130 PP_URLComponents_Dev* components) override;
131 virtual PP_Var GetPluginReferrerURL( 131 virtual PP_Var GetPluginReferrerURL(
132 PP_Instance instance, 132 PP_Instance instance,
133 PP_URLComponents_Dev* components) OVERRIDE; 133 PP_URLComponents_Dev* components) override;
134 virtual void PromiseResolved(PP_Instance instance, 134 virtual void PromiseResolved(PP_Instance instance,
135 uint32 promise_id) OVERRIDE; 135 uint32 promise_id) override;
136 virtual void PromiseResolvedWithSession(PP_Instance instance, 136 virtual void PromiseResolvedWithSession(PP_Instance instance,
137 uint32 promise_id, 137 uint32 promise_id,
138 PP_Var web_session_id_var) OVERRIDE; 138 PP_Var web_session_id_var) override;
139 virtual void PromiseResolvedWithKeyIds(PP_Instance instance, 139 virtual void PromiseResolvedWithKeyIds(PP_Instance instance,
140 uint32 promise_id, 140 uint32 promise_id,
141 PP_Var key_ids_var) OVERRIDE; 141 PP_Var key_ids_var) override;
142 virtual void PromiseRejected(PP_Instance instance, 142 virtual void PromiseRejected(PP_Instance instance,
143 uint32 promise_id, 143 uint32 promise_id,
144 PP_CdmExceptionCode exception_code, 144 PP_CdmExceptionCode exception_code,
145 uint32 system_code, 145 uint32 system_code,
146 PP_Var error_description_var) OVERRIDE; 146 PP_Var error_description_var) override;
147 virtual void SessionMessage(PP_Instance instance, 147 virtual void SessionMessage(PP_Instance instance,
148 PP_Var web_session_id_var, 148 PP_Var web_session_id_var,
149 PP_Var message_var, 149 PP_Var message_var,
150 PP_Var destination_url_var) OVERRIDE; 150 PP_Var destination_url_var) override;
151 virtual void SessionKeysChange(PP_Instance instance, 151 virtual void SessionKeysChange(PP_Instance instance,
152 PP_Var web_session_id_var, 152 PP_Var web_session_id_var,
153 PP_Bool has_additional_usable_key) OVERRIDE; 153 PP_Bool has_additional_usable_key) override;
154 virtual void SessionExpirationChange(PP_Instance instance, 154 virtual void SessionExpirationChange(PP_Instance instance,
155 PP_Var web_session_id_var, 155 PP_Var web_session_id_var,
156 PP_Time new_expiry_time) OVERRIDE; 156 PP_Time new_expiry_time) override;
157 virtual void SessionReady(PP_Instance instance, 157 virtual void SessionReady(PP_Instance instance,
158 PP_Var web_session_id_var) OVERRIDE; 158 PP_Var web_session_id_var) override;
159 virtual void SessionClosed(PP_Instance instance, 159 virtual void SessionClosed(PP_Instance instance,
160 PP_Var web_session_id_var) OVERRIDE; 160 PP_Var web_session_id_var) override;
161 virtual void SessionError(PP_Instance instance, 161 virtual void SessionError(PP_Instance instance,
162 PP_Var web_session_id_var, 162 PP_Var web_session_id_var,
163 PP_CdmExceptionCode exception_code, 163 PP_CdmExceptionCode exception_code,
164 uint32 system_code, 164 uint32 system_code,
165 PP_Var error_description_var) OVERRIDE; 165 PP_Var error_description_var) override;
166 virtual void DeliverBlock(PP_Instance instance, 166 virtual void DeliverBlock(PP_Instance instance,
167 PP_Resource decrypted_block, 167 PP_Resource decrypted_block,
168 const PP_DecryptedBlockInfo* block_info) OVERRIDE; 168 const PP_DecryptedBlockInfo* block_info) override;
169 virtual void DecoderInitializeDone(PP_Instance instance, 169 virtual void DecoderInitializeDone(PP_Instance instance,
170 PP_DecryptorStreamType decoder_type, 170 PP_DecryptorStreamType decoder_type,
171 uint32_t request_id, 171 uint32_t request_id,
172 PP_Bool success) OVERRIDE; 172 PP_Bool success) override;
173 virtual void DecoderDeinitializeDone(PP_Instance instance, 173 virtual void DecoderDeinitializeDone(PP_Instance instance,
174 PP_DecryptorStreamType decoder_type, 174 PP_DecryptorStreamType decoder_type,
175 uint32_t request_id) OVERRIDE; 175 uint32_t request_id) override;
176 virtual void DecoderResetDone(PP_Instance instance, 176 virtual void DecoderResetDone(PP_Instance instance,
177 PP_DecryptorStreamType decoder_type, 177 PP_DecryptorStreamType decoder_type,
178 uint32_t request_id) OVERRIDE; 178 uint32_t request_id) override;
179 virtual void DeliverFrame(PP_Instance instance, 179 virtual void DeliverFrame(PP_Instance instance,
180 PP_Resource decrypted_frame, 180 PP_Resource decrypted_frame,
181 const PP_DecryptedFrameInfo* frame_info) OVERRIDE; 181 const PP_DecryptedFrameInfo* frame_info) override;
182 virtual void DeliverSamples( 182 virtual void DeliverSamples(
183 PP_Instance instance, 183 PP_Instance instance,
184 PP_Resource audio_frames, 184 PP_Resource audio_frames,
185 const PP_DecryptedSampleInfo* sample_info) OVERRIDE; 185 const PP_DecryptedSampleInfo* sample_info) override;
186 #endif // !defined(OS_NACL) 186 #endif // !defined(OS_NACL)
187 187
188 static const ApiID kApiID = API_ID_PPB_INSTANCE; 188 static const ApiID kApiID = API_ID_PPB_INSTANCE;
189 189
190 private: 190 private:
191 // Plugin -> Host message handlers. 191 // Plugin -> Host message handlers.
192 void OnHostMsgGetWindowObject(PP_Instance instance, 192 void OnHostMsgGetWindowObject(PP_Instance instance,
193 SerializedVarReturnValue result); 193 SerializedVarReturnValue result);
194 void OnHostMsgGetOwnerElementObject(PP_Instance instance, 194 void OnHostMsgGetOwnerElementObject(PP_Instance instance,
195 SerializedVarReturnValue result); 195 SerializedVarReturnValue result);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Other helpers. 333 // Other helpers.
334 void CancelAnyPendingRequestSurroundingText(PP_Instance instance); 334 void CancelAnyPendingRequestSurroundingText(PP_Instance instance);
335 335
336 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; 336 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_;
337 }; 337 };
338 338
339 } // namespace proxy 339 } // namespace proxy
340 } // namespace ppapi 340 } // namespace ppapi
341 341
342 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ 342 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.h ('k') | ppapi/proxy/ppb_message_loop_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698