summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/logging_about_dialog.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 21:39:21 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 21:39:21 +0000
commit875ac10e1efb37bff2182aa82e4da47830c09a6b (patch)
tree24de27335e922af24e2c0fd76f2b58676145da6a /chrome/browser/views/logging_about_dialog.h
parent3596f90b2dffa20949870cd402833c3d5f05200e (diff)
downloadchromium_src-875ac10e1efb37bff2182aa82e4da47830c09a6b.zip
chromium_src-875ac10e1efb37bff2182aa82e4da47830c09a6b.tar.gz
chromium_src-875ac10e1efb37bff2182aa82e4da47830c09a6b.tar.bz2
Reverting 8822.
Review URL: http://codereview.chromium.org/19439 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8827 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/logging_about_dialog.h')
-rw-r--r--chrome/browser/views/logging_about_dialog.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/chrome/browser/views/logging_about_dialog.h b/chrome/browser/views/logging_about_dialog.h
deleted file mode 100644
index 7f24884..0000000
--- a/chrome/browser/views/logging_about_dialog.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2009 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_VIEWS_LOGGING_ABOUT_DIALOG_H_
-#define CHROME_BROWSER_VIEWS_LOGGING_ABOUT_DIALOG_H_
-
-#include "base/singleton.h"
-#include "chrome/views/base_button.h"
-#include "chrome/views/dialog_delegate.h"
-
-namespace views {
-class ColumnSet;
-class GridLayout;
-class TextButton;
-class TextField;
-} // namespace views
-
-// This is the base class for dialog boxes used in debugging that dump text
-// into a textbox. The derived class specifies which buttons appear at the top
-// of the dialog, this class manages the text area.
-class LoggingAboutDialog : public views::DialogDelegate,
- public views::View {
- public:
- virtual ~LoggingAboutDialog();
-
- // Appends the given string to the dialog box. This is called by the job
- // tracker (see the .cc file) when "stuff happens."
- void AppendText(const std::wstring& text);
-
- protected:
- // The derived class should be sure to call SetupControls. We don't want
- // this class to do it becuase it calls virtual functions, and the derived
- // class wouldn't be constructed yet.
- LoggingAboutDialog();
-
- // Sets up all UI controls for the dialog.
- void SetupControls();
-
- // Sets up the column set for the buttons that appears at the top of the
- // dialog.
- virtual void SetupButtonColumnSet(views::ColumnSet* set) = 0;
-
- // Adds any custom buttons to the layout. This will be in the column set
- // set up above.
- virtual void AddButtonControlsToLayout(views::GridLayout* layout) = 0;
-
- views::TextField* text_field() { return text_field_; }
-
- private:
- virtual gfx::Size GetPreferredSize();
- virtual views::View* GetContentsView();
- virtual int GetDialogButtons() const;
- virtual std::wstring GetWindowTitle() const;
-
- // views::WindowDelegate (via view::DialogDelegate).
- virtual bool CanResize() const;
-
- // The text field that contains the log messages.
- views::TextField* text_field_;
-
- DISALLOW_COPY_AND_ASSIGN(LoggingAboutDialog);
-};
-
-#endif // CHROME_BROWSER_VIEWS_LOGGING_ABOUT_DIALOG_H_