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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
459 virtual bool handleCurrentKeyboardEvent(); | 459 virtual bool handleCurrentKeyboardEvent(); |
460 virtual void spellCheck(const WebKit::WebString& text, | 460 virtual void spellCheck(const WebKit::WebString& text, |
461 int& offset, | 461 int& offset, |
462 int& length); | 462 int& length); |
463 virtual WebKit::WebString autoCorrectWord( | 463 virtual WebKit::WebString autoCorrectWord( |
464 const WebKit::WebString& misspelled_word); | 464 const WebKit::WebString& misspelled_word); |
465 virtual void showSpellingUI(bool show); | 465 virtual void showSpellingUI(bool show); |
466 virtual bool isShowingSpellingUI(); | 466 virtual bool isShowingSpellingUI(); |
467 virtual void updateSpellingUIWithMisspelledWord( | 467 virtual void updateSpellingUIWithMisspelledWord( |
468 const WebKit::WebString& word); | 468 const WebKit::WebString& word); |
469 virtual void continuousSpellCheckingEnabledStateChanged(); | |
469 virtual bool runFileChooser( | 470 virtual bool runFileChooser( |
470 const WebKit::WebFileChooserParams& params, | 471 const WebKit::WebFileChooserParams& params, |
471 WebKit::WebFileChooserCompletion* chooser_completion); | 472 WebKit::WebFileChooserCompletion* chooser_completion); |
472 virtual void runModalAlertDialog(WebKit::WebFrame* frame, | 473 virtual void runModalAlertDialog(WebKit::WebFrame* frame, |
473 const WebKit::WebString& message); | 474 const WebKit::WebString& message); |
474 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, | 475 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, |
475 const WebKit::WebString& message); | 476 const WebKit::WebString& message); |
476 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, | 477 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, |
477 const WebKit::WebString& message, | 478 const WebKit::WebString& message, |
478 const WebKit::WebString& default_value, | 479 const WebKit::WebString& default_value, |
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1088 | 1089 |
1089 GURL GetAlternateErrorPageURL(const GURL& failed_url, | 1090 GURL GetAlternateErrorPageURL(const GURL& failed_url, |
1090 ErrorPageType error_type); | 1091 ErrorPageType error_type); |
1091 | 1092 |
1092 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, | 1093 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, |
1093 int template_resource_id) const; | 1094 int template_resource_id) const; |
1094 | 1095 |
1095 // Locates a sub frame with given xpath | 1096 // Locates a sub frame with given xpath |
1096 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; | 1097 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; |
1097 | 1098 |
1099 bool GetFocusedNode(WebKit::WebNode& node) const; | |
brettw
2011/01/13 05:59:55
Never use refs for out params. This should probabl
sail
2011/01/13 23:38:15
Done.
| |
1100 | |
1098 DOMUIBindings* GetDOMUIBindings(); | 1101 DOMUIBindings* GetDOMUIBindings(); |
1099 | 1102 |
1100 ExternalHostBindings* GetExternalHostBindings(); | 1103 ExternalHostBindings* GetExternalHostBindings(); |
1101 | 1104 |
1102 // Should only be called if this object wraps a PluginDocument. | 1105 // Should only be called if this object wraps a PluginDocument. |
1103 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); | 1106 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); |
1104 | 1107 |
1105 // Decodes a data: URL image or returns an empty image in case of failure. | 1108 // Decodes a data: URL image or returns an empty image in case of failure. |
1106 SkBitmap ImageFromDataUrl(const GURL&) const; | 1109 SkBitmap ImageFromDataUrl(const GURL&) const; |
1107 | 1110 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1144 #if defined(OS_LINUX) | 1147 #if defined(OS_LINUX) |
1145 void UpdateFontRenderingFromRendererPrefs(); | 1148 void UpdateFontRenderingFromRendererPrefs(); |
1146 #else | 1149 #else |
1147 void UpdateFontRenderingFromRendererPrefs() {} | 1150 void UpdateFontRenderingFromRendererPrefs() {} |
1148 #endif | 1151 #endif |
1149 | 1152 |
1150 // Update the target url and tell the browser that the target URL has changed. | 1153 // Update the target url and tell the browser that the target URL has changed. |
1151 // If |url| is empty, show |fallback_url|. | 1154 // If |url| is empty, show |fallback_url|. |
1152 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); | 1155 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); |
1153 | 1156 |
1157 void UpdateToggleSpellCheckCommandState(); | |
brettw
2011/01/13 05:59:55
Comment?
| |
1158 | |
1154 // Helper to add an error message to the root frame's console. | 1159 // Helper to add an error message to the root frame's console. |
1155 void AddErrorToRootConsole(const string16& message); | 1160 void AddErrorToRootConsole(const string16& message); |
1156 | 1161 |
1157 // --------------------------------------------------------------------------- | 1162 // --------------------------------------------------------------------------- |
1158 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put | 1163 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put |
1159 // it in the same order in the .cc file as it was in the header. | 1164 // it in the same order in the .cc file as it was in the header. |
1160 // --------------------------------------------------------------------------- | 1165 // --------------------------------------------------------------------------- |
1161 | 1166 |
1162 // Settings ------------------------------------------------------------------ | 1167 // Settings ------------------------------------------------------------------ |
1163 | 1168 |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1516 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1521 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1517 // sections rather than throwing it randomly at the end. If you're adding a | 1522 // sections rather than throwing it randomly at the end. If you're adding a |
1518 // bunch of stuff, you should probably create a helper class and put your | 1523 // bunch of stuff, you should probably create a helper class and put your |
1519 // data and methods on that to avoid bloating RenderView more. | 1524 // data and methods on that to avoid bloating RenderView more. |
1520 // --------------------------------------------------------------------------- | 1525 // --------------------------------------------------------------------------- |
1521 | 1526 |
1522 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1527 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1523 }; | 1528 }; |
1524 | 1529 |
1525 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1530 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |