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 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 255 |
256 gfx::Size AboutIPCDialog::GetPreferredSize() { | 256 gfx::Size AboutIPCDialog::GetPreferredSize() { |
257 return gfx::Size(800, 400); | 257 return gfx::Size(800, 400); |
258 } | 258 } |
259 | 259 |
260 views::View* AboutIPCDialog::GetContentsView() { | 260 views::View* AboutIPCDialog::GetContentsView() { |
261 return this; | 261 return this; |
262 } | 262 } |
263 | 263 |
264 int AboutIPCDialog::GetDialogButtons() const { | 264 int AboutIPCDialog::GetDialogButtons() const { |
265 // Don't want OK or Cancel. | 265 return ui::DIALOG_BUTTON_NONE; |
266 return 0; | |
267 } | 266 } |
268 | 267 |
269 string16 AboutIPCDialog::GetWindowTitle() const { | 268 string16 AboutIPCDialog::GetWindowTitle() const { |
270 return ASCIIToUTF16("about:ipc"); | 269 return ASCIIToUTF16("about:ipc"); |
271 } | 270 } |
272 | 271 |
273 void AboutIPCDialog::Layout() { | 272 void AboutIPCDialog::Layout() { |
274 if (!message_list_.m_hWnd) { | 273 if (!message_list_.m_hWnd) { |
275 HWND parent_window = GetWidget()->GetNativeView(); | 274 HWND parent_window = GetWidget()->GetNativeView(); |
276 | 275 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 367 |
369 namespace browser { | 368 namespace browser { |
370 | 369 |
371 void ShowAboutIPCDialog() { | 370 void ShowAboutIPCDialog() { |
372 AboutIPCDialog::RunDialog(); | 371 AboutIPCDialog::RunDialog(); |
373 } | 372 } |
374 | 373 |
375 } // namespace browser | 374 } // namespace browser |
376 | 375 |
377 #endif // IPC_MESSAGE_LOG_ENABLED | 376 #endif // IPC_MESSAGE_LOG_ENABLED |
OLD | NEW |