OLD | NEW |
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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 void MediaPlayerActionAt(const gfx::Point& location, | 321 void MediaPlayerActionAt(const gfx::Point& location, |
322 const WebKit::WebMediaPlayerAction& action); | 322 const WebKit::WebMediaPlayerAction& action); |
323 | 323 |
324 // Notifies the renderer that the context menu has closed. | 324 // Notifies the renderer that the context menu has closed. |
325 void ContextMenuClosed( | 325 void ContextMenuClosed( |
326 const webkit_glue::CustomContextMenuContext& custom_context); | 326 const webkit_glue::CustomContextMenuContext& custom_context); |
327 | 327 |
328 // Prints the node that's under the context menu. | 328 // Prints the node that's under the context menu. |
329 void PrintNodeUnderContextMenu(); | 329 void PrintNodeUnderContextMenu(); |
330 | 330 |
| 331 // Triggers printing of the preview PDF. |
| 332 void PrintForPrintPreview(); |
| 333 |
331 // Copies the image at the specified point. | 334 // Copies the image at the specified point. |
332 void CopyImageAt(int x, int y); | 335 void CopyImageAt(int x, int y); |
333 | 336 |
334 // Notifies the renderer that a a drag operation that it started has ended, | 337 // Notifies the renderer that a a drag operation that it started has ended, |
335 // either in a drop or by being cancelled. | 338 // either in a drop or by being cancelled. |
336 void DragSourceEndedAt( | 339 void DragSourceEndedAt( |
337 int client_x, int client_y, int screen_x, int screen_y, | 340 int client_x, int client_y, int screen_x, int screen_y, |
338 WebKit::WebDragOperation operation); | 341 WebKit::WebDragOperation operation); |
339 | 342 |
340 // Notifies the renderer that a drag and drop operation is in progress, with | 343 // Notifies the renderer that a drag and drop operation is in progress, with |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 // The termination status of the last render view that terminated. | 733 // The termination status of the last render view that terminated. |
731 base::TerminationStatus render_view_termination_status_; | 734 base::TerminationStatus render_view_termination_status_; |
732 | 735 |
733 // The enabled/disabled states of various commands. | 736 // The enabled/disabled states of various commands. |
734 std::map<RenderViewCommand, CommandState> command_states_; | 737 std::map<RenderViewCommand, CommandState> command_states_; |
735 | 738 |
736 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 739 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
737 }; | 740 }; |
738 | 741 |
739 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 742 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |