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

Side by Side Diff: pdf/out_of_process_instance.h

Issue 874663006: Make the PDF viewer background color a property of the instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « pdf/instance.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool case_sensitive, 129 bool case_sensitive,
130 std::vector<SearchStringResult>* results) override; 130 std::vector<SearchStringResult>* results) override;
131 void DocumentPaintOccurred() override; 131 void DocumentPaintOccurred() override;
132 void DocumentLoadComplete(int page_count) override; 132 void DocumentLoadComplete(int page_count) override;
133 void DocumentLoadFailed() override; 133 void DocumentLoadFailed() override;
134 pp::Instance* GetPluginInstance() override; 134 pp::Instance* GetPluginInstance() override;
135 void DocumentHasUnsupportedFeature(const std::string& feature) override; 135 void DocumentHasUnsupportedFeature(const std::string& feature) override;
136 void DocumentLoadProgress(uint32 available, uint32 doc_size) override; 136 void DocumentLoadProgress(uint32 available, uint32 doc_size) override;
137 void FormTextFieldFocusChange(bool in_focus) override; 137 void FormTextFieldFocusChange(bool in_focus) override;
138 bool IsPrintPreview() override; 138 bool IsPrintPreview() override;
139 uint32 GetBackgroundColor() override;
139 140
140 // PreviewModeClient::Client implementation. 141 // PreviewModeClient::Client implementation.
141 void PreviewDocumentLoadComplete() override; 142 void PreviewDocumentLoadComplete() override;
142 void PreviewDocumentLoadFailed() override; 143 void PreviewDocumentLoadFailed() override;
143 144
144 // Helper functions for implementing PPP_PDF. 145 // Helper functions for implementing PPP_PDF.
145 void RotateClockwise(); 146 void RotateClockwise();
146 void RotateCounterclockwise(); 147 void RotateCounterclockwise();
147 148
148 private: 149 private:
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 277
277 std::string url_; 278 std::string url_;
278 279
279 // Used for submitting forms. 280 // Used for submitting forms.
280 pp::CompletionCallbackFactory<OutOfProcessInstance> form_factory_; 281 pp::CompletionCallbackFactory<OutOfProcessInstance> form_factory_;
281 pp::URLLoader form_loader_; 282 pp::URLLoader form_loader_;
282 283
283 // Used for printing without re-entrancy issues. 284 // Used for printing without re-entrancy issues.
284 pp::CompletionCallbackFactory<OutOfProcessInstance> print_callback_factory_; 285 pp::CompletionCallbackFactory<OutOfProcessInstance> print_callback_factory_;
285 286
287 // The callback for receiving the password from the page.
288 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_;
289
286 // True if we haven't painted the plugin viewport yet. 290 // True if we haven't painted the plugin viewport yet.
287 bool first_paint_; 291 bool first_paint_;
288 292
289 DocumentLoadState document_load_state_; 293 DocumentLoadState document_load_state_;
290 DocumentLoadState preview_document_load_state_; 294 DocumentLoadState preview_document_load_state_;
291 295
292 // A UMA resource for histogram reporting. 296 // A UMA resource for histogram reporting.
293 pp::UMAPrivate uma_; 297 pp::UMAPrivate uma_;
294 298
295 // Used so that we only tell the browser once about an unsupported feature, to 299 // Used so that we only tell the browser once about an unsupported feature, to
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // If true, this means we told the RenderView that we're starting a network 336 // If true, this means we told the RenderView that we're starting a network
333 // request so that it can start the throbber. We will tell it again once the 337 // request so that it can start the throbber. We will tell it again once the
334 // document finishes loading. 338 // document finishes loading.
335 bool did_call_start_loading_; 339 bool did_call_start_loading_;
336 340
337 // If this is true, then don't scroll the plugin in response to DidChangeView 341 // If this is true, then don't scroll the plugin in response to DidChangeView
338 // messages. This will be true when the extension page is in the process of 342 // messages. This will be true when the extension page is in the process of
339 // zooming the plugin so that flickering doesn't occur while zooming. 343 // zooming the plugin so that flickering doesn't occur while zooming.
340 bool stop_scrolling_; 344 bool stop_scrolling_;
341 345
342 // The callback for receiving the password from the page. 346 // The background color of the PDF viewer.
343 scoped_ptr<pp::CompletionCallbackWithOutput<pp::Var> > password_callback_; 347 uint32 background_color_;
344 }; 348 };
345 349
346 } // namespace chrome_pdf 350 } // namespace chrome_pdf
347 351
348 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_ 352 #endif // PDF_OUT_OF_PROCESS_INSTANCE_H_
OLDNEW
« no previous file with comments | « pdf/instance.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698