diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-09 07:35:32 +0000 |
commit | 213dac2f0bff9162502fe325b6ebb85a255efcb2 (patch) | |
tree | 3640cb1f19976e38677b8632537d2d41f8444d0f /chrome/browser/views/clear_data_view.h | |
parent | 6de53d401aa8dc6c7e0a9874c71a95ce88ade50d (diff) | |
download | chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.zip chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.gz chromium_src-213dac2f0bff9162502fe325b6ebb85a255efcb2.tar.bz2 |
Move browser/views to browser/ui/views
TBR=brettw
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/4694005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65508 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/clear_data_view.h')
-rw-r--r-- | chrome/browser/views/clear_data_view.h | 92 |
1 files changed, 3 insertions, 89 deletions
diff --git a/chrome/browser/views/clear_data_view.h b/chrome/browser/views/clear_data_view.h index 9481ec4..f03a941 100644 --- a/chrome/browser/views/clear_data_view.h +++ b/chrome/browser/views/clear_data_view.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2010 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. @@ -6,94 +6,8 @@ #define CHROME_BROWSER_VIEWS_CLEAR_DATA_VIEW_H_ #pragma once -#include "app/combobox_model.h" -#include "chrome/browser/browsing_data_remover.h" -#include "chrome/browser/views/clear_browsing_data_view.h" -#include "chrome/browser/views/clear_server_data.h" -#include "views/controls/button/button.h" -#include "views/controls/combobox/combobox.h" -#include "views/controls/label.h" -#include "views/controls/link.h" -#include "views/controls/tabbed_pane/tabbed_pane.h" -#include "views/view.h" -#include "views/window/dialog_delegate.h" - -namespace views { -class Checkbox; -class Label; -class Throbber; -class Window; -} - -class ClearBrowsingDataView2; -class ClearServerDataView; -class Profile; -class MessageLoop; - -//////////////////////////////////////////////////////////////////////////////// -// -// The ClearDataView class is responsible for drawing the window that allows -// the user to select what to delete (history, downloads, etc). It has tabs -// separating "local" data from "other" (e.g. server) data -// -//////////////////////////////////////////////////////////////////////////////// -class ClearDataView : public views::View, - public views::DialogDelegate { - public: - explicit ClearDataView(Profile* profile); - virtual ~ClearDataView(void) {} - - // Disallow the window closing while clearing either server or browsing - // data. After clear completes, close the window. - void StartClearingBrowsingData(); - void StopClearingBrowsingData(); - - void StartClearingServerData(); - void SucceededClearingServerData(); - void FailedClearingServerData(); - - // Initialize the controls on the dialog. - void Init(); - - // Overridden from views::View: - virtual gfx::Size GetPreferredSize(); - virtual void Layout(); - - // Overridden from views::DialogDelegate: - virtual int GetDefaultDialogButton() const; - virtual std::wstring GetDialogButtonLabel( - MessageBoxFlags::DialogButton button) const; - virtual int GetDialogButtons() const; - virtual bool IsDialogButtonEnabled( - MessageBoxFlags::DialogButton button) const; - virtual bool CanResize() const; - virtual bool CanMaximize() const; - virtual bool IsAlwaysOnTop() const; - virtual bool HasAlwaysOnTopMenu() const; - virtual bool IsModal() const; - virtual std::wstring GetWindowTitle() const; - virtual views::View* GetContentsView(); - virtual bool GetSizeExtraViewHeightToButtons() { return true; } - virtual views::View* GetInitiallyFocusedView(); - - private: - // Sets the controls on the UI to be enabled/disabled depending on whether we - // have a delete operation in progress or not. - void UpdateControlEnabledState(); - - // Currently clearing - bool clearing_data_; - - views::TabbedPane* tabs_; - ClearServerDataView* clear_server_data_tab_; - ClearBrowsingDataView2* clear_browsing_data_tab_; - - Profile* profile_; - - DISALLOW_COPY_AND_ASSIGN(ClearDataView); -}; - -static const int kDialogPadding = 7; +#include "chrome/browser/ui/views/clear_data_view.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_CLEAR_DATA_VIEW_H_ |