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

Side by Side Diff: chrome/browser/ui/webui/print_preview_ui.h

Issue 8761014: Print Preview: Set source modifiable bit for scripted printing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove logging statement Created 9 years 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 CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 int GetAvailableDraftPageCount(); 45 int GetAvailableDraftPageCount();
46 46
47 // Setters 47 // Setters
48 void SetInitiatorTabURLAndTitle(const std::string& initiator_url, 48 void SetInitiatorTabURLAndTitle(const std::string& initiator_url,
49 const string16& initiator_tab_title); 49 const string16& initiator_tab_title);
50 50
51 string16 initiator_tab_title() { return initiator_tab_title_; } 51 string16 initiator_tab_title() { return initiator_tab_title_; }
52 52
53 bool source_is_modifiable() { return source_is_modifiable_; } 53 bool source_is_modifiable() { return source_is_modifiable_; }
54 54
55 void SetSourceIsModifiable(bool source_is_modifiable); 55 // Set |source_is_modifiable_| for |print_preview_tab|'s PrintPreviewUI.
56 static void SetSourceIsModifiable(TabContentsWrapper* print_preview_tab,
57 bool source_is_modifiable);
56 58
57 // Determines whether to cancel a print preview request based on 59 // Determines whether to cancel a print preview request based on
58 // |preview_ui_addr| and |request_id|. 60 // |preview_ui_addr| and |request_id|.
59 // Can be called from any thread. 61 // Can be called from any thread.
60 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr, 62 static void GetCurrentPrintPreviewStatus(const std::string& preview_ui_addr,
61 int request_id, 63 int request_id,
62 bool* cancel); 64 bool* cancel);
63 65
64 // Returns a string to uniquely identify this PrintPreviewUI. 66 // Returns a string to uniquely identify this PrintPreviewUI.
65 std::string GetPrintPreviewUIAddress() const; 67 std::string GetPrintPreviewUIAddress() const;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // title. 164 // title.
163 string16 initiator_tab_title_; 165 string16 initiator_tab_title_;
164 166
165 // Keeps track of whether OnClosePrintPreviewTab() has been called or not. 167 // Keeps track of whether OnClosePrintPreviewTab() has been called or not.
166 bool tab_closed_; 168 bool tab_closed_;
167 169
168 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 170 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
169 }; 171 };
170 172
171 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_ 173 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698