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

Side by Side Diff: ppapi/cpp/instance.cc

Issue 7471006: Revert 93223 - Reland http://codereview.chromium.org/7452002/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/instance.h ('k') | ppapi/cpp/module.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/cpp/instance.h" 5 #include "ppapi/cpp/instance.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/ppb_input_event.h" 8 #include "ppapi/c/ppb_input_event.h"
9 #include "ppapi/c/ppb_instance.h" 9 #include "ppapi/c/ppb_instance.h"
10 #include "ppapi/c/ppb_messaging.h" 10 #include "ppapi/c/ppb_messaging.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void Instance::DidChangeFocus(bool /*has_focus*/) { 62 void Instance::DidChangeFocus(bool /*has_focus*/) {
63 } 63 }
64 64
65 65
66 bool Instance::HandleDocumentLoad(const URLLoader& /*url_loader*/) { 66 bool Instance::HandleDocumentLoad(const URLLoader& /*url_loader*/) {
67 return false; 67 return false;
68 } 68 }
69 69
70 bool Instance::HandleInputEvent(const PP_InputEvent& /*event*/) {
71 return false;
72 }
73
70 bool Instance::HandleInputEvent(const InputEvent& /*event*/) { 74 bool Instance::HandleInputEvent(const InputEvent& /*event*/) {
71 return false; 75 return false;
72 } 76 }
73 77
74 void Instance::HandleMessage(const Var& /*message*/) { 78 void Instance::HandleMessage(const Var& /*message*/) {
75 return; 79 return;
76 } 80 }
77 81
78 bool Instance::BindGraphics(const Graphics2D& graphics) { 82 bool Instance::BindGraphics(const Graphics2D& graphics) {
79 if (!has_interface<PPB_Instance>()) 83 if (!has_interface<PPB_Instance>())
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 if (!that) 168 if (!that)
165 return NULL; 169 return NULL;
166 InterfaceNameToObjectMap::iterator found = 170 InterfaceNameToObjectMap::iterator found =
167 that->interface_name_to_objects_.find(interface_name); 171 that->interface_name_to_objects_.find(interface_name);
168 if (found == that->interface_name_to_objects_.end()) 172 if (found == that->interface_name_to_objects_.end())
169 return NULL; 173 return NULL;
170 return found->second; 174 return found->second;
171 } 175 }
172 176
173 } // namespace pp 177 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/instance.h ('k') | ppapi/cpp/module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698