Index: chrome/browser/renderer_host/render_widget_host_view_win.cc |
diff --git a/chrome/browser/renderer_host/render_widget_host_view_win.cc b/chrome/browser/renderer_host/render_widget_host_view_win.cc |
index f5afe70cfecd3e929f324f5e4e8a62d0b34600d6..6a86bc0425c2756e4215c9278bb6221d50d8ee9a 100644 |
--- a/chrome/browser/renderer_host/render_widget_host_view_win.cc |
+++ b/chrome/browser/renderer_host/render_widget_host_view_win.cc |
@@ -46,11 +46,11 @@ |
#include "views/focus/focus_util_win.h" |
// Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! |
#include "views/widget/widget_win.h" |
-#include "webkit/glue/plugins/plugin_constants_win.h" |
-#include "webkit/glue/plugins/webplugin_delegate_impl.h" |
-#include "webkit/glue/plugins/webplugin.h" |
#include "webkit/glue/webaccessibility.h" |
#include "webkit/glue/webcursor.h" |
+#include "webkit/plugins/npapi/plugin_constants_win.h" |
+#include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
+#include "webkit/plugins/npapi/webplugin.h" |
using app::ViewProp; |
using base::TimeDelta; |
@@ -59,7 +59,7 @@ using WebKit::WebInputEvent; |
using WebKit::WebInputEventFactory; |
using WebKit::WebMouseEvent; |
using WebKit::WebTextDirection; |
-using webkit_glue::WebPluginGeometry; |
+using webkit::npapi::WebPluginGeometry; |
const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; |
@@ -236,7 +236,7 @@ class NotifyPluginProcessHostTask : public Task { |
// Windows callback for OnDestroy to detach the plugin windows. |
BOOL CALLBACK DetachPluginWindowsCallback(HWND window, LPARAM param) { |
- if (WebPluginDelegateImpl::IsPluginDelegateWindow(window) && |
+ if (webkit::npapi::WebPluginDelegateImpl::IsPluginDelegateWindow(window) && |
!IsHungAppWindow(window)) { |
::ShowWindow(window, SW_HIDE); |
SetParent(window, NULL); |
@@ -490,7 +490,7 @@ HWND RenderWidgetHostViewWin::ReparentWindow(HWND window) { |
wcex.hCursor = 0; |
wcex.hbrBackground = reinterpret_cast<HBRUSH>(COLOR_WINDOW+1); |
wcex.lpszMenuName = 0; |
- wcex.lpszClassName = kWrapperNativeWindowClassName; |
+ wcex.lpszClassName = webkit::npapi::kWrapperNativeWindowClassName; |
wcex.hIconSm = 0; |
window_class = RegisterClassEx(&wcex); |
} |
@@ -654,11 +654,11 @@ void RenderWidgetHostViewWin::ImeCancelComposition() { |
} |
BOOL CALLBACK EnumChildProc(HWND hwnd, LPARAM lparam) { |
- if (!WebPluginDelegateImpl::IsPluginDelegateWindow(hwnd)) |
+ if (!webkit::npapi::WebPluginDelegateImpl::IsPluginDelegateWindow(hwnd)) |
return TRUE; |
gfx::Rect* rect = reinterpret_cast<gfx::Rect*>(lparam); |
- static UINT msg = RegisterWindowMessage(kPaintMessageName); |
+ static UINT msg = RegisterWindowMessage(webkit::npapi::kPaintMessageName); |
WPARAM wparam = rect->x() << 16 | rect->y(); |
lparam = rect->width() << 16 | rect->height(); |
@@ -1447,7 +1447,8 @@ LRESULT RenderWidgetHostViewWin::OnMouseActivate(UINT message, |
::ScreenToClient(m_hWnd, &cursor_pos); |
HWND child_window = ::RealChildWindowFromPoint(m_hWnd, cursor_pos); |
if (::IsWindow(child_window) && child_window != m_hWnd) { |
- if (win_util::GetClassName(child_window) == kWrapperNativeWindowClassName) |
+ if (win_util::GetClassName(child_window) == |
+ webkit::npapi::kWrapperNativeWindowClassName) |
child_window = ::GetWindow(child_window, GW_CHILD); |
::SetFocus(child_window); |