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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 virtual void UpdateInspectorSettings(const std::wstring& raw_settings); | 315 virtual void UpdateInspectorSettings(const std::wstring& raw_settings); |
316 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); | 316 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate(); |
317 virtual void PasteFromSelectionClipboard(); | 317 virtual void PasteFromSelectionClipboard(); |
318 virtual void ReportFindInPageMatchCount(int count, int request_id, | 318 virtual void ReportFindInPageMatchCount(int count, int request_id, |
319 bool final_update); | 319 bool final_update); |
320 virtual void ReportFindInPageSelection(int request_id, | 320 virtual void ReportFindInPageSelection(int request_id, |
321 int active_match_ordinal, | 321 int active_match_ordinal, |
322 const WebKit::WebRect& selection); | 322 const WebKit::WebRect& selection); |
323 virtual bool WasOpenedByUserGesture() const; | 323 virtual bool WasOpenedByUserGesture() const; |
324 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); | 324 virtual void FocusAccessibilityObject(WebCore::AccessibilityObject* acc_obj); |
325 virtual void SpellCheck(const std::wstring& word, int* misspell_location, | 325 virtual void SpellCheck(const std::wstring& word, int tag, |
| 326 int* misspell_location, |
326 int* misspell_length); | 327 int* misspell_length); |
327 virtual std::wstring GetAutoCorrectWord(const std::wstring& word); | 328 virtual std::wstring GetAutoCorrectWord(const std::wstring& word, int tag); |
| 329 virtual void UpdateSpellingUIWithMisspelledWord(const std::wstring& word); |
| 330 virtual void ShowSpellingUI(bool show); |
| 331 virtual int SpellCheckerDocumentTag(); |
328 virtual void ScriptedPrint(WebKit::WebFrame* frame); | 332 virtual void ScriptedPrint(WebKit::WebFrame* frame); |
329 virtual void UserMetricsRecordAction(const std::wstring& action); | 333 virtual void UserMetricsRecordAction(const std::wstring& action); |
330 virtual void DnsPrefetch(const std::vector<std::string>& host_names); | 334 virtual void DnsPrefetch(const std::vector<std::string>& host_names); |
331 | 335 |
332 // WebKit::WebWidgetClient | 336 // WebKit::WebWidgetClient |
333 // Most methods are handled by RenderWidget. | 337 // Most methods are handled by RenderWidget. |
334 virtual void show(WebKit::WebNavigationPolicy policy); | 338 virtual void show(WebKit::WebNavigationPolicy policy); |
335 virtual void closeWidgetSoon(); | 339 virtual void closeWidgetSoon(); |
336 virtual void runModal(); | 340 virtual void runModal(); |
337 | 341 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 const std::string& security_info); | 528 const std::string& security_info); |
525 void OnStopFinding(bool clear_selection); | 529 void OnStopFinding(bool clear_selection); |
526 void OnFindReplyAck(); | 530 void OnFindReplyAck(); |
527 void OnUpdateTargetURLAck(); | 531 void OnUpdateTargetURLAck(); |
528 void OnUndo(); | 532 void OnUndo(); |
529 void OnRedo(); | 533 void OnRedo(); |
530 void OnCut(); | 534 void OnCut(); |
531 void OnCopy(); | 535 void OnCopy(); |
532 void OnPaste(); | 536 void OnPaste(); |
533 void OnReplace(const std::wstring& text); | 537 void OnReplace(const std::wstring& text); |
| 538 void OnAdvanceToNextMisspelling(); |
| 539 void OnToggleSpellPanel(bool is_currently_visible); |
534 void OnToggleSpellCheck(); | 540 void OnToggleSpellCheck(); |
535 void OnDelete(); | 541 void OnDelete(); |
536 void OnSelectAll(); | 542 void OnSelectAll(); |
537 void OnCopyImageAt(int x, int y); | 543 void OnCopyImageAt(int x, int y); |
538 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 544 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
539 void OnSetupDevToolsClient(); | 545 void OnSetupDevToolsClient(); |
540 void OnCancelDownload(int32 download_id); | 546 void OnCancelDownload(int32 download_id); |
541 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 547 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
542 void OnDeterminePageText(); | 548 void OnDeterminePageText(); |
543 void OnZoom(int function); | 549 void OnZoom(int function); |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 // Type of view attached with RenderView, it could be INVALID, TAB_CONTENTS, | 896 // Type of view attached with RenderView, it could be INVALID, TAB_CONTENTS, |
891 // EXTENSION_TOOLSTRIP, EXTENSION_BACKGROUND_PAGE, DEV_TOOLS_UI. | 897 // EXTENSION_TOOLSTRIP, EXTENSION_BACKGROUND_PAGE, DEV_TOOLS_UI. |
892 ViewType::Type view_type_; | 898 ViewType::Type view_type_; |
893 | 899 |
894 // Id number of browser window which RenderView is attached to. | 900 // Id number of browser window which RenderView is attached to. |
895 int browser_window_id_; | 901 int browser_window_id_; |
896 | 902 |
897 // page id for the last navigation sent to the browser. | 903 // page id for the last navigation sent to the browser. |
898 int32 last_top_level_navigation_page_id_; | 904 int32 last_top_level_navigation_page_id_; |
899 | 905 |
| 906 // True if the current RenderView has been assigned a document tag. |
| 907 bool has_spell_checker_document_tag_; |
| 908 |
| 909 // Document tag for this RenderView. |
| 910 int document_tag_; |
| 911 |
900 // The settings this render view initialized WebKit with. | 912 // The settings this render view initialized WebKit with. |
901 WebPreferences webkit_preferences_; | 913 WebPreferences webkit_preferences_; |
902 | 914 |
903 DISALLOW_COPY_AND_ASSIGN(RenderView); | 915 DISALLOW_COPY_AND_ASSIGN(RenderView); |
904 }; | 916 }; |
905 | 917 |
906 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 918 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |