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

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

Issue 125082: Add Print Selection support to Chrome. This change is fairly involved since ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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/renderer/print_web_view_helper.cc ('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) 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 const GURL& frame_url, 454 const GURL& frame_url,
455 std::wstring* result); 455 std::wstring* result);
456 456
457 // Adds search provider from the given OpenSearch description URL as a 457 // Adds search provider from the given OpenSearch description URL as a
458 // keyword search. 458 // keyword search.
459 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected); 459 void AddGURLSearchProvider(const GURL& osd_url, bool autodetected);
460 460
461 // RenderView IPC message handlers 461 // RenderView IPC message handlers
462 void SendThumbnail(); 462 void SendThumbnail();
463 void OnPrintPages(); 463 void OnPrintPages();
464 void OnPrintingDone(int document_cookie, bool success);
464 void OnNavigate(const ViewMsg_Navigate_Params& params); 465 void OnNavigate(const ViewMsg_Navigate_Params& params);
465 void OnStop(); 466 void OnStop();
466 void OnLoadAlternateHTMLText(const std::string& html_contents, 467 void OnLoadAlternateHTMLText(const std::string& html_contents,
467 bool new_navigation, 468 bool new_navigation,
468 const GURL& display_url, 469 const GURL& display_url,
469 const std::string& security_info); 470 const std::string& security_info);
470 void OnStopFinding(bool clear_selection); 471 void OnStopFinding(bool clear_selection);
471 void OnFindReplyAck(); 472 void OnFindReplyAck();
472 void OnUpdateTargetURLAck(); 473 void OnUpdateTargetURLAck();
473 void OnUndo(); 474 void OnUndo();
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 787
787 // The text selection the last time DidChangeSelection got called. 788 // The text selection the last time DidChangeSelection got called.
788 std::string last_selection_; 789 std::string last_selection_;
789 790
790 // Holds state pertaining to a navigation that we initiated. This is held by 791 // Holds state pertaining to a navigation that we initiated. This is held by
791 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ 792 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_
792 // as a temporary holder for the state until the WebDataSource corresponding 793 // as a temporary holder for the state until the WebDataSource corresponding
793 // to the new navigation is created. See DidCreateDataSource. 794 // to the new navigation is created. See DidCreateDataSource.
794 scoped_ptr<NavigationState> pending_navigation_state_; 795 scoped_ptr<NavigationState> pending_navigation_state_;
795 796
796 // Need for printing 797 // PrintWebViewHelper handles printing. Note that this object is constructed
797 scoped_ptr<PrintWebViewHelper> print_render_view_; 798 // when printing for the first time but only destroyed with the RenderView.
799 scoped_ptr<PrintWebViewHelper> print_helper_;
798 800
799 RendererPreferences renderer_preferences_; 801 RendererPreferences renderer_preferences_;
800 802
801 DISALLOW_COPY_AND_ASSIGN(RenderView); 803 DISALLOW_COPY_AND_ASSIGN(RenderView);
802 }; 804 };
803 805
804 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 806 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698