| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 virtual bool shouldApplyStyle( | 107 virtual bool shouldApplyStyle( |
| 108 const WebKit::WebString& style, const WebKit::WebRange& range); | 108 const WebKit::WebString& style, const WebKit::WebRange& range); |
| 109 virtual bool isSmartInsertDeleteEnabled(); | 109 virtual bool isSmartInsertDeleteEnabled(); |
| 110 virtual bool isSelectTrailingWhitespaceEnabled(); | 110 virtual bool isSelectTrailingWhitespaceEnabled(); |
| 111 virtual void setInputMethodEnabled(bool enabled) {} | 111 virtual void setInputMethodEnabled(bool enabled) {} |
| 112 virtual void didBeginEditing(); | 112 virtual void didBeginEditing(); |
| 113 virtual void didChangeSelection(bool is_selection_empty); | 113 virtual void didChangeSelection(bool is_selection_empty); |
| 114 virtual void didChangeContents(); | 114 virtual void didChangeContents(); |
| 115 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} | 115 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} |
| 116 virtual void didEndEditing(); | 116 virtual void didEndEditing(); |
| 117 virtual void spellCheck( |
| 118 const WebKit::WebString& text, int& offset, int& length) {} |
| 119 virtual WebKit::WebString autoCorrectWord( |
| 120 const WebKit::WebString& misspelled_word); |
| 121 virtual void updateSpellingUIWithMisspelledWord( |
| 122 const WebKit::WebString& word) {} |
| 117 virtual void runModalAlertDialog( | 123 virtual void runModalAlertDialog( |
| 118 WebKit::WebFrame* frame, const WebKit::WebString& message); | 124 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 119 virtual bool runModalConfirmDialog( | 125 virtual bool runModalConfirmDialog( |
| 120 WebKit::WebFrame* frame, const WebKit::WebString& message); | 126 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 121 virtual bool runModalPromptDialog( | 127 virtual bool runModalPromptDialog( |
| 122 WebKit::WebFrame* frame, const WebKit::WebString& message, | 128 WebKit::WebFrame* frame, const WebKit::WebString& message, |
| 123 const WebKit::WebString& default_value, WebKit::WebString* actual_value); | 129 const WebKit::WebString& default_value, WebKit::WebString* actual_value); |
| 124 virtual bool runModalBeforeUnloadDialog( | 130 virtual bool runModalBeforeUnloadDialog( |
| 125 WebKit::WebFrame* frame, const WebKit::WebString& message); | 131 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 126 virtual void setStatusText(const WebKit::WebString& text); | 132 virtual void setStatusText(const WebKit::WebString& text); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // true if we want to enable selection of trailing whitespaces | 379 // true if we want to enable selection of trailing whitespaces |
| 374 bool select_trailing_whitespace_enabled_; | 380 bool select_trailing_whitespace_enabled_; |
| 375 | 381 |
| 376 // true if we should block any redirects | 382 // true if we should block any redirects |
| 377 bool block_redirects_; | 383 bool block_redirects_; |
| 378 | 384 |
| 379 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); | 385 DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); |
| 380 }; | 386 }; |
| 381 | 387 |
| 382 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ | 388 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_WEBVIEW_DELEGATE_H_ |
| OLD | NEW |