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

Unified Diff: chrome/plugin/plugin_interpose_util_mac.mm

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/plugin_interpose_util_mac.mm
diff --git a/chrome/plugin/plugin_interpose_util_mac.mm b/chrome/plugin/plugin_interpose_util_mac.mm
index 45df4497d986a35e9a1a2e2d050d0e6a187a1140..7299d4b214ce49399ca0353574e9c2de2a17df51 100644
--- a/chrome/plugin/plugin_interpose_util_mac.mm
+++ b/chrome/plugin/plugin_interpose_util_mac.mm
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,7 +9,7 @@
#include "chrome/common/plugin_messages.h"
#include "chrome/plugin/plugin_thread.h"
-#include "webkit/glue/plugins/webplugin_delegate_impl.h"
+#include "webkit/plugins/npapi/webplugin_delegate_impl.h"
namespace mac_plugin_interposing {
@@ -32,7 +32,7 @@ void SwitchToPluginProcess() {
__attribute__((visibility("default")))
OpaquePluginRef GetActiveDelegate() {
- return WebPluginDelegateImpl::GetActiveDelegate();
+ return webkit::npapi::WebPluginDelegateImpl::GetActiveDelegate();
}
__attribute__((visibility("default")))
@@ -72,13 +72,15 @@ void NotifyBrowserOfPluginHideWindow(uint32 window_id, CGRect bounds) {
__attribute__((visibility("default")))
void NotifyPluginOfSetThemeCursor(OpaquePluginRef delegate,
ThemeCursor cursor) {
- static_cast<WebPluginDelegateImpl*>(delegate)->SetThemeCursor(cursor);
+ static_cast<webkit::npapi::WebPluginDelegateImpl*>(delegate)->SetThemeCursor(
+ cursor);
}
__attribute__((visibility("default")))
void NotifyPluginOfSetCursor(OpaquePluginRef delegate,
const Cursor* cursor) {
- static_cast<WebPluginDelegateImpl*>(delegate)->SetCursor(cursor);
+ static_cast<webkit::npapi::WebPluginDelegateImpl*>(delegate)->SetCursor(
+ cursor);
}
void NotifyPluginOfSetCursorVisibility(bool visibility) {
@@ -91,7 +93,8 @@ void NotifyPluginOfSetCursorVisibility(bool visibility) {
__attribute__((visibility("default")))
bool GetPluginWindowHasFocus(const OpaquePluginRef delegate) {
- return static_cast<WebPluginDelegateImpl*>(delegate)->GetWindowHasFocus();
+ return static_cast<webkit::npapi::WebPluginDelegateImpl*>(
+ delegate)->GetWindowHasFocus();
}
} // namespace mac_plugin_interposing
@@ -237,7 +240,8 @@ static void OnPluginWindowShown(const WindowInfo& window_info, BOOL is_modal) {
- (void)chromePlugin_set {
OpaquePluginRef delegate = mac_plugin_interposing::GetActiveDelegate();
if (delegate) {
- static_cast<WebPluginDelegateImpl*>(delegate)->SetNSCursor(self);
+ static_cast<webkit::npapi::WebPluginDelegateImpl*>(delegate)->SetNSCursor(
+ self);
return;
}
[self chromePlugin_set];
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/plugin/plugin_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698