| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Need to include this before any other file because it defines | 5 // Need to include this before any other file because it defines |
| 6 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define | 6 // IPC_MESSAGE_LOG_ENABLED. We need to use it to define |
| 7 // IPC_MESSAGE_MACROS_LOG_ENABLED so that all_messages.h will generate the | 7 // IPC_MESSAGE_MACROS_LOG_ENABLED so that all_messages.h will generate the |
| 8 // ViewMsgLog et al. functions. | 8 // ViewMsgLog et al. functions. |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 | 10 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 layout->AddView(filter_button_); | 244 layout->AddView(filter_button_); |
| 245 layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); | 245 layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); |
| 246 layout->StartRow(1.0f, table_column_set); | 246 layout->StartRow(1.0f, table_column_set); |
| 247 layout->AddView(table_); | 247 layout->AddView(table_); |
| 248 } | 248 } |
| 249 | 249 |
| 250 gfx::Size AboutIPCDialog::GetPreferredSize() { | 250 gfx::Size AboutIPCDialog::GetPreferredSize() { |
| 251 return gfx::Size(800, 400); | 251 return gfx::Size(800, 400); |
| 252 } | 252 } |
| 253 | 253 |
| 254 views::View* AboutIPCDialog::GetContentsView() { | |
| 255 return this; | |
| 256 } | |
| 257 | |
| 258 int AboutIPCDialog::GetDialogButtons() const { | 254 int AboutIPCDialog::GetDialogButtons() const { |
| 259 return ui::DIALOG_BUTTON_NONE; | 255 return ui::DIALOG_BUTTON_NONE; |
| 260 } | 256 } |
| 261 | 257 |
| 262 string16 AboutIPCDialog::GetWindowTitle() const { | 258 string16 AboutIPCDialog::GetWindowTitle() const { |
| 263 return ASCIIToUTF16("about:ipc"); | 259 return ASCIIToUTF16("about:ipc"); |
| 264 } | 260 } |
| 265 | 261 |
| 266 void AboutIPCDialog::Layout() { | 262 void AboutIPCDialog::Layout() { |
| 267 if (!message_list_.m_hWnd) { | 263 if (!message_list_.m_hWnd) { |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 | 357 |
| 362 namespace chrome { | 358 namespace chrome { |
| 363 | 359 |
| 364 void ShowAboutIPCDialog() { | 360 void ShowAboutIPCDialog() { |
| 365 AboutIPCDialog::RunDialog(); | 361 AboutIPCDialog::RunDialog(); |
| 366 } | 362 } |
| 367 | 363 |
| 368 } // namespace chrome | 364 } // namespace chrome |
| 369 | 365 |
| 370 #endif // IPC_MESSAGE_LOG_ENABLED | 366 #endif // IPC_MESSAGE_LOG_ENABLED |
| OLD | NEW |