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

Unified Diff: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm

Issue 1858063002: Remove Mac NPAPI things (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more build fixes Created 4 years, 8 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: chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm b/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
index a714d484e7c5c168878c73675b1dc6b30bd31fb8..483d17bb157a508a4983a2ea143c93eefeb345f6 100644
--- a/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm
@@ -68,9 +68,6 @@ BOOL gAnimationsEnabled = true;
// Called when the extension view is shown.
- (void)onViewDidShow;
-// Called when the window moves or resizes. Notifies the extension.
-- (void)onWindowChanged;
-
@end
class ExtensionPopupContainer : public ExtensionViewMac::Container {
@@ -406,27 +403,6 @@ class ExtensionPopupNotificationBridge : public content::NotificationObserver {
[self onSizeChanged:pendingSize_];
}
-- (void)onWindowChanged {
- // The window is positioned before creating the host, to ensure the host is
- // created with the correct screen information.
- if (!host_)
- return;
-
- ExtensionViewMac* extensionView =
- static_cast<ExtensionViewMac*>(host_->view());
- // Let the extension view know, so that it can tell plugins.
- if (extensionView)
- extensionView->WindowFrameChanged();
-}
-
-- (void)windowDidResize:(NSNotification*)notification {
- [self onWindowChanged];
-}
-
-- (void)windowDidMove:(NSNotification*)notification {
- [self onWindowChanged];
-}
-
// Private (TestingAPI)
+ (void)setAnimationsEnabledForTesting:(BOOL)enabled {
gAnimationsEnabled = enabled;
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/cocoa/extensions/extension_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698