| 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 // TestWebViewDelegate class: | 5 // TestWebViewDelegate class: |
| 6 // This class implements the WebViewDelegate methods for the test shell. One | 6 // This class implements the WebViewDelegate methods for the test shell. One |
| 7 // instance is owned by each TestShell. | 7 // instance is owned by each TestShell. |
| 8 | 8 |
| 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 9 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 10 #define WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 } | 325 } |
| 326 | 326 |
| 327 MockSpellCheck* mock_spellcheck() { | 327 MockSpellCheck* mock_spellcheck() { |
| 328 return &mock_spellcheck_; | 328 return &mock_spellcheck_; |
| 329 } | 329 } |
| 330 | 330 |
| 331 private: | 331 private: |
| 332 | 332 |
| 333 // Called the title of the page changes. | 333 // Called the title of the page changes. |
| 334 // Can be used to update the title of the window. | 334 // Can be used to update the title of the window. |
| 335 void SetPageTitle(const std::wstring& title); | 335 void SetPageTitle(const string16& title); |
| 336 | 336 |
| 337 // Called when the URL of the page changes. | 337 // Called when the URL of the page changes. |
| 338 // Extracts the URL and forwards on to SetAddressBarURL(). | 338 // Extracts the URL and forwards on to SetAddressBarURL(). |
| 339 void UpdateAddressBar(WebKit::WebView* webView); | 339 void UpdateAddressBar(WebKit::WebView* webView); |
| 340 | 340 |
| 341 // Called when the URL of the page changes. | 341 // Called when the URL of the page changes. |
| 342 // Should be used to update the text of the URL bar. | 342 // Should be used to update the text of the URL bar. |
| 343 void SetAddressBarURL(const GURL& url); | 343 void SetAddressBarURL(const GURL& url); |
| 344 | 344 |
| 345 // Show a JavaScript alert as a popup message. | 345 // Show a JavaScript alert as a popup message. |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 std::string edit_command_name_; | 445 std::string edit_command_name_; |
| 446 std::string edit_command_value_; | 446 std::string edit_command_value_; |
| 447 | 447 |
| 448 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). | 448 // The mock spellchecker used in TestWebViewDelegate::spellCheck(). |
| 449 MockSpellCheck mock_spellcheck_; | 449 MockSpellCheck mock_spellcheck_; |
| 450 | 450 |
| 451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 451 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 452 }; | 452 }; |
| 453 | 453 |
| 454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 454 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |