| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |