| OLD | NEW |
| 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 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 browser_plugin_instance_id(), surface_id, frame_size, scale_factor, | 407 browser_plugin_instance_id(), surface_id, frame_size, scale_factor, |
| 408 sequence)); | 408 sequence)); |
| 409 } | 409 } |
| 410 | 410 |
| 411 void BrowserPluginGuest::OnSatisfySequence( | 411 void BrowserPluginGuest::OnSatisfySequence( |
| 412 int instance_id, | 412 int instance_id, |
| 413 const cc::SurfaceSequence& sequence) { | 413 const cc::SurfaceSequence& sequence) { |
| 414 std::vector<uint32_t> sequences; | 414 std::vector<uint32_t> sequences; |
| 415 sequences.push_back(sequence.sequence); | 415 sequences.push_back(sequence.sequence); |
| 416 cc::SurfaceManager* manager = GetSurfaceManager(); | 416 cc::SurfaceManager* manager = GetSurfaceManager(); |
| 417 manager->DidSatisfySequences(sequence.client_id, &sequences); | 417 manager->DidSatisfySequences(sequence.frame_sink_id, &sequences); |
| 418 } | 418 } |
| 419 | 419 |
| 420 void BrowserPluginGuest::OnRequireSequence( | 420 void BrowserPluginGuest::OnRequireSequence( |
| 421 int instance_id, | 421 int instance_id, |
| 422 const cc::SurfaceId& id, | 422 const cc::SurfaceId& id, |
| 423 const cc::SurfaceSequence& sequence) { | 423 const cc::SurfaceSequence& sequence) { |
| 424 cc::SurfaceManager* manager = GetSurfaceManager(); | 424 cc::SurfaceManager* manager = GetSurfaceManager(); |
| 425 cc::Surface* surface = manager->GetSurfaceForId(id); | 425 cc::Surface* surface = manager->GetSurfaceForId(id); |
| 426 if (!surface) { | 426 if (!surface) { |
| 427 LOG(ERROR) << "Attempting to require callback on nonexistent surface"; | 427 LOG(ERROR) << "Attempting to require callback on nonexistent surface"; |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 range, character_bounds); | 1026 range, character_bounds); |
| 1027 } | 1027 } |
| 1028 #endif | 1028 #endif |
| 1029 | 1029 |
| 1030 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { | 1030 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { |
| 1031 if (delegate_) | 1031 if (delegate_) |
| 1032 delegate_->SetContextMenuPosition(position); | 1032 delegate_->SetContextMenuPosition(position); |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 } // namespace content | 1035 } // namespace content |
| OLD | NEW |