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

Side by Side Diff: content/browser/renderer_host/render_widget_host_gtk.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include "content/port/browser/render_widget_host_view_port.h" 7 #include "content/port/browser/render_widget_host_view_port.h"
8 8
9 using content::RenderWidgetHostImpl;
10
9 void RenderWidgetHostImpl::OnMsgCreatePluginContainer( 11 void RenderWidgetHostImpl::OnMsgCreatePluginContainer(
10 gfx::PluginWindowHandle id) { 12 gfx::PluginWindowHandle id) {
11 // TODO(piman): view_ can only be NULL with delayed view creation in 13 // TODO(piman): view_ can only be NULL with delayed view creation in
12 // extensions (see ExtensionHost::CreateRenderViewSoon). Figure out how to 14 // extensions (see ExtensionHost::CreateRenderViewSoon). Figure out how to
13 // support plugins in that case. 15 // support plugins in that case.
14 if (view_) { 16 if (view_) {
15 view_->CreatePluginContainer(id); 17 view_->CreatePluginContainer(id);
16 } else { 18 } else {
17 deferred_plugin_handles_.push_back(id); 19 deferred_plugin_handles_.push_back(id);
18 } 20 }
19 } 21 }
20 22
21 void RenderWidgetHostImpl::OnMsgDestroyPluginContainer( 23 void RenderWidgetHostImpl::OnMsgDestroyPluginContainer(
22 gfx::PluginWindowHandle id) { 24 gfx::PluginWindowHandle id) {
23 if (view_) { 25 if (view_) {
24 view_->DestroyPluginContainer(id); 26 view_->DestroyPluginContainer(id);
25 } else { 27 } else {
26 for (int i = 0; 28 for (int i = 0;
27 i < static_cast<int>(deferred_plugin_handles_.size()); 29 i < static_cast<int>(deferred_plugin_handles_.size());
28 i++) { 30 i++) {
29 if (deferred_plugin_handles_[i] == id) { 31 if (deferred_plugin_handles_[i] == id) {
30 deferred_plugin_handles_.erase(deferred_plugin_handles_.begin() + i); 32 deferred_plugin_handles_.erase(deferred_plugin_handles_.begin() + i);
31 i--; 33 i--;
32 } 34 }
33 } 35 }
34 } 36 }
35 } 37 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698