| 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 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return false; | 150 return false; |
| 151 } | 151 } |
| 152 virtual bool isSmartInsertDeleteEnabled() { return false; } | 152 virtual bool isSmartInsertDeleteEnabled() { return false; } |
| 153 virtual bool isSelectTrailingWhitespaceEnabled() { return false; } | 153 virtual bool isSelectTrailingWhitespaceEnabled() { return false; } |
| 154 virtual void setInputMethodEnabled(bool enabled) {} | 154 virtual void setInputMethodEnabled(bool enabled) {} |
| 155 virtual void didBeginEditing() {} | 155 virtual void didBeginEditing() {} |
| 156 virtual void didChangeSelection(bool is_selection_empty) {} | 156 virtual void didChangeSelection(bool is_selection_empty) {} |
| 157 virtual void didChangeContents() {} | 157 virtual void didChangeContents() {} |
| 158 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} | 158 virtual void didExecuteCommand(const WebKit::WebString& command_name) {} |
| 159 virtual void didEndEditing() {} | 159 virtual void didEndEditing() {} |
| 160 virtual void spellCheck( |
| 161 const WebKit::WebString& text, int& offset, int& length) {} |
| 162 virtual WebKit::WebString autoCorrectWord( |
| 163 const WebKit::WebString& misspelled_word); |
| 164 virtual void updateSpellingUIWithMisspelledWord( |
| 165 const WebKit::WebString& word) {} |
| 160 virtual void runModalAlertDialog( | 166 virtual void runModalAlertDialog( |
| 161 WebKit::WebFrame* frame, const WebKit::WebString& message) {} | 167 WebKit::WebFrame* frame, const WebKit::WebString& message) {} |
| 162 virtual bool runModalConfirmDialog( | 168 virtual bool runModalConfirmDialog( |
| 163 WebKit::WebFrame* frame, const WebKit::WebString& message) { | 169 WebKit::WebFrame* frame, const WebKit::WebString& message) { |
| 164 return false; | 170 return false; |
| 165 } | 171 } |
| 166 virtual bool runModalPromptDialog( | 172 virtual bool runModalPromptDialog( |
| 167 WebKit::WebFrame* frame, const WebKit::WebString& message, | 173 WebKit::WebFrame* frame, const WebKit::WebString& message, |
| 168 const WebKit::WebString& default_value, | 174 const WebKit::WebString& default_value, |
| 169 WebKit::WebString* actual_value) { return false; } | 175 WebKit::WebString* actual_value) { return false; } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_ptr<WebView> print_web_view_; | 211 scoped_ptr<WebView> print_web_view_; |
| 206 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; | 212 scoped_ptr<ViewMsg_PrintPages_Params> print_pages_params_; |
| 207 base::Time last_cancelled_script_print_; | 213 base::Time last_cancelled_script_print_; |
| 208 int user_cancelled_scripted_print_count_; | 214 int user_cancelled_scripted_print_count_; |
| 209 | 215 |
| 210 private: | 216 private: |
| 211 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); | 217 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); |
| 212 }; | 218 }; |
| 213 | 219 |
| 214 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ | 220 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ |
| OLD | NEW |