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

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

Issue 150062: [chromium-reviews] Add getLanguage function to tabs extension (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 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 <string> 8 #include <string>
9 #include <queue> 9 #include <queue>
10 #include <vector> 10 #include <vector>
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 void OnPaste(); 471 void OnPaste();
472 void OnReplace(const std::wstring& text); 472 void OnReplace(const std::wstring& text);
473 void OnToggleSpellCheck(); 473 void OnToggleSpellCheck();
474 void OnDelete(); 474 void OnDelete();
475 void OnSelectAll(); 475 void OnSelectAll();
476 void OnCopyImageAt(int x, int y); 476 void OnCopyImageAt(int x, int y);
477 void OnExecuteEditCommand(const std::string& name, const std::string& value); 477 void OnExecuteEditCommand(const std::string& name, const std::string& value);
478 void OnSetupDevToolsClient(); 478 void OnSetupDevToolsClient();
479 void OnCancelDownload(int32 download_id); 479 void OnCancelDownload(int32 download_id);
480 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); 480 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
481 void OnDeterminePageText();
481 void OnZoom(int function); 482 void OnZoom(int function);
482 void OnInsertText(const string16& text); 483 void OnInsertText(const string16& text);
483 void OnSetPageEncoding(const std::wstring& encoding_name); 484 void OnSetPageEncoding(const std::wstring& encoding_name);
484 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); 485 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
485 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( 486 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
486 const std::vector<GURL>& links, 487 const std::vector<GURL>& links,
487 const std::vector<FilePath>& local_paths, 488 const std::vector<FilePath>& local_paths,
488 const FilePath& local_directory_name); 489 const FilePath& local_directory_name);
489 void OnUploadFileRequest(const ViewMsg_UploadFile_Params& p); 490 void OnUploadFileRequest(const ViewMsg_UploadFile_Params& p);
490 void OnFormFill(const FormData& form); 491 void OnFormFill(const FormData& form);
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 // Cache the preferred width of the page in order to prevent sending the IPC 772 // Cache the preferred width of the page in order to prevent sending the IPC
772 // when layout() recomputes it but it doesn't actually change. 773 // when layout() recomputes it but it doesn't actually change.
773 int preferred_width_; 774 int preferred_width_;
774 775
775 // If true, we send IPC messages when the preferred width changes. 776 // If true, we send IPC messages when the preferred width changes.
776 bool send_preferred_width_changes_; 777 bool send_preferred_width_changes_;
777 778
778 // The text selection the last time DidChangeSelection got called. 779 // The text selection the last time DidChangeSelection got called.
779 std::string last_selection_; 780 std::string last_selection_;
780 781
782 // Set to true if request for capturing page text has been made.
783 bool determine_page_text_after_loading_stops_;
784
781 // Holds state pertaining to a navigation that we initiated. This is held by 785 // Holds state pertaining to a navigation that we initiated. This is held by
782 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ 786 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_
783 // as a temporary holder for the state until the WebDataSource corresponding 787 // as a temporary holder for the state until the WebDataSource corresponding
784 // to the new navigation is created. See DidCreateDataSource. 788 // to the new navigation is created. See DidCreateDataSource.
785 scoped_ptr<NavigationState> pending_navigation_state_; 789 scoped_ptr<NavigationState> pending_navigation_state_;
786 790
787 // PrintWebViewHelper handles printing. Note that this object is constructed 791 // PrintWebViewHelper handles printing. Note that this object is constructed
788 // when printing for the first time but only destroyed with the RenderView. 792 // when printing for the first time but only destroyed with the RenderView.
789 scoped_ptr<PrintWebViewHelper> print_helper_; 793 scoped_ptr<PrintWebViewHelper> print_helper_;
790 794
791 RendererPreferences renderer_preferences_; 795 RendererPreferences renderer_preferences_;
792 796
793 DISALLOW_COPY_AND_ASSIGN(RenderView); 797 DISALLOW_COPY_AND_ASSIGN(RenderView);
794 }; 798 };
795 799
796 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 800 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698