| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ |
| 6 #define CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ | 6 #define CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/singleton.h" | 8 #include "base/singleton.h" |
| 9 #include "chrome/common/ipc_logging.h" | 9 #include "chrome/common/ipc_logging.h" |
| 10 #include "views/controls/button/button.h" | 10 #include "views/controls/button/button.h" |
| 11 #include "views/controls/table/table_view.h" | 11 #include "views/controls/table/table_view.h" |
| 12 #include "views/window/dialog_delegate.h" | 12 #include "views/window/dialog_delegate.h" |
| 13 | 13 |
| 14 #if defined(OS_WIN) && defined(IPC_MESSAGE_LOG_ENABLED) | 14 #if defined(OS_WIN) && defined(IPC_MESSAGE_LOG_ENABLED) |
| 15 | 15 |
| 16 class Profile; | 16 class Profile; |
| 17 namespace views { | 17 namespace views { |
| 18 class NativeViewHost; |
| 18 class TextButton; | 19 class TextButton; |
| 19 class HWNDView; | |
| 20 } // namespace views | 20 } // namespace views |
| 21 | 21 |
| 22 class AboutIPCDialog : public views::DialogDelegate, | 22 class AboutIPCDialog : public views::DialogDelegate, |
| 23 public views::ButtonListener, | 23 public views::ButtonListener, |
| 24 public IPC::Logging::Consumer, | 24 public IPC::Logging::Consumer, |
| 25 public views::View { | 25 public views::View { |
| 26 public: | 26 public: |
| 27 // This dialog is a singleton. If the dialog is already opened, it won't do | 27 // This dialog is a singleton. If the dialog is already opened, it won't do |
| 28 // anything, so you can just blindly call this function all you want. | 28 // anything, so you can just blindly call this function all you want. |
| 29 static void RunDialog(); | 29 static void RunDialog(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 52 virtual bool CanResize() const; | 52 virtual bool CanResize() const; |
| 53 | 53 |
| 54 // views::ButtonListener. | 54 // views::ButtonListener. |
| 55 virtual void ButtonPressed(views::Button* button); | 55 virtual void ButtonPressed(views::Button* button); |
| 56 | 56 |
| 57 CListViewCtrl message_list_; | 57 CListViewCtrl message_list_; |
| 58 | 58 |
| 59 views::TextButton* track_toggle_; | 59 views::TextButton* track_toggle_; |
| 60 views::TextButton* clear_button_; | 60 views::TextButton* clear_button_; |
| 61 views::TextButton* filter_button_; | 61 views::TextButton* filter_button_; |
| 62 views::HWNDView* table_; | 62 views::NativeViewHost* table_; |
| 63 | 63 |
| 64 // Set to true when we're tracking network status. | 64 // Set to true when we're tracking network status. |
| 65 bool tracking_; | 65 bool tracking_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(AboutIPCDialog); | 67 DISALLOW_COPY_AND_ASSIGN(AboutIPCDialog); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 #endif // OS_WIN && IPC_MESSAGE_LOG_ENABLED | 70 #endif // OS_WIN && IPC_MESSAGE_LOG_ENABLED |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ | 72 #endif // CHROME_BROWSER_VIEWS_ABOUT_IPC_DIALOG_H_ |
| OLD | NEW |