Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: pdf/out_of_process_instance.h

Issue 2349753003: Improve linearized pdf load/show time. (Closed)
Patch Set: Fix review issues. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 std::vector<SearchStringResult>* results) override; 127 std::vector<SearchStringResult>* results) override;
128 void DocumentPaintOccurred() override; 128 void DocumentPaintOccurred() override;
129 void DocumentLoadComplete(int page_count) override; 129 void DocumentLoadComplete(int page_count) override;
130 void DocumentLoadFailed() override; 130 void DocumentLoadFailed() override;
131 pp::Instance* GetPluginInstance() override; 131 pp::Instance* GetPluginInstance() override;
132 void DocumentHasUnsupportedFeature(const std::string& feature) override; 132 void DocumentHasUnsupportedFeature(const std::string& feature) override;
133 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override; 133 void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override;
134 void FormTextFieldFocusChange(bool in_focus) override; 134 void FormTextFieldFocusChange(bool in_focus) override;
135 bool IsPrintPreview() override; 135 bool IsPrintPreview() override;
136 uint32_t GetBackgroundColor() override; 136 uint32_t GetBackgroundColor() override;
137 void CancelBrowserDownload() override;
137 void IsSelectingChanged(bool is_selecting) override; 138 void IsSelectingChanged(bool is_selecting) override;
138 139
139 // PreviewModeClient::Client implementation. 140 // PreviewModeClient::Client implementation.
140 void PreviewDocumentLoadComplete() override; 141 void PreviewDocumentLoadComplete() override;
141 void PreviewDocumentLoadFailed() override; 142 void PreviewDocumentLoadFailed() override;
142 143
143 // Helper functions for implementing PPP_PDF. 144 // Helper functions for implementing PPP_PDF.
144 void RotateClockwise(); 145 void RotateClockwise();
145 void RotateCounterclockwise(); 146 void RotateCounterclockwise();
146 147
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 ACCESSIBILITY_STATE_PENDING, // Enabled but waiting for doc to load. 363 ACCESSIBILITY_STATE_PENDING, // Enabled but waiting for doc to load.
363 ACCESSIBILITY_STATE_LOADED 364 ACCESSIBILITY_STATE_LOADED
364 } accessibility_state_; 365 } accessibility_state_;
365 366
366 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance); 367 DISALLOW_COPY_AND_ASSIGN(OutOfProcessInstance);
367 }; 368 };
368 369
369 } // namespace chrome_pdf 370 } // namespace chrome_pdf
370 371
371 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 372 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698