Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: chrome/renderer/render_view.h

Issue 6020017: Mac: Enable "Check Spelling While Typing" in Edit menu... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/render_view_commands.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 virtual bool handleCurrentKeyboardEvent(); 463 virtual bool handleCurrentKeyboardEvent();
464 virtual void spellCheck(const WebKit::WebString& text, 464 virtual void spellCheck(const WebKit::WebString& text,
465 int& offset, 465 int& offset,
466 int& length); 466 int& length);
467 virtual WebKit::WebString autoCorrectWord( 467 virtual WebKit::WebString autoCorrectWord(
468 const WebKit::WebString& misspelled_word); 468 const WebKit::WebString& misspelled_word);
469 virtual void showSpellingUI(bool show); 469 virtual void showSpellingUI(bool show);
470 virtual bool isShowingSpellingUI(); 470 virtual bool isShowingSpellingUI();
471 virtual void updateSpellingUIWithMisspelledWord( 471 virtual void updateSpellingUIWithMisspelledWord(
472 const WebKit::WebString& word); 472 const WebKit::WebString& word);
473 virtual void continuousSpellCheckingEnabledStateChanged();
473 virtual bool runFileChooser( 474 virtual bool runFileChooser(
474 const WebKit::WebFileChooserParams& params, 475 const WebKit::WebFileChooserParams& params,
475 WebKit::WebFileChooserCompletion* chooser_completion); 476 WebKit::WebFileChooserCompletion* chooser_completion);
476 virtual void runModalAlertDialog(WebKit::WebFrame* frame, 477 virtual void runModalAlertDialog(WebKit::WebFrame* frame,
477 const WebKit::WebString& message); 478 const WebKit::WebString& message);
478 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, 479 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame,
479 const WebKit::WebString& message); 480 const WebKit::WebString& message);
480 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, 481 virtual bool runModalPromptDialog(WebKit::WebFrame* frame,
481 const WebKit::WebString& message, 482 const WebKit::WebString& message,
482 const WebKit::WebString& default_value, 483 const WebKit::WebString& default_value,
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 1093
1093 GURL GetAlternateErrorPageURL(const GURL& failed_url, 1094 GURL GetAlternateErrorPageURL(const GURL& failed_url,
1094 ErrorPageType error_type); 1095 ErrorPageType error_type);
1095 1096
1096 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, 1097 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings,
1097 int template_resource_id) const; 1098 int template_resource_id) const;
1098 1099
1099 // Locates a sub frame with given xpath 1100 // Locates a sub frame with given xpath
1100 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; 1101 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const;
1101 1102
1103 WebKit::WebNode GetFocusedNode() const;
brettw 2011/01/18 19:17:01 Can you provide a comment that says the node will
sail 2011/01/18 20:46:48 Done.
1104
1102 DOMUIBindings* GetDOMUIBindings(); 1105 DOMUIBindings* GetDOMUIBindings();
1103 1106
1104 ExternalHostBindings* GetExternalHostBindings(); 1107 ExternalHostBindings* GetExternalHostBindings();
1105 1108
1106 // Should only be called if this object wraps a PluginDocument. 1109 // Should only be called if this object wraps a PluginDocument.
1107 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); 1110 WebKit::WebPlugin* GetWebPluginFromPluginDocument();
1108 1111
1109 // Decodes a data: URL image or returns an empty image in case of failure. 1112 // Decodes a data: URL image or returns an empty image in case of failure.
1110 SkBitmap ImageFromDataUrl(const GURL&) const; 1113 SkBitmap ImageFromDataUrl(const GURL&) const;
1111 1114
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1148 #if defined(OS_LINUX) 1151 #if defined(OS_LINUX)
1149 void UpdateFontRenderingFromRendererPrefs(); 1152 void UpdateFontRenderingFromRendererPrefs();
1150 #else 1153 #else
1151 void UpdateFontRenderingFromRendererPrefs() {} 1154 void UpdateFontRenderingFromRendererPrefs() {}
1152 #endif 1155 #endif
1153 1156
1154 // Update the target url and tell the browser that the target URL has changed. 1157 // Update the target url and tell the browser that the target URL has changed.
1155 // If |url| is empty, show |fallback_url|. 1158 // If |url| is empty, show |fallback_url|.
1156 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); 1159 void UpdateTargetURL(const GURL& url, const GURL& fallback_url);
1157 1160
1161 // Updates the state of the toggle spell check command in the browser process.
1162 void UpdateToggleSpellCheckCommandState();
1163
1158 // Helper to add an error message to the root frame's console. 1164 // Helper to add an error message to the root frame's console.
1159 void AddErrorToRootConsole(const string16& message); 1165 void AddErrorToRootConsole(const string16& message);
1160 1166
1161 // --------------------------------------------------------------------------- 1167 // ---------------------------------------------------------------------------
1162 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put 1168 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
1163 // it in the same order in the .cc file as it was in the header. 1169 // it in the same order in the .cc file as it was in the header.
1164 // --------------------------------------------------------------------------- 1170 // ---------------------------------------------------------------------------
1165 1171
1166 // Settings ------------------------------------------------------------------ 1172 // Settings ------------------------------------------------------------------
1167 1173
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1529 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1524 // sections rather than throwing it randomly at the end. If you're adding a 1530 // sections rather than throwing it randomly at the end. If you're adding a
1525 // bunch of stuff, you should probably create a helper class and put your 1531 // bunch of stuff, you should probably create a helper class and put your
1526 // data and methods on that to avoid bloating RenderView more. 1532 // data and methods on that to avoid bloating RenderView more.
1527 // --------------------------------------------------------------------------- 1533 // ---------------------------------------------------------------------------
1528 1534
1529 DISALLOW_COPY_AND_ASSIGN(RenderView); 1535 DISALLOW_COPY_AND_ASSIGN(RenderView);
1530 }; 1536 };
1531 1537
1532 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1538 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/common/render_view_commands.h ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698