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

Unified Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_win.cc (revision 212369)
+++ content/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -39,7 +39,9 @@
#include "content/browser/renderer_host/ui_events_helper.h"
#include "content/common/accessibility_messages.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/plugin_constants_win.h"
#include "content/common/view_messages.h"
+#include "content/common/webplugin_geometry.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/content_browser_client.h"
@@ -72,9 +74,6 @@
#include "ui/gfx/rect_conversions.h"
#include "ui/gfx/screen.h"
#include "webkit/common/cursors/webcursor.h"
-#include "webkit/plugins/npapi/plugin_constants_win.h"
-#include "webkit/plugins/npapi/webplugin.h"
-#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
#include "win8/util/win8_util.h"
using base::TimeDelta;
@@ -558,7 +557,7 @@
void RenderWidgetHostViewWin::MovePluginWindows(
const gfx::Vector2d& scroll_offset,
- const std::vector<webkit::npapi::WebPluginGeometry>& plugin_window_moves) {
+ const std::vector<WebPluginGeometry>& plugin_window_moves) {
MovePluginWindowsHelper(m_hWnd, plugin_window_moves);
}
@@ -2320,8 +2319,7 @@
::ScreenToClient(m_hWnd, &cursor_pos);
HWND child_window = ::RealChildWindowFromPoint(m_hWnd, cursor_pos);
if (::IsWindow(child_window) && child_window != m_hWnd) {
- if (ui::GetClassName(child_window) ==
- webkit::npapi::kWrapperNativeWindowClassName)
+ if (ui::GetClassName(child_window) == kWrapperNativeWindowClassName)
child_window = ::GetWindow(child_window, GW_CHILD);
::SetFocus(child_window);

Powered by Google App Engine
This is Rietveld 408576698