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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 class CloudPrintFlowHandler : public WebUIMessageHandler, | 103 class CloudPrintFlowHandler : public WebUIMessageHandler, |
104 public content::NotificationObserver { | 104 public content::NotificationObserver { |
105 public: | 105 public: |
106 CloudPrintFlowHandler(const FilePath& path_to_file, | 106 CloudPrintFlowHandler(const FilePath& path_to_file, |
107 const string16& print_job_title, | 107 const string16& print_job_title, |
108 const string16& print_ticket, | 108 const string16& print_ticket, |
109 const std::string& file_type); | 109 const std::string& file_type); |
110 virtual ~CloudPrintFlowHandler(); | 110 virtual ~CloudPrintFlowHandler(); |
111 | 111 |
112 // WebUIMessageHandler implementation. | 112 // WebUIMessageHandler implementation. |
113 virtual void RegisterMessages(); | 113 virtual void RegisterMessages() OVERRIDE; |
114 | 114 |
115 // content::NotificationObserver implementation. | 115 // content::NotificationObserver implementation. |
116 virtual void Observe(int type, | 116 virtual void Observe(int type, |
117 const content::NotificationSource& source, | 117 const content::NotificationSource& source, |
118 const content::NotificationDetails& details); | 118 const content::NotificationDetails& details) OVERRIDE; |
119 | 119 |
120 // Callbacks from the page. | 120 // Callbacks from the page. |
121 void HandleShowDebugger(const base::ListValue* args); | 121 void HandleShowDebugger(const base::ListValue* args); |
122 void HandleSendPrintData(const base::ListValue* args); | 122 void HandleSendPrintData(const base::ListValue* args); |
123 void HandleSetPageParameters(const base::ListValue* args); | 123 void HandleSetPageParameters(const base::ListValue* args); |
124 | 124 |
125 virtual void SetDialogDelegate(CloudPrintHtmlDialogDelegate *delegate); | 125 virtual void SetDialogDelegate(CloudPrintHtmlDialogDelegate *delegate); |
126 void StoreDialogClientSize() const; | 126 void StoreDialogClientSize() const; |
127 | 127 |
128 private: | 128 private: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 const string16& print_ticket, | 204 const string16& print_ticket, |
205 const std::string& file_type, | 205 const std::string& file_type, |
206 bool modal, | 206 bool modal, |
207 bool delete_on_close); | 207 bool delete_on_close); |
208 | 208 |
209 void Delete(const FilePath& path_to_file); | 209 void Delete(const FilePath& path_to_file); |
210 | 210 |
211 } // namespace internal_cloud_print_helpers | 211 } // namespace internal_cloud_print_helpers |
212 | 212 |
213 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ | 213 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_INTERNAL_H_ |
OLD | NEW |