| 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 PDF_OUT_OF_PROCESS_INSTANCE_H_ | 5 #ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_ |
| 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ | 6 #define PDF_OUT_OF_PROCESS_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void LoadPreviewUrl(const std::string& url); | 162 void LoadPreviewUrl(const std::string& url); |
| 163 void LoadUrlInternal(const std::string& url, pp::URLLoader* loader, | 163 void LoadUrlInternal(const std::string& url, pp::URLLoader* loader, |
| 164 void (OutOfProcessInstance::* method)(int32_t)); | 164 void (OutOfProcessInstance::* method)(int32_t)); |
| 165 | 165 |
| 166 // Creates a URL loader and allows it to access all urls, i.e. not just the | 166 // Creates a URL loader and allows it to access all urls, i.e. not just the |
| 167 // frame's origin. | 167 // frame's origin. |
| 168 pp::URLLoader CreateURLLoaderInternal(); | 168 pp::URLLoader CreateURLLoaderInternal(); |
| 169 | 169 |
| 170 void FormDidOpen(int32_t result); | 170 void FormDidOpen(int32_t result); |
| 171 | 171 |
| 172 std::string GetLocalizedString(PP_ResourceString id); | |
| 173 | |
| 174 void UserMetricsRecordAction(const std::string& action); | 172 void UserMetricsRecordAction(const std::string& action); |
| 175 | 173 |
| 176 enum DocumentLoadState { | 174 enum DocumentLoadState { |
| 177 LOAD_STATE_LOADING, | 175 LOAD_STATE_LOADING, |
| 178 LOAD_STATE_COMPLETE, | 176 LOAD_STATE_COMPLETE, |
| 179 LOAD_STATE_FAILED, | 177 LOAD_STATE_FAILED, |
| 180 }; | 178 }; |
| 181 | 179 |
| 182 // Set new zoom scale. | 180 // Set new zoom scale. |
| 183 void SetZoom(double scale); | 181 void SetZoom(double scale); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // The blank space above the first page of the document reserved for the | 338 // The blank space above the first page of the document reserved for the |
| 341 // toolbar. | 339 // toolbar. |
| 342 int top_toolbar_height_; | 340 int top_toolbar_height_; |
| 343 | 341 |
| 344 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); | 342 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); |
| 345 }; | 343 }; |
| 346 | 344 |
| 347 } // namespace chrome_pdf | 345 } // namespace chrome_pdf |
| 348 | 346 |
| 349 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ | 347 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ |
| OLD | NEW |