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

Unified Diff: chrome/browser/ui/views/importer/import_progress_dialog_view.h

Issue 14322002: Remove unused ImportProgressDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted ImportFromBrowser back to returning an int. Created 7 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/views/importer/import_progress_dialog_view.h
diff --git a/chrome/browser/ui/views/importer/import_progress_dialog_view.h b/chrome/browser/ui/views/importer/import_progress_dialog_view.h
deleted file mode 100644
index b3224641b0da22f314c27606a88bc273abe0199f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/importer/import_progress_dialog_view.h
+++ /dev/null
@@ -1,92 +0,0 @@
-// Copyright (c) 2012 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_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/importer/importer_data_types.h"
-#include "chrome/browser/importer/importer_progress_observer.h"
-#include "ui/views/view.h"
-#include "ui/views/window/dialog_delegate.h"
-
-class ImporterHost;
-class ImporterObserver;
-
-namespace views {
-class CheckmarkThrobber;
-class Label;
-}
-
-class ImportProgressDialogView : public views::DialogDelegateView,
- public importer::ImporterProgressObserver {
- public:
- // |items| is a bitmask of importer::ImportItem being imported.
- // |bookmark_import| is true if we're importing bookmarks from a
- // bookmarks.html file.
- ImportProgressDialogView(uint16 items,
- ImporterHost* importer_host,
- ImporterObserver* importer_observer,
- const string16& importer_name,
- bool bookmarks_import);
- virtual ~ImportProgressDialogView();
-
- protected:
- // views::View:
- virtual gfx::Size GetPreferredSize() OVERRIDE;
- virtual void ViewHierarchyChanged(bool is_add,
- views::View* parent,
- views::View* child) OVERRIDE;
-
- // views::DialogDelegate:
- virtual int GetDialogButtons() const OVERRIDE;
- virtual string16 GetDialogButtonLabel(ui::DialogButton button) const OVERRIDE;
- virtual string16 GetWindowTitle() const OVERRIDE;
- virtual bool Cancel() OVERRIDE;
-
- private:
- // Set up the control layout within this dialog.
- void InitControlLayout();
-
- // importer::ImporterProgressObserver:
- virtual void ImportStarted() OVERRIDE;
- virtual void ImportItemStarted(importer::ImportItem item) OVERRIDE;
- virtual void ImportItemEnded(importer::ImportItem item) OVERRIDE;
- virtual void ImportEnded() OVERRIDE;
-
- // Various dialog controls.
- scoped_ptr<views::CheckmarkThrobber> state_bookmarks_;
- scoped_ptr<views::CheckmarkThrobber> state_searches_;
- scoped_ptr<views::CheckmarkThrobber> state_passwords_;
- scoped_ptr<views::CheckmarkThrobber> state_history_;
- scoped_ptr<views::CheckmarkThrobber> state_cookies_;
- views::Label* label_info_;
- scoped_ptr<views::Label> label_bookmarks_;
- scoped_ptr<views::Label> label_searches_;
- scoped_ptr<views::Label> label_passwords_;
- scoped_ptr<views::Label> label_history_;
- scoped_ptr<views::Label> label_cookies_;
-
- // Items to import from the other browser
- uint16 items_;
-
- // Utility class that does the actual import.
- scoped_refptr<ImporterHost> importer_host_;
-
- // Observer that we need to notify about import events.
- ImporterObserver* importer_observer_;
-
- // True if the import operation is in progress.
- bool importing_;
-
- // Are we importing a bookmarks.html file?
- bool bookmarks_import_;
-
- DISALLOW_COPY_AND_ASSIGN(ImportProgressDialogView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_IMPORTER_IMPORT_PROGRESS_DIALOG_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698