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 // 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 "chrome/common/ipc_message.h" | 9 #include "chrome/common/ipc_message.h" |
10 | 10 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 InitDialog(hwnd); | 225 InitDialog(hwnd); |
226 return FALSE; // Don't set keyboard focus. | 226 return FALSE; // Don't set keyboard focus. |
227 case WM_SYSCOMMAND: | 227 case WM_SYSCOMMAND: |
228 if (wparam == SC_CLOSE) { | 228 if (wparam == SC_CLOSE) { |
229 CloseDialog(); | 229 CloseDialog(); |
230 return FALSE; | 230 return FALSE; |
231 } | 231 } |
232 break; | 232 break; |
233 case WM_NOTIFY: { | 233 case WM_NOTIFY: { |
234 NMLISTVIEW* info = reinterpret_cast<NM_LISTVIEW*>(lparam); | 234 NMLISTVIEW* info = reinterpret_cast<NM_LISTVIEW*>(lparam); |
235 if ((wparam == IDC_View || wparam == IDC_ViewHost || wparam == IDC_Plugin
|| | 235 if ((wparam == IDC_View || wparam == IDC_ViewHost || |
| 236 wparam == IDC_Plugin || |
236 wparam == IDC_PluginHost || wparam == IDC_NPObject || | 237 wparam == IDC_PluginHost || wparam == IDC_NPObject || |
237 wparam == IDC_PluginProcess || wparam == IDC_PluginProcessHost) && | 238 wparam == IDC_PluginProcess || wparam == IDC_PluginProcessHost) && |
238 info->hdr.code == LVN_ITEMCHANGED) { | 239 info->hdr.code == LVN_ITEMCHANGED) { |
239 if (info->uChanged & LVIF_STATE) { | 240 if (info->uChanged & LVIF_STATE) { |
240 bool checked = (info->uNewState >> 12) == 2; | 241 bool checked = (info->uNewState >> 12) == 2; |
241 OnCheck(static_cast<int>(info->lParam), checked); | 242 OnCheck(static_cast<int>(info->lParam), checked); |
242 } | 243 } |
243 return FALSE; | 244 return FALSE; |
244 } | 245 } |
245 break; | 246 break; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 } | 431 } |
431 track_toggle_->SchedulePaint(); | 432 track_toggle_->SchedulePaint(); |
432 } else if (button == clear_button_) { | 433 } else if (button == clear_button_) { |
433 message_list_.DeleteAllItems(); | 434 message_list_.DeleteAllItems(); |
434 } else if (button == filter_button_) { | 435 } else if (button == filter_button_) { |
435 RunSettingsDialog(GetRootView()->GetWidget()->GetHWND()); | 436 RunSettingsDialog(GetRootView()->GetWidget()->GetHWND()); |
436 } | 437 } |
437 } | 438 } |
438 | 439 |
439 #endif // IPC_MESSAGE_LOG_ENABLED | 440 #endif // IPC_MESSAGE_LOG_ENABLED |
OLD | NEW |