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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 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 | « components/exo/surface.cc ('k') | content/browser/compositor/gpu_process_transport_factory.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 #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
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
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
OLDNEW
« no previous file with comments | « components/exo/surface.cc ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698