OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 // Setters | 56 // Setters |
57 void SetInitiatorTabURLAndTitle(const std::string& initiator_url, | 57 void SetInitiatorTabURLAndTitle(const std::string& initiator_url, |
58 const string16& initiator_tab_title); | 58 const string16& initiator_tab_title); |
59 | 59 |
60 string16 initiator_tab_title() { return initiator_tab_title_; } | 60 string16 initiator_tab_title() { return initiator_tab_title_; } |
61 | 61 |
62 bool source_is_modifiable() { return source_is_modifiable_; } | 62 bool source_is_modifiable() { return source_is_modifiable_; } |
63 | 63 |
64 // Set |source_is_modifiable_| for |print_preview_tab|'s PrintPreviewUI. | 64 // Set |source_is_modifiable_| for |print_preview_tab|'s PrintPreviewUI. |
65 static void SetSourceIsModifiable(TabContentsWrapper* print_preview_tab, | 65 static void SetSourceIsModifiable(TabContents* print_preview_tab, |
66 bool source_is_modifiable); | 66 bool source_is_modifiable); |
67 | 67 |
68 // Determines whether to cancel a print preview request based on | 68 // Determines whether to cancel a print preview request based on |
69 // |preview_ui_addr| and |request_id|. | 69 // |preview_ui_addr| and |request_id|. |
70 // Can be called from any thread. | 70 // Can be called from any thread. |
71 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, | 71 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, |
72 int request_id, | 72 int request_id, |
73 bool* cancel); | 73 bool* cancel); |
74 | 74 |
75 // Returns a string to uniquely identify this PrintPreviewUI. | 75 // Returns a string to uniquely identify this PrintPreviewUI. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // title. | 179 // title. |
180 string16 initiator_tab_title_; | 180 string16 initiator_tab_title_; |
181 | 181 |
182 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. | 182 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. |
183 bool tab_closed_; | 183 bool tab_closed_; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); | 185 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ | 188 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ |
OLD | NEW |