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

Side by Side Diff: content/browser/renderer_host/render_view_host.h

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed review comments. Created 9 years, 9 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) 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 #include "content/browser/renderer_host/render_widget_host.h" 21 #include "content/browser/renderer_host/render_widget_host.h"
22 #include "net/base/load_states.h" 22 #include "net/base/load_states.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
27 #include "webkit/glue/webaccessibility.h" 27 #include "webkit/glue/webaccessibility.h"
28 #include "webkit/glue/window_open_disposition.h" 28 #include "webkit/glue/window_open_disposition.h"
29 29
30 class ChildProcessSecurityPolicy; 30 class ChildProcessSecurityPolicy;
31 class DictionaryValue;
31 class FilePath; 32 class FilePath;
32 class GURL; 33 class GURL;
33 class ListValue; 34 class ListValue;
34 class RenderViewHostDelegate; 35 class RenderViewHostDelegate;
35 class SessionStorageNamespace; 36 class SessionStorageNamespace;
36 class SiteInstance; 37 class SiteInstance;
37 class SkBitmap; 38 class SkBitmap;
38 class ViewMsg_Navigate; 39 class ViewMsg_Navigate;
39 struct ContentSettings; 40 struct ContentSettings;
40 struct ContextMenuParams; 41 struct ContextMenuParams;
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void MediaPlayerActionAt(const gfx::Point& location, 322 void MediaPlayerActionAt(const gfx::Point& location,
322 const WebKit::WebMediaPlayerAction& action); 323 const WebKit::WebMediaPlayerAction& action);
323 324
324 // Notifies the renderer that the context menu has closed. 325 // Notifies the renderer that the context menu has closed.
325 void ContextMenuClosed( 326 void ContextMenuClosed(
326 const webkit_glue::CustomContextMenuContext& custom_context); 327 const webkit_glue::CustomContextMenuContext& custom_context);
327 328
328 // Prints the node that's under the context menu. 329 // Prints the node that's under the context menu.
329 void PrintNodeUnderContextMenu(); 330 void PrintNodeUnderContextMenu();
330 331
331 // Triggers printing of the preview PDF. 332 // Triggers printing of the preview PDF. |job_settings| dictionary contains
332 void PrintForPrintPreview(); 333 // new print job settings information.
334 void PrintForPrintPreview(const DictionaryValue& job_settings);
333 335
334 // Copies the image at the specified point. 336 // Copies the image at the specified point.
335 void CopyImageAt(int x, int y); 337 void CopyImageAt(int x, int y);
336 338
337 // Notifies the renderer that a a drag operation that it started has ended, 339 // Notifies the renderer that a a drag operation that it started has ended,
338 // either in a drop or by being cancelled. 340 // either in a drop or by being cancelled.
339 void DragSourceEndedAt( 341 void DragSourceEndedAt(
340 int client_x, int client_y, int screen_x, int screen_y, 342 int client_x, int client_y, int screen_x, int screen_y,
341 WebKit::WebDragOperation operation); 343 WebKit::WebDragOperation operation);
342 344
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 // The termination status of the last render view that terminated. 734 // The termination status of the last render view that terminated.
733 base::TerminationStatus render_view_termination_status_; 735 base::TerminationStatus render_view_termination_status_;
734 736
735 // The enabled/disabled states of various commands. 737 // The enabled/disabled states of various commands.
736 std::map<RenderViewCommand, CommandState> command_states_; 738 std::map<RenderViewCommand, CommandState> command_states_;
737 739
738 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 740 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
739 }; 741 };
740 742
741 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 743 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698