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

Side by Side Diff: chrome/browser/printing/print_dialog_cloud_internal.h

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 4 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 CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 public: 146 public:
147 CloudPrintHtmlDialogDelegate(const FilePath& path_to_file, 147 CloudPrintHtmlDialogDelegate(const FilePath& path_to_file,
148 int width, int height, 148 int width, int height,
149 const std::string& json_arguments, 149 const std::string& json_arguments,
150 const string16& print_job_title, 150 const string16& print_job_title,
151 const std::string& file_type, 151 const std::string& file_type,
152 bool modal); 152 bool modal);
153 virtual ~CloudPrintHtmlDialogDelegate(); 153 virtual ~CloudPrintHtmlDialogDelegate();
154 154
155 // HTMLDialogUIDelegate implementation: 155 // HTMLDialogUIDelegate implementation:
156 virtual bool IsDialogModal() const; 156 virtual bool IsDialogModal() const OVERRIDE;
157 virtual std::wstring GetDialogTitle() const; 157 virtual string16 GetDialogTitle() const OVERRIDE;
158 virtual GURL GetDialogContentURL() const; 158 virtual GURL GetDialogContentURL() const OVERRIDE;
159 virtual void GetWebUIMessageHandlers( 159 virtual void GetWebUIMessageHandlers(
160 std::vector<WebUIMessageHandler*>* handlers) const; 160 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
161 virtual void GetDialogSize(gfx::Size* size) const; 161 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
162 virtual std::string GetDialogArgs() const; 162 virtual std::string GetDialogArgs() const OVERRIDE;
163 virtual void OnDialogClosed(const std::string& json_retval); 163 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
164 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog); 164 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog)
165 virtual bool ShouldShowDialogTitle() const; 165 OVERRIDE;
166 virtual bool HandleContextMenu(const ContextMenuParams& params); 166 virtual bool ShouldShowDialogTitle() const OVERRIDE;
167 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
167 168
168 private: 169 private:
169 friend class ::CloudPrintHtmlDialogDelegateTest; 170 friend class ::CloudPrintHtmlDialogDelegateTest;
170 171
171 // For unit testing. 172 // For unit testing.
172 CloudPrintHtmlDialogDelegate(CloudPrintFlowHandler* flow_handler, 173 CloudPrintHtmlDialogDelegate(CloudPrintFlowHandler* flow_handler,
173 int width, int height, 174 int width, int height,
174 const std::string& json_arguments, 175 const std::string& json_arguments,
175 bool modal); 176 bool modal);
176 void Init(int width, int height, const std::string& json_arguments); 177 void Init(int width, int height, const std::string& json_arguments);
(...skipping 12 matching lines...) Expand all
189 void CreateDialogImpl(const FilePath& path_to_file, 190 void CreateDialogImpl(const FilePath& path_to_file,
190 const string16& print_job_title, 191 const string16& print_job_title,
191 const std::string& file_type, 192 const std::string& file_type,
192 bool modal); 193 bool modal);
193 194
194 void Delete(const FilePath& path_to_file); 195 void Delete(const FilePath& path_to_file);
195 196
196 } // namespace internal_cloud_print_helpers 197 } // namespace internal_cloud_print_helpers
197 198
198 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ 199 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_dialog_cloud.cc ('k') | chrome/browser/printing/print_dialog_cloud_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698