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

Unified Diff: chrome/default_plugin/plugin_impl_mac.mm

Issue 2813047: Move default_plugin from webkit/ to chrome/ (Closed)
Patch Set: fix windows? Created 10 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
« no previous file with comments | « chrome/default_plugin/plugin_impl_mac.h ('k') | chrome/default_plugin/plugin_impl_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/default_plugin/plugin_impl_mac.mm
diff --git a/webkit/default_plugin/plugin_impl_mac.mm b/chrome/default_plugin/plugin_impl_mac.mm
similarity index 95%
rename from webkit/default_plugin/plugin_impl_mac.mm
rename to chrome/default_plugin/plugin_impl_mac.mm
index dd3cac8255f3913902c48d61a75112a068caf7eb..253e7861cde9062673670e08726bbecb6c4195b8 100644
--- a/webkit/default_plugin/plugin_impl_mac.mm
+++ b/chrome/default_plugin/plugin_impl_mac.mm
@@ -1,20 +1,20 @@
-// Copyright (c) 2006-2009 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.
-#include "webkit/default_plugin/plugin_impl_mac.h"
+#include "chrome/default_plugin/plugin_impl_mac.h"
#import <Cocoa/Cocoa.h>
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
+#include "chrome/default_plugin/plugin_main.h"
#include "googleurl/src/gurl.h"
#include "grit/webkit_strings.h"
#include "unicode/locid.h"
-#include "webkit/default_plugin/default_plugin_shared.h"
-#include "webkit/default_plugin/plugin_main.h"
#include "webkit/glue/webkit_glue.h"
+#include "webkit/glue/plugins/default_plugin_shared.h"
// TODO(thakis): Most methods in this class are stubbed out and need to be
// implemented.
@@ -161,7 +161,7 @@ int16 PluginInstallerImpl::OnDrawRect(CGContextRef context, CGRect dirty_rect) {
roundf(text_rect.origin.x + (text_rect.size.width - text_size.width)/2),
roundf(text_rect.origin.y + (text_rect.size.height - text_size.height)/2));
[text drawAtPoint:label_point withAttributes:attributes];
-
+
[NSGraphicsContext restoreGraphicsState];
return 1;
}
« no previous file with comments | « chrome/default_plugin/plugin_impl_mac.h ('k') | chrome/default_plugin/plugin_impl_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698