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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 message_list_.SetItemText(index, kParamsColumn, | 340 message_list_.SetItemText(index, kParamsColumn, |
341 UTF8ToWide(data.params).c_str()); | 341 UTF8ToWide(data.params).c_str()); |
342 message_list_.EnsureVisible(index, FALSE); | 342 message_list_.EnsureVisible(index, FALSE); |
343 } | 343 } |
344 | 344 |
345 bool AboutIPCDialog::CanResize() const { | 345 bool AboutIPCDialog::CanResize() const { |
346 return true; | 346 return true; |
347 } | 347 } |
348 | 348 |
349 void AboutIPCDialog::ButtonPressed( | 349 void AboutIPCDialog::ButtonPressed( |
350 views::Button* button, const views::Event& event) { | 350 views::Button* button, const ui::Event& event) { |
351 if (button == track_toggle_) { | 351 if (button == track_toggle_) { |
352 if (tracking_) { | 352 if (tracking_) { |
353 track_toggle_->SetText(kStartTrackingLabel); | 353 track_toggle_->SetText(kStartTrackingLabel); |
354 tracking_ = false; | 354 tracking_ = false; |
355 content::EnableIPCLogging(false); | 355 content::EnableIPCLogging(false); |
356 } else { | 356 } else { |
357 track_toggle_->SetText(kStopTrackingLabel); | 357 track_toggle_->SetText(kStopTrackingLabel); |
358 tracking_ = true; | 358 tracking_ = true; |
359 content::EnableIPCLogging(true); | 359 content::EnableIPCLogging(true); |
360 } | 360 } |
361 track_toggle_->SchedulePaint(); | 361 track_toggle_->SchedulePaint(); |
362 } else if (button == clear_button_) { | 362 } else if (button == clear_button_) { |
363 message_list_.DeleteAllItems(); | 363 message_list_.DeleteAllItems(); |
364 } else if (button == filter_button_) { | 364 } else if (button == filter_button_) { |
365 RunSettingsDialog(GetWidget()->GetNativeView()); | 365 RunSettingsDialog(GetWidget()->GetNativeView()); |
366 } | 366 } |
367 } | 367 } |
368 | 368 |
369 namespace chrome { | 369 namespace chrome { |
370 | 370 |
371 void ShowAboutIPCDialog() { | 371 void ShowAboutIPCDialog() { |
372 AboutIPCDialog::RunDialog(); | 372 AboutIPCDialog::RunDialog(); |
373 } | 373 } |
374 | 374 |
375 } // namespace chrome | 375 } // namespace chrome |
376 | 376 |
377 #endif // IPC_MESSAGE_LOG_ENABLED | 377 #endif // IPC_MESSAGE_LOG_ENABLED |
OLD | NEW |