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

Unified Diff: chrome/browser/popup_blocked_animation.h

Issue 3014005: [Mac] Display a quick animation when a popup is blocked so the user notices it in the Omnibox. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: CGImage 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
Index: chrome/browser/popup_blocked_animation.h
diff --git a/chrome/browser/popup_blocked_animation.h b/chrome/browser/popup_blocked_animation.h
new file mode 100644
index 0000000000000000000000000000000000000000..7d2d59d11e05dc1c7e9a7d9663982681beccc1da
--- /dev/null
+++ b/chrome/browser/popup_blocked_animation.h
@@ -0,0 +1,25 @@
+// 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.
+
+#ifndef CHROME_BROWSER_POPUP_BLOCKED_ANIMATION_H_
+#define CHROME_BROWSER_POPUP_BLOCKED_ANIMATION_H_
+
+#include "base/basictypes.h"
+
+class TabContents;
+
+// The popup blocker lives in the Omnibox with the rest of the blocked content
+// controls. This icon is hard to notice when it appears as a result of user-
+// initiated action. This creates an animation from the center of the window
+// to the blocked popup icon in the Omnibox to draw the user's attention to it.
+class PopupBlockedAnimation {
+ public:
+ static void Show(TabContents* tab_contents);
+
+ private:
+ PopupBlockedAnimation() {}
+ DISALLOW_COPY_AND_ASSIGN(PopupBlockedAnimation);
+};
+
+#endif // CHROME_BROWSER_POPUP_BLOCKED_ANIMATION_H_

Powered by Google App Engine
This is Rietveld 408576698