| 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_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const base::WeakPtr<Delegate>& delegate, | 64 const base::WeakPtr<Delegate>& delegate, |
| 65 gfx::NativeWindow parent_window); | 65 gfx::NativeWindow parent_window); |
| 66 | 66 |
| 67 // Focuses the dialog. This is useful in cases where the dialog has been | 67 // Focuses the dialog. This is useful in cases where the dialog has been |
| 68 // obscured by a browser window. | 68 // obscured by a browser window. |
| 69 void Focus(); | 69 void Focus(); |
| 70 | 70 |
| 71 // HtmlDialogUIDelegate implementation. | 71 // HtmlDialogUIDelegate implementation. |
| 72 virtual GURL GetDialogContentURL() const OVERRIDE; | 72 virtual GURL GetDialogContentURL() const OVERRIDE; |
| 73 virtual void GetWebUIMessageHandlers( | 73 virtual void GetWebUIMessageHandlers( |
| 74 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; | 74 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; |
| 75 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 75 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
| 76 virtual std::string GetDialogArgs() const OVERRIDE; | 76 virtual std::string GetDialogArgs() const OVERRIDE; |
| 77 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 77 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
| 78 virtual void OnCloseContents(content::WebContents* source, | 78 virtual void OnCloseContents(content::WebContents* source, |
| 79 bool* out_close_dialog) OVERRIDE; | 79 bool* out_close_dialog) OVERRIDE; |
| 80 virtual string16 GetDialogTitle() const OVERRIDE; | 80 virtual string16 GetDialogTitle() const OVERRIDE; |
| 81 virtual bool IsDialogModal() const OVERRIDE; | 81 virtual bool IsDialogModal() const OVERRIDE; |
| 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 82 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
| 83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; | 83 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; |
| 84 | 84 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool setup_done_; | 142 bool setup_done_; |
| 143 | 143 |
| 144 // Handle to the ServiceProcessControl which talks to the service process. | 144 // Handle to the ServiceProcessControl which talks to the service process. |
| 145 ServiceProcessControl* process_control_; | 145 ServiceProcessControl* process_control_; |
| 146 base::WeakPtr<Delegate> delegate_; | 146 base::WeakPtr<Delegate> delegate_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); | 148 DISALLOW_COPY_AND_ASSIGN(CloudPrintSetupFlow); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ | 151 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_SETUP_FLOW_H_ |
| OLD | NEW |