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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments, rebase Created 8 years, 3 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
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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 1428
1429 void WebContentsImpl::RequestMediaAccessPermission( 1429 void WebContentsImpl::RequestMediaAccessPermission(
1430 const content::MediaStreamRequest* request, 1430 const content::MediaStreamRequest* request,
1431 const content::MediaResponseCallback& callback) { 1431 const content::MediaResponseCallback& callback) {
1432 if (delegate_) 1432 if (delegate_)
1433 delegate_->RequestMediaAccessPermission(this, request, callback); 1433 delegate_->RequestMediaAccessPermission(this, request, callback);
1434 else 1434 else
1435 callback.Run(content::MediaStreamDevices()); 1435 callback.Run(content::MediaStreamDevices());
1436 } 1436 }
1437 1437
1438 void WebContentsImpl::AttachLayer(WebKit::WebLayer* layer) {
1439 if (delegate_)
1440 delegate_->AttachLayer(this, layer);
1441 }
1442
1443 void WebContentsImpl::RemoveLayer(WebKit::WebLayer* layer) {
1444 if (delegate_)
1445 delegate_->RemoveLayer(this, layer);
1446 }
1447
1438 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) { 1448 void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
1439 preferred_size_ = pref_size; 1449 preferred_size_ = pref_size;
1440 if (delegate_) 1450 if (delegate_)
1441 delegate_->UpdatePreferredSize(this, pref_size); 1451 delegate_->UpdatePreferredSize(this, pref_size);
1442 } 1452 }
1443 1453
1444 void WebContentsImpl::ResizeDueToAutoResize(const gfx::Size& new_size) { 1454 void WebContentsImpl::ResizeDueToAutoResize(const gfx::Size& new_size) {
1445 if (delegate_) 1455 if (delegate_)
1446 delegate_->ResizeDueToAutoResize(this, new_size); 1456 delegate_->ResizeDueToAutoResize(this, new_size);
1447 } 1457 }
(...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 old_browser_plugin_host()->embedder_render_process_host(); 3243 old_browser_plugin_host()->embedder_render_process_host();
3234 *embedder_container_id = old_browser_plugin_host()->instance_id(); 3244 *embedder_container_id = old_browser_plugin_host()->instance_id();
3235 int embedder_process_id = 3245 int embedder_process_id =
3236 embedder_render_process_host ? embedder_render_process_host->GetID() : -1; 3246 embedder_render_process_host ? embedder_render_process_host->GetID() : -1;
3237 if (embedder_process_id != -1) { 3247 if (embedder_process_id != -1) {
3238 *embedder_channel_name = 3248 *embedder_channel_name =
3239 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(), 3249 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(),
3240 embedder_process_id); 3250 embedder_process_id);
3241 } 3251 }
3242 } 3252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698