| 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_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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual string16 GetDialogTitle() const OVERRIDE; | 175 virtual string16 GetDialogTitle() const OVERRIDE; |
| 176 virtual GURL GetDialogContentURL() const OVERRIDE; | 176 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 177 virtual void GetWebUIMessageHandlers( | 177 virtual void GetWebUIMessageHandlers( |
| 178 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 178 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 179 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 179 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 180 virtual std::string GetDialogArgs() const OVERRIDE; | 180 virtual std::string GetDialogArgs() const OVERRIDE; |
| 181 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 181 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 182 virtual void OnCloseContents(content::WebContents* source, | 182 virtual void OnCloseContents(content::WebContents* source, |
| 183 bool* out_close_dialog) OVERRIDE; | 183 bool* out_close_dialog) OVERRIDE; |
| 184 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 184 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 185 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 185 virtual bool HandleContextMenu( |
| 186 const content::ContextMenuParams& params) OVERRIDE; |
| 186 | 187 |
| 187 private: | 188 private: |
| 188 friend class ::CloudPrintHtmlDialogDelegateTest; | 189 friend class ::CloudPrintHtmlDialogDelegateTest; |
| 189 | 190 |
| 190 // For unit testing. | 191 // For unit testing. |
| 191 CloudPrintHtmlDialogDelegate(CloudPrintFlowHandler* flow_handler, | 192 CloudPrintHtmlDialogDelegate(CloudPrintFlowHandler* flow_handler, |
| 192 int width, int height, | 193 int width, int height, |
| 193 const std::string& json_arguments, | 194 const std::string& json_arguments, |
| 194 bool modal, | 195 bool modal, |
| 195 bool delete_on_close); | 196 bool delete_on_close); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 213 const std::string& file_type, | 214 const std::string& file_type, |
| 214 bool modal, | 215 bool modal, |
| 215 bool delete_on_close); | 216 bool delete_on_close); |
| 216 void CreateDialogSigninImpl(const base::Closure& callback); | 217 void CreateDialogSigninImpl(const base::Closure& callback); |
| 217 | 218 |
| 218 void Delete(const FilePath& path_to_file); | 219 void Delete(const FilePath& path_to_file); |
| 219 | 220 |
| 220 } // namespace internal_cloud_print_helpers | 221 } // namespace internal_cloud_print_helpers |
| 221 | 222 |
| 222 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ | 223 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ |
| OLD | NEW |