| 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 #include "chrome/browser/views/about_network_dialog.h" | 5 #include "chrome/browser/views/about_network_dialog.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/thread.h" | 8 #include "base/thread.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/views/standard_layout.h" | |
| 11 #include "net/url_request/url_request.h" | 10 #include "net/url_request/url_request.h" |
| 12 #include "net/url_request/url_request_job.h" | 11 #include "net/url_request/url_request_job.h" |
| 13 #include "net/url_request/url_request_job_tracker.h" | 12 #include "net/url_request/url_request_job_tracker.h" |
| 14 #include "views/grid_layout.h" | 13 #include "views/grid_layout.h" |
| 15 #include "views/controls/button/text_button.h" | 14 #include "views/controls/button/text_button.h" |
| 16 #include "views/controls/text_field.h" | 15 #include "views/controls/text_field.h" |
| 16 #include "views/standard_layout.h" |
| 17 #include "views/window/window.h" | 17 #include "views/window/window.h" |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // We don't localize this UI since this is a developer-only feature. | 21 // We don't localize this UI since this is a developer-only feature. |
| 22 const wchar_t kStartTrackingLabel[] = L"Start tracking"; | 22 const wchar_t kStartTrackingLabel[] = L"Start tracking"; |
| 23 const wchar_t kStopTrackingLabel[] = L"Stop tracking"; | 23 const wchar_t kStopTrackingLabel[] = L"Stop tracking"; |
| 24 const wchar_t kShowCurrentLabel[] = L"Show Current"; | 24 const wchar_t kShowCurrentLabel[] = L"Show Current"; |
| 25 const wchar_t kClearLabel[] = L"Clear"; | 25 const wchar_t kClearLabel[] = L"Clear"; |
| 26 | 26 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 tracking_ = true; | 367 tracking_ = true; |
| 368 tracker->StartTracking(); | 368 tracker->StartTracking(); |
| 369 } | 369 } |
| 370 track_toggle_->SchedulePaint(); | 370 track_toggle_->SchedulePaint(); |
| 371 } else if (button == show_button_) { | 371 } else if (button == show_button_) { |
| 372 tracker->ReportStatus(); | 372 tracker->ReportStatus(); |
| 373 } else if (button == clear_button_) { | 373 } else if (button == clear_button_) { |
| 374 text_field_->SetText(std::wstring()); | 374 text_field_->SetText(std::wstring()); |
| 375 } | 375 } |
| 376 } | 376 } |
| OLD | NEW |