OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 void OnPagesReadyForPreview(int fd_in_browser); | 730 void OnPagesReadyForPreview(int fd_in_browser); |
731 #endif | 731 #endif |
732 | 732 |
733 #if defined(OS_MACOSX) | 733 #if defined(OS_MACOSX) |
734 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 734 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
735 #endif | 735 #endif |
736 | 736 |
737 private: | 737 private: |
738 friend class TestRenderViewHost; | 738 friend class TestRenderViewHost; |
739 | 739 |
| 740 // Get/Create print preview tab. |
| 741 TabContents* GetPrintPreviewTab(); |
| 742 |
740 // The SiteInstance associated with this RenderViewHost. All pages drawn | 743 // The SiteInstance associated with this RenderViewHost. All pages drawn |
741 // in this RenderViewHost are part of this SiteInstance. Should not change | 744 // in this RenderViewHost are part of this SiteInstance. Should not change |
742 // over time. | 745 // over time. |
743 scoped_refptr<SiteInstance> instance_; | 746 scoped_refptr<SiteInstance> instance_; |
744 | 747 |
745 // Our delegate, which wants to know about changes in the RenderView. | 748 // Our delegate, which wants to know about changes in the RenderView. |
746 RenderViewHostDelegate* delegate_; | 749 RenderViewHostDelegate* delegate_; |
747 | 750 |
748 // true if we are currently waiting for a response for drag context | 751 // true if we are currently waiting for a response for drag context |
749 // information. | 752 // information. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 // Whether the accessibility tree should be saved, for unit testing. | 818 // Whether the accessibility tree should be saved, for unit testing. |
816 bool save_accessibility_tree_for_testing_; | 819 bool save_accessibility_tree_for_testing_; |
817 | 820 |
818 // The most recently received accessibility tree - for unit testing only. | 821 // The most recently received accessibility tree - for unit testing only. |
819 webkit_glue::WebAccessibility accessibility_tree_; | 822 webkit_glue::WebAccessibility accessibility_tree_; |
820 | 823 |
821 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 824 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
822 }; | 825 }; |
823 | 826 |
824 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 827 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
OLD | NEW |