Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: chrome/browser/ui/views/about_ipc_dialog.cc

Issue 6899025: Show hardware addresses for wifi and ethernet networks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: z Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698