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 11 matching lines...) Expand all Loading... |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
24 #include "chrome/common/devtools_messages.h" | 24 #include "chrome/common/devtools_messages.h" |
25 #include "chrome/common/plugin_messages.h" | 25 #include "chrome/common/plugin_messages.h" |
26 #include "chrome/common/render_messages.h" | 26 #include "chrome/common/render_messages.h" |
27 #include "net/url_request/url_request.h" | 27 #include "net/url_request/url_request.h" |
28 #include "net/url_request/url_request_job.h" | 28 #include "net/url_request/url_request_job.h" |
29 #include "net/url_request/url_request_job_tracker.h" | 29 #include "net/url_request/url_request_job_tracker.h" |
30 #include "views/grid_layout.h" | 30 #include "views/grid_layout.h" |
31 #include "views/controls/button/text_button.h" | 31 #include "views/controls/button/text_button.h" |
32 #include "views/controls/hwnd_view.h" | 32 #include "views/controls/native/native_view_host.h" |
33 #include "views/standard_layout.h" | 33 #include "views/standard_layout.h" |
34 #include "views/widget/root_view.h" | 34 #include "views/widget/root_view.h" |
35 #include "views/widget/widget.h" | 35 #include "views/widget/widget.h" |
36 #include "views/window/window.h" | 36 #include "views/window/window.h" |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 // We don't localize this UI since this is a developer-only feature. | 40 // We don't localize this UI since this is a developer-only feature. |
41 const wchar_t kStartTrackingLabel[] = L"Start tracking"; | 41 const wchar_t kStartTrackingLabel[] = L"Start tracking"; |
42 const wchar_t kStopTrackingLabel[] = L"Stop tracking"; | 42 const wchar_t kStopTrackingLabel[] = L"Stop tracking"; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 } | 309 } |
310 | 310 |
311 void AboutIPCDialog::SetupControls() { | 311 void AboutIPCDialog::SetupControls() { |
312 views::GridLayout* layout = CreatePanelGridLayout(this); | 312 views::GridLayout* layout = CreatePanelGridLayout(this); |
313 SetLayoutManager(layout); | 313 SetLayoutManager(layout); |
314 | 314 |
315 track_toggle_ = new views::TextButton(this, kStartTrackingLabel); | 315 track_toggle_ = new views::TextButton(this, kStartTrackingLabel); |
316 clear_button_ = new views::TextButton(this, kClearLabel); | 316 clear_button_ = new views::TextButton(this, kClearLabel); |
317 filter_button_ = new views::TextButton(this, kFilterLabel); | 317 filter_button_ = new views::TextButton(this, kFilterLabel); |
318 | 318 |
319 table_ = new views::HWNDView(); | 319 table_ = new views::NativeViewHost; |
320 | 320 |
321 static const int first_column_set = 1; | 321 static const int first_column_set = 1; |
322 views::ColumnSet* column_set = layout->AddColumnSet(first_column_set); | 322 views::ColumnSet* column_set = layout->AddColumnSet(first_column_set); |
323 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, | 323 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, |
324 33.33f, views::GridLayout::FIXED, 0, 0); | 324 33.33f, views::GridLayout::FIXED, 0, 0); |
325 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, | 325 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, |
326 33.33f, views::GridLayout::FIXED, 0, 0); | 326 33.33f, views::GridLayout::FIXED, 0, 0); |
327 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, | 327 column_set->AddColumn(views::GridLayout::CENTER, views::GridLayout::CENTER, |
328 33.33f, views::GridLayout::FIXED, 0, 0); | 328 33.33f, views::GridLayout::FIXED, 0, 0); |
329 | 329 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 } | 443 } |
444 track_toggle_->SchedulePaint(); | 444 track_toggle_->SchedulePaint(); |
445 } else if (button == clear_button_) { | 445 } else if (button == clear_button_) { |
446 message_list_.DeleteAllItems(); | 446 message_list_.DeleteAllItems(); |
447 } else if (button == filter_button_) { | 447 } else if (button == filter_button_) { |
448 RunSettingsDialog(GetRootView()->GetWidget()->GetNativeView()); | 448 RunSettingsDialog(GetRootView()->GetWidget()->GetNativeView()); |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
452 #endif // IPC_MESSAGE_LOG_ENABLED | 452 #endif // IPC_MESSAGE_LOG_ENABLED |
OLD | NEW |