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

Unified Diff: webkit/glue/plugins/plugin_instance_mac.mm

Issue 5998002: Revert "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 | « webkit/glue/plugins/plugin_instance.cc ('k') | webkit/glue/plugins/plugin_lib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/plugin_instance_mac.mm
diff --git a/webkit/plugins/npapi/plugin_instance_mac.mm b/webkit/glue/plugins/plugin_instance_mac.mm
similarity index 97%
rename from webkit/plugins/npapi/plugin_instance_mac.mm
rename to webkit/glue/plugins/plugin_instance_mac.mm
index bbcef8a7dec24208730847ba42899b5ee5c20aba..9800198120f30e1ae8cb78c2107baefc2f8a669a 100644
--- a/webkit/plugins/npapi/plugin_instance_mac.mm
+++ b/webkit/glue/plugins/plugin_instance_mac.mm
@@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "build/build_config.h"
+
#import <AppKit/AppKit.h>
#include "base/logging.h"
-#include "build/build_config.h"
-#include "webkit/plugins/npapi/plugin_instance.h"
+#include "webkit/glue/plugins/plugin_instance.h"
// When C++ exceptions are disabled, the C++ library defines |try| and
// |catch| so as to allow exception-expecting C++ code to build properly when
@@ -25,9 +26,6 @@
@end
#endif
-namespace webkit {
-namespace npapi {
-
namespace {
// Returns an autoreleased NSEvent constructed from the given np_event,
@@ -78,6 +76,8 @@ NSEvent* NSEventForNPCocoaEvent(NPCocoaEvent* np_event, NSWindow* window) {
} // namespace
+namespace NPAPI {
+
NPError PluginInstance::PopUpContextMenu(NPMenu* menu) {
if (!currently_handled_event_)
return NPERR_GENERIC_ERROR;
@@ -130,5 +130,4 @@ NPError PluginInstance::PopUpContextMenu(NPMenu* menu) {
return return_val;
}
-} // namespace npapi
-} // namespace webkit
+} // namespace NPAPI
« no previous file with comments | « webkit/glue/plugins/plugin_instance.cc ('k') | webkit/glue/plugins/plugin_lib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698