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

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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 virtual bool handleCurrentKeyboardEvent(); 437 virtual bool handleCurrentKeyboardEvent();
438 virtual void spellCheck(const WebKit::WebString& text, 438 virtual void spellCheck(const WebKit::WebString& text,
439 int& offset, 439 int& offset,
440 int& length); 440 int& length);
441 virtual WebKit::WebString autoCorrectWord( 441 virtual WebKit::WebString autoCorrectWord(
442 const WebKit::WebString& misspelled_word); 442 const WebKit::WebString& misspelled_word);
443 virtual void showSpellingUI(bool show); 443 virtual void showSpellingUI(bool show);
444 virtual bool isShowingSpellingUI(); 444 virtual bool isShowingSpellingUI();
445 virtual void updateSpellingUIWithMisspelledWord( 445 virtual void updateSpellingUIWithMisspelledWord(
446 const WebKit::WebString& word); 446 const WebKit::WebString& word);
447 virtual void continuousSpellCheckingEnabledStateChanged();
brettw 2011/01/09 00:06:06 What do you key off of in WebKit to call this func
sail 2011/01/11 18:45:51 Currently I'm only calling this in EditorClientImp
447 virtual bool runFileChooser( 448 virtual bool runFileChooser(
448 const WebKit::WebFileChooserParams& params, 449 const WebKit::WebFileChooserParams& params,
449 WebKit::WebFileChooserCompletion* chooser_completion); 450 WebKit::WebFileChooserCompletion* chooser_completion);
450 virtual void runModalAlertDialog(WebKit::WebFrame* frame, 451 virtual void runModalAlertDialog(WebKit::WebFrame* frame,
451 const WebKit::WebString& message); 452 const WebKit::WebString& message);
452 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, 453 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame,
453 const WebKit::WebString& message); 454 const WebKit::WebString& message);
454 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, 455 virtual bool runModalPromptDialog(WebKit::WebFrame* frame,
455 const WebKit::WebString& message, 456 const WebKit::WebString& message,
456 const WebKit::WebString& default_value, 457 const WebKit::WebString& default_value,
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 1076
1076 GURL GetAlternateErrorPageURL(const GURL& failed_url, 1077 GURL GetAlternateErrorPageURL(const GURL& failed_url,
1077 ErrorPageType error_type); 1078 ErrorPageType error_type);
1078 1079
1079 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings, 1080 std::string GetAltHTMLForTemplate(const DictionaryValue& error_strings,
1080 int template_resource_id) const; 1081 int template_resource_id) const;
1081 1082
1082 // Locates a sub frame with given xpath 1083 // Locates a sub frame with given xpath
1083 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; 1084 WebKit::WebFrame* GetChildFrame(const std::wstring& frame_xpath) const;
1084 1085
1086 bool GetFocusedNode(WebKit::WebNode& node) const;
1087
1085 DOMUIBindings* GetDOMUIBindings(); 1088 DOMUIBindings* GetDOMUIBindings();
1086 1089
1087 ExternalHostBindings* GetExternalHostBindings(); 1090 ExternalHostBindings* GetExternalHostBindings();
1088 1091
1089 // Should only be called if this object wraps a PluginDocument. 1092 // Should only be called if this object wraps a PluginDocument.
1090 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); 1093 WebKit::WebPlugin* GetWebPluginFromPluginDocument();
1091 1094
1092 // Decodes a data: URL image or returns an empty image in case of failure. 1095 // Decodes a data: URL image or returns an empty image in case of failure.
1093 SkBitmap ImageFromDataUrl(const GURL&) const; 1096 SkBitmap ImageFromDataUrl(const GURL&) const;
1094 1097
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 #if defined(OS_LINUX) 1134 #if defined(OS_LINUX)
1132 void UpdateFontRenderingFromRendererPrefs(); 1135 void UpdateFontRenderingFromRendererPrefs();
1133 #else 1136 #else
1134 void UpdateFontRenderingFromRendererPrefs() {} 1137 void UpdateFontRenderingFromRendererPrefs() {}
1135 #endif 1138 #endif
1136 1139
1137 // Update the target url and tell the browser that the target URL has changed. 1140 // Update the target url and tell the browser that the target URL has changed.
1138 // If |url| is empty, show |fallback_url|. 1141 // If |url| is empty, show |fallback_url|.
1139 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); 1142 void UpdateTargetURL(const GURL& url, const GURL& fallback_url);
1140 1143
1144 void UpdateToggleSpellCheckCommandState();
1145
1141 // Helper to add an error message to the root frame's console. 1146 // Helper to add an error message to the root frame's console.
1142 void AddErrorToRootConsole(const string16& message); 1147 void AddErrorToRootConsole(const string16& message);
1143 1148
1144 // --------------------------------------------------------------------------- 1149 // ---------------------------------------------------------------------------
1145 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put 1150 // ADDING NEW FUNCTIONS? Please keep private functions alphabetized and put
1146 // it in the same order in the .cc file as it was in the header. 1151 // it in the same order in the .cc file as it was in the header.
1147 // --------------------------------------------------------------------------- 1152 // ---------------------------------------------------------------------------
1148 1153
1149 // Settings ------------------------------------------------------------------ 1154 // Settings ------------------------------------------------------------------
1150 1155
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1513 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1509 // sections rather than throwing it randomly at the end. If you're adding a 1514 // sections rather than throwing it randomly at the end. If you're adding a
1510 // bunch of stuff, you should probably create a helper class and put your 1515 // bunch of stuff, you should probably create a helper class and put your
1511 // data and methods on that to avoid bloating RenderView more. 1516 // data and methods on that to avoid bloating RenderView more.
1512 // --------------------------------------------------------------------------- 1517 // ---------------------------------------------------------------------------
1513 1518
1514 DISALLOW_COPY_AND_ASSIGN(RenderView); 1519 DISALLOW_COPY_AND_ASSIGN(RenderView);
1515 }; 1520 };
1516 1521
1517 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1522 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698