| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/shell/browser/layout_test/blink_test_controller.h" | 5 #include "content/shell/browser/layout_test/blink_test_controller.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <iostream> | 9 #include <iostream> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 main_window_->web_contents()->GetRenderViewHost(); | 767 main_window_->web_contents()->GetRenderViewHost(); |
| 768 main_render_view_host->OnWebkitPreferencesChanged(); | 768 main_render_view_host->OnWebkitPreferencesChanged(); |
| 769 } | 769 } |
| 770 | 770 |
| 771 void BlinkTestController::OnClearDevToolsLocalStorage() { | 771 void BlinkTestController::OnClearDevToolsLocalStorage() { |
| 772 ShellBrowserContext* browser_context = | 772 ShellBrowserContext* browser_context = |
| 773 ShellContentBrowserClient::Get()->browser_context(); | 773 ShellContentBrowserClient::Get()->browser_context(); |
| 774 StoragePartition* storage_partition = | 774 StoragePartition* storage_partition = |
| 775 BrowserContext::GetStoragePartition(browser_context, NULL); | 775 BrowserContext::GetStoragePartition(browser_context, NULL); |
| 776 storage_partition->GetDOMStorageContext()->DeleteLocalStorage( | 776 storage_partition->GetDOMStorageContext()->DeleteLocalStorage( |
| 777 content::LayoutTestDevToolsFrontend::GetDevToolsPathAsURL("", "") | 777 content::LayoutTestDevToolsFrontend::GetDevToolsPathAsURL("") |
| 778 .GetOrigin()); | 778 .GetOrigin()); |
| 779 } | 779 } |
| 780 | 780 |
| 781 void BlinkTestController::OnShowDevTools(const std::string& settings, | 781 void BlinkTestController::OnShowDevTools(const std::string& settings, |
| 782 const std::string& frontend_url) { | 782 const std::string& frontend_url) { |
| 783 if (!devtools_frontend_) { | 783 if (!devtools_frontend_) { |
| 784 devtools_frontend_ = LayoutTestDevToolsFrontend::Show( | 784 devtools_frontend_ = LayoutTestDevToolsFrontend::Show( |
| 785 main_window_->web_contents(), settings, frontend_url); | 785 main_window_->web_contents(), settings, frontend_url); |
| 786 } else { | 786 } else { |
| 787 devtools_frontend_->ReuseFrontend(settings, frontend_url); | 787 devtools_frontend_->ReuseFrontend(settings, frontend_url); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 } else { | 937 } else { |
| 938 printer_->AddErrorMessage(base::StringPrintf( | 938 printer_->AddErrorMessage(base::StringPrintf( |
| 939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", | 939 "FAIL: Unexpected sendBluetoothManualChooserEvent() event name '%s'.", |
| 940 event_name.c_str())); | 940 event_name.c_str())); |
| 941 return; | 941 return; |
| 942 } | 942 } |
| 943 bluetooth_chooser_factory_->SendEvent(event, argument); | 943 bluetooth_chooser_factory_->SendEvent(event, argument); |
| 944 } | 944 } |
| 945 | 945 |
| 946 } // namespace content | 946 } // namespace content |
| OLD | NEW |