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/about_ipc_dialog.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/about_ipc_dialog.h')
-rw-r--r-- | chrome/browser/views/about_ipc_dialog.h | 74 |
1 files changed, 4 insertions, 70 deletions
diff --git a/chrome/browser/views/about_ipc_dialog.h b/chrome/browser/views/about_ipc_dialog.h index 9594c8b..13c1255 100644 --- a/chrome/browser/views/about_ipc_dialog.h +++ b/chrome/browser/views/about_ipc_dialog.h @@ -1,4 +1,4 @@ -// Copyright (c) 2009 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,74 +6,8 @@ #define CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ #pragma once -#if defined(OS_WIN) && defined(IPC_MESSAGE_LOG_ENABLED) - -#include <atlbase.h> -#include <atlapp.h> -#include <atlwin.h> -#include <atlctrls.h> - -#include "base/singleton.h" -#include "ipc/ipc_logging.h" -#include "views/controls/button/button.h" -#include "views/controls/table/table_view.h" -#include "views/window/dialog_delegate.h" - - -class Profile; -namespace views { -class NativeViewHost; -class TextButton; -} // namespace views - -class AboutIPCDialog : public views::DialogDelegate, - public views::ButtonListener, - public IPC::Logging::Consumer, - public views::View { - public: - // This dialog is a singleton. If the dialog is already opened, it won't do - // anything, so you can just blindly call this function all you want. - static void RunDialog(); - - virtual ~AboutIPCDialog(); - - private: - friend struct DefaultSingletonTraits<AboutIPCDialog>; - - AboutIPCDialog(); - - // Sets up all UI controls for the dialog. - void SetupControls(); - - // views::View overrides. - virtual gfx::Size GetPreferredSize(); - virtual views::View* GetContentsView(); - virtual int GetDialogButtons() const; - virtual std::wstring GetWindowTitle() const; - virtual void Layout(); - - // IPC::Logging::Consumer implementation. - virtual void Log(const IPC::LogData& data); - - // views::WindowDelegate (via view::DialogDelegate). - virtual bool CanResize() const; - - // views::ButtonListener. - virtual void ButtonPressed(views::Button* button, const views::Event& event); - - WTL::CListViewCtrl message_list_; - - views::TextButton* track_toggle_; - views::TextButton* clear_button_; - views::TextButton* filter_button_; - views::NativeViewHost* table_; - - // Set to true when we're tracking network status. - bool tracking_; - - DISALLOW_COPY_AND_ASSIGN(AboutIPCDialog); -}; - -#endif // OS_WIN && IPC_MESSAGE_LOG_ENABLED +#include "chrome/browser/ui/views/about_ipc_dialog.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ + |