| 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_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 const std::string& frame_charset); | 205 const std::string& frame_charset); |
| 206 virtual void UpdateInspectorSettings(const std::wstring& raw_settings); | 206 virtual void UpdateInspectorSettings(const std::wstring& raw_settings); |
| 207 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); | 207 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); |
| 208 virtual void ReportFindInPageMatchCount(int count, int request_id, | 208 virtual void ReportFindInPageMatchCount(int count, int request_id, |
| 209 bool final_update); | 209 bool final_update); |
| 210 virtual void ReportFindInPageSelection(int request_id, | 210 virtual void ReportFindInPageSelection(int request_id, |
| 211 int active_match_ordinal, | 211 int active_match_ordinal, |
| 212 const WebKit::WebRect& selection); | 212 const WebKit::WebRect& selection); |
| 213 virtual bool WasOpenedByUserGesture() const; | 213 virtual bool WasOpenedByUserGesture() const; |
| 214 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); | 214 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); |
| 215 virtual void SpellCheck(const std::wstring& word, | |
| 216 int* misspell_location, | |
| 217 int* misspell_length); | |
| 218 virtual std::wstring GetAutoCorrectWord(const std::wstring& word); | |
| 219 virtual void UpdateSpellingUIWithMisspelledWord(const std::wstring& word); | |
| 220 virtual void ShowSpellingUI(bool show); | |
| 221 virtual void UserMetricsRecordAction(const std::wstring& action); | 215 virtual void UserMetricsRecordAction(const std::wstring& action); |
| 222 virtual void DnsPrefetch(const std::vector<std::string>& host_names); | 216 virtual void DnsPrefetch(const std::vector<std::string>& host_names); |
| 223 virtual bool HandleCurrentKeyboardEvent(); | 217 virtual bool HandleCurrentKeyboardEvent(); |
| 224 | 218 |
| 225 // WebKit::WebViewClient | 219 // WebKit::WebViewClient |
| 226 virtual WebView* createView(WebKit::WebFrame* creator); | 220 virtual WebView* createView(WebKit::WebFrame* creator); |
| 227 virtual WebKit::WebWidget* createPopupMenu(bool activatable); | 221 virtual WebKit::WebWidget* createPopupMenu(bool activatable); |
| 228 virtual WebKit::WebWidget* createPopupMenu( | 222 virtual WebKit::WebWidget* createPopupMenu( |
| 229 const WebKit::WebPopupMenuInfo& info); | 223 const WebKit::WebPopupMenuInfo& info); |
| 230 virtual void didAddMessageToConsole( | 224 virtual void didAddMessageToConsole( |
| (...skipping 17 matching lines...) Expand all Loading... |
| 248 virtual bool shouldApplyStyle( | 242 virtual bool shouldApplyStyle( |
| 249 const WebKit::WebString& style, const WebKit::WebRange& range); | 243 const WebKit::WebString& style, const WebKit::WebRange& range); |
| 250 virtual bool isSmartInsertDeleteEnabled(); | 244 virtual bool isSmartInsertDeleteEnabled(); |
| 251 virtual bool isSelectTrailingWhitespaceEnabled(); | 245 virtual bool isSelectTrailingWhitespaceEnabled(); |
| 252 virtual void setInputMethodEnabled(bool enabled); | 246 virtual void setInputMethodEnabled(bool enabled); |
| 253 virtual void didBeginEditing() {} | 247 virtual void didBeginEditing() {} |
| 254 virtual void didChangeSelection(bool is_selection_empty); | 248 virtual void didChangeSelection(bool is_selection_empty); |
| 255 virtual void didChangeContents() {} | 249 virtual void didChangeContents() {} |
| 256 virtual void didExecuteCommand(const WebKit::WebString& command_name); | 250 virtual void didExecuteCommand(const WebKit::WebString& command_name); |
| 257 virtual void didEndEditing() {} | 251 virtual void didEndEditing() {} |
| 252 virtual void spellCheck( |
| 253 const WebKit::WebString& text, int& offset, int& length); |
| 254 virtual WebKit::WebString autoCorrectWord( |
| 255 const WebKit::WebString& misspelled_word); |
| 256 virtual void updateSpellingUIWithMisspelledWord( |
| 257 const WebKit::WebString& word); |
| 258 virtual void runModalAlertDialog( | 258 virtual void runModalAlertDialog( |
| 259 WebKit::WebFrame* frame, const WebKit::WebString& message); | 259 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 260 virtual bool runModalConfirmDialog( | 260 virtual bool runModalConfirmDialog( |
| 261 WebKit::WebFrame* frame, const WebKit::WebString& message); | 261 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 262 virtual bool runModalPromptDialog( | 262 virtual bool runModalPromptDialog( |
| 263 WebKit::WebFrame* frame, const WebKit::WebString& message, | 263 WebKit::WebFrame* frame, const WebKit::WebString& message, |
| 264 const WebKit::WebString& default_value, WebKit::WebString* actual_value); | 264 const WebKit::WebString& default_value, WebKit::WebString* actual_value); |
| 265 virtual bool runModalBeforeUnloadDialog( | 265 virtual bool runModalBeforeUnloadDialog( |
| 266 WebKit::WebFrame* frame, const WebKit::WebString& message); | 266 WebKit::WebFrame* frame, const WebKit::WebString& message); |
| 267 virtual void setStatusText(const WebKit::WebString& text); | 267 virtual void setStatusText(const WebKit::WebString& text); |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 955 WebPreferences webkit_preferences_; | 955 WebPreferences webkit_preferences_; |
| 956 | 956 |
| 957 // Stores edit commands associated to the next key event. | 957 // Stores edit commands associated to the next key event. |
| 958 // Shall be cleared as soon as the next key event is processed. | 958 // Shall be cleared as soon as the next key event is processed. |
| 959 EditCommands edit_commands_; | 959 EditCommands edit_commands_; |
| 960 | 960 |
| 961 DISALLOW_COPY_AND_ASSIGN(RenderView); | 961 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 962 }; | 962 }; |
| 963 | 963 |
| 964 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 964 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |