| OLD | NEW |
| 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 "webkit/glue/plugins/pepper_plugin_instance.h" | 5 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "gfx/rect.h" | 9 #include "gfx/rect.h" |
| 10 #include "third_party/ppapi/c/pp_instance.h" | 10 #include "third_party/ppapi/c/pp_instance.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 } // namespace | 80 } // namespace |
| 81 | 81 |
| 82 PluginInstance::PluginInstance(PluginDelegate* delegate, | 82 PluginInstance::PluginInstance(PluginDelegate* delegate, |
| 83 PluginModule* module, | 83 PluginModule* module, |
| 84 const PPP_Instance* instance_interface) | 84 const PPP_Instance* instance_interface) |
| 85 : delegate_(delegate), | 85 : delegate_(delegate), |
| 86 module_(module), | 86 module_(module), |
| 87 instance_interface_(instance_interface), | 87 instance_interface_(instance_interface), |
| 88 container_(NULL), | 88 container_(NULL), |
| 89 full_frame_(false) { | 89 full_frame_(false), |
| 90 find_identifier_(-1) { |
| 90 DCHECK(delegate); | 91 DCHECK(delegate); |
| 91 module_->InstanceCreated(this); | 92 module_->InstanceCreated(this); |
| 92 delegate_->InstanceCreated(this); | 93 delegate_->InstanceCreated(this); |
| 93 } | 94 } |
| 94 | 95 |
| 95 PluginInstance::~PluginInstance() { | 96 PluginInstance::~PluginInstance() { |
| 96 delegate_->InstanceDeleted(this); | 97 delegate_->InstanceDeleted(this); |
| 97 module_->InstanceDeleted(this); | 98 module_->InstanceDeleted(this); |
| 98 } | 99 } |
| 99 | 100 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 void PluginInstance::ViewInitiatedPaint() { | 239 void PluginInstance::ViewInitiatedPaint() { |
| 239 if (device_context_2d_) | 240 if (device_context_2d_) |
| 240 device_context_2d_->ViewInitiatedPaint(); | 241 device_context_2d_->ViewInitiatedPaint(); |
| 241 } | 242 } |
| 242 | 243 |
| 243 void PluginInstance::ViewFlushedPaint() { | 244 void PluginInstance::ViewFlushedPaint() { |
| 244 if (device_context_2d_) | 245 if (device_context_2d_) |
| 245 device_context_2d_->ViewFlushedPaint(); | 246 device_context_2d_->ViewFlushedPaint(); |
| 246 } | 247 } |
| 247 | 248 |
| 249 string16 PluginInstance::GetSelectedText(bool html) { |
| 250 // TODO: implement me |
| 251 return string16(); |
| 252 } |
| 253 |
| 254 void PluginInstance::Zoom(float factor, bool text_only) { |
| 255 // TODO: implement me |
| 256 } |
| 257 |
| 258 bool PluginInstance::SupportsFind() { |
| 259 // TODO: implement me |
| 260 return false; |
| 261 } |
| 262 |
| 263 void PluginInstance::StartFind(const string16& search_text, |
| 264 bool case_sensitive, |
| 265 int identifier) { |
| 266 find_identifier_ = identifier; |
| 267 // TODO: implement me |
| 268 } |
| 269 |
| 270 void PluginInstance::SelectFindResult(bool forward) { |
| 271 // TODO: implement me |
| 272 } |
| 273 |
| 274 void PluginInstance::StopFind() { |
| 275 find_identifier_ = -1; |
| 276 // TODO: implement me |
| 277 } |
| 278 |
| 248 } // namespace pepper | 279 } // namespace pepper |
| OLD | NEW |