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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
6 6
7 // If this gets included after the gtk headers, then a bunch of compiler 7 // If this gets included after the gtk headers, then a bunch of compiler
8 // errors happen because of a "#define Status int" in Xlib.h, which interacts 8 // errors happen because of a "#define Status int" in Xlib.h, which interacts
9 // badly with URLRequestStatus::Status. 9 // badly with URLRequestStatus::Status.
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 #if !defined(TOOLKIT_VIEWS) 396 #if !defined(TOOLKIT_VIEWS)
397 } 397 }
398 #endif 398 #endif
399 } 399 }
400 400
401 gfx::NativeView RenderWidgetHostViewGtk::GetNativeView() { 401 gfx::NativeView RenderWidgetHostViewGtk::GetNativeView() {
402 return view_.get(); 402 return view_.get();
403 } 403 }
404 404
405 void RenderWidgetHostViewGtk::MovePluginWindows( 405 void RenderWidgetHostViewGtk::MovePluginWindows(
406 const std::vector<WebPluginGeometry>& plugin_window_moves) { 406 const std::vector<webkit_glue::WebPluginGeometry>& moves) {
407 for (size_t i = 0; i < plugin_window_moves.size(); ++i) { 407 for (size_t i = 0; i < moves.size(); ++i) {
408 plugin_container_manager_.MovePluginContainer(plugin_window_moves[i]); 408 plugin_container_manager_.MovePluginContainer(moves[i]);
409 } 409 }
410 } 410 }
411 411
412 void RenderWidgetHostViewGtk::Focus() { 412 void RenderWidgetHostViewGtk::Focus() {
413 gtk_widget_grab_focus(view_.get()); 413 gtk_widget_grab_focus(view_.get());
414 } 414 }
415 415
416 void RenderWidgetHostViewGtk::Blur() { 416 void RenderWidgetHostViewGtk::Blur() {
417 // TODO(estade): We should be clearing native focus as well, but I know of no 417 // TODO(estade): We should be clearing native focus as well, but I know of no
418 // way to do that without focusing another widget. 418 // way to do that without focusing another widget.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 void RenderWidgetHostViewGtk::CreatePluginContainer( 628 void RenderWidgetHostViewGtk::CreatePluginContainer(
629 gfx::PluginWindowHandle id) { 629 gfx::PluginWindowHandle id) {
630 plugin_container_manager_.CreatePluginContainer(id); 630 plugin_container_manager_.CreatePluginContainer(id);
631 } 631 }
632 632
633 void RenderWidgetHostViewGtk::DestroyPluginContainer( 633 void RenderWidgetHostViewGtk::DestroyPluginContainer(
634 gfx::PluginWindowHandle id) { 634 gfx::PluginWindowHandle id) {
635 plugin_container_manager_.DestroyPluginContainer(id); 635 plugin_container_manager_.DestroyPluginContainer(id);
636 } 636 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698