| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 render_messages.h will generate the | 7 // IPC_MESSAGE_MACROS_LOG_ENABLED so render_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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 IPC::Logging::GetInstance()->SetConsumer(NULL); | 212 IPC::Logging::GetInstance()->SetConsumer(NULL); |
| 213 } | 213 } |
| 214 | 214 |
| 215 // static | 215 // static |
| 216 void AboutIPCDialog::RunDialog() { | 216 void AboutIPCDialog::RunDialog() { |
| 217 if (!g_active_dialog) { | 217 if (!g_active_dialog) { |
| 218 g_active_dialog = new AboutIPCDialog; | 218 g_active_dialog = new AboutIPCDialog; |
| 219 views::Window::CreateChromeWindow(NULL, gfx::Rect(), | 219 views::Window::CreateChromeWindow(NULL, gfx::Rect(), |
| 220 g_active_dialog)->Show(); | 220 g_active_dialog)->Show(); |
| 221 } else { | 221 } else { |
| 222 // TOOD(brettw) it would be nice to focus the existing window. | 222 // TODO(brettw) it would be nice to focus the existing window. |
| 223 } | 223 } |
| 224 } | 224 } |
| 225 | 225 |
| 226 void AboutIPCDialog::SetupControls() { | 226 void AboutIPCDialog::SetupControls() { |
| 227 views::GridLayout* layout = views::GridLayout::CreatePanel(this); | 227 views::GridLayout* layout = views::GridLayout::CreatePanel(this); |
| 228 SetLayoutManager(layout); | 228 SetLayoutManager(layout); |
| 229 | 229 |
| 230 track_toggle_ = new views::TextButton(this, kStartTrackingLabel); | 230 track_toggle_ = new views::TextButton(this, kStartTrackingLabel); |
| 231 clear_button_ = new views::TextButton(this, kClearLabel); | 231 clear_button_ = new views::TextButton(this, kClearLabel); |
| 232 filter_button_ = new views::TextButton(this, kFilterLabel); | 232 filter_button_ = new views::TextButton(this, kFilterLabel); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 namespace browser { | 372 namespace browser { |
| 373 | 373 |
| 374 void ShowAboutIPCDialog() { | 374 void ShowAboutIPCDialog() { |
| 375 AboutIPCDialog::RunDialog(); | 375 AboutIPCDialog::RunDialog(); |
| 376 } | 376 } |
| 377 | 377 |
| 378 } // namespace browser | 378 } // namespace browser |
| 379 | 379 |
| 380 #endif // IPC_MESSAGE_LOG_ENABLED | 380 #endif // IPC_MESSAGE_LOG_ENABLED |
| OLD | NEW |