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

Unified Diff: chrome/browser/ui/views/theme_install_bubble_view.h

Issue 8404007: Delete code for and references to mini-gallery and theme install bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: > Created 9 years, 2 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/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/theme_install_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/theme_install_bubble_view.h
diff --git a/chrome/browser/ui/views/theme_install_bubble_view.h b/chrome/browser/ui/views/theme_install_bubble_view.h
deleted file mode 100644
index fbcb5e761e2713165f8a1c6034dfcba6d2b2b175..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/theme_install_bubble_view.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2011 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_UI_VIEWS_THEME_INSTALL_BUBBLE_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_THEME_INSTALL_BUBBLE_VIEW_H_
-#pragma once
-
-#include "base/string16.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-#include "ui/gfx/canvas.h"
-#include "views/controls/label.h"
-
-class TabContents;
-
-namespace views {
-class Widget;
-}
-
-// ThemeInstallBubbleView is a view that provides a "Loading..." bubble in the
-// center of a browser window for use when an extension or theme is loaded.
-// (The Browser class only calls it to install itself into the currently active
-// browser window.) If an extension is being applied, the bubble goes away
-// immediately. If a theme is being applied, it disappears when the theme has
-// been loaded. The purpose of this bubble is to warn the user that the browser
-// may be unresponsive while the theme is being installed.
-//
-// Edge case: note that if one installs a theme in one window and then switches
-// rapidly to another window to install a theme there as well (in the short time
-// between install begin and theme caching seizing the UI thread), the loading
-// bubble will only appear over the first window, as there is only ever one
-// instance of the bubble.
-class ThemeInstallBubbleView : public content::NotificationObserver,
- public views::Label {
- public:
- virtual ~ThemeInstallBubbleView();
-
- // content::NotificationObserver
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details);
-
- // Show the loading bubble.
- static void Show(TabContents* tab_contents);
-
- private:
- explicit ThemeInstallBubbleView(TabContents* tab_contents);
-
- // Put the popup in the correct place on the tab.
- void Reposition();
-
- // Inherited from views.
- virtual gfx::Size GetPreferredSize();
-
- // Shut down the popup and remove our notifications.
- void Close();
-
- virtual void OnPaint(gfx::Canvas* canvas);
-
- // The content area at the start of the animation.
- gfx::Rect tab_contents_bounds_;
-
- // Widget containing us.
- views::Widget* popup_;
-
- // Text to show warning that theme is being installed.
- string16 text_;
-
- // A scoped container for notification registries.
- content::NotificationRegistrar registrar_;
-
- DISALLOW_COPY_AND_ASSIGN(ThemeInstallBubbleView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_THEME_INSTALL_BUBBLE_VIEW_H_
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/theme_install_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698