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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 browser_plugin_instance_id(), surface_id, frame_size, scale_factor, | 406 browser_plugin_instance_id(), surface_id, frame_size, scale_factor, |
407 sequence)); | 407 sequence)); |
408 } | 408 } |
409 | 409 |
410 void BrowserPluginGuest::OnSatisfySequence( | 410 void BrowserPluginGuest::OnSatisfySequence( |
411 int instance_id, | 411 int instance_id, |
412 const cc::SurfaceSequence& sequence) { | 412 const cc::SurfaceSequence& sequence) { |
413 std::vector<uint32_t> sequences; | 413 std::vector<uint32_t> sequences; |
414 sequences.push_back(sequence.sequence); | 414 sequences.push_back(sequence.sequence); |
415 cc::SurfaceManager* manager = GetSurfaceManager(); | 415 cc::SurfaceManager* manager = GetSurfaceManager(); |
416 manager->DidSatisfySequences(sequence.client_id, &sequences); | 416 manager->DidSatisfySequences(sequence.frame_sink_id, &sequences); |
417 } | 417 } |
418 | 418 |
419 void BrowserPluginGuest::OnRequireSequence( | 419 void BrowserPluginGuest::OnRequireSequence( |
420 int instance_id, | 420 int instance_id, |
421 const cc::SurfaceId& id, | 421 const cc::SurfaceId& id, |
422 const cc::SurfaceSequence& sequence) { | 422 const cc::SurfaceSequence& sequence) { |
423 cc::SurfaceManager* manager = GetSurfaceManager(); | 423 cc::SurfaceManager* manager = GetSurfaceManager(); |
424 cc::Surface* surface = manager->GetSurfaceForId(id); | 424 cc::Surface* surface = manager->GetSurfaceForId(id); |
425 if (!surface) { | 425 if (!surface) { |
426 LOG(ERROR) << "Attempting to require callback on nonexistent surface"; | 426 LOG(ERROR) << "Attempting to require callback on nonexistent surface"; |
(...skipping 599 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 |