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

Side by Side Diff: pdf/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 | « no previous file | pdf/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_INSTANCE_H_ 5 #ifndef PDF_INSTANCE_H_
6 #define PDF_INSTANCE_H_ 6 #define PDF_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 bool case_sensitive, 167 bool case_sensitive,
168 std::vector<SearchStringResult>* results) override; 168 std::vector<SearchStringResult>* results) override;
169 void DocumentPaintOccurred() override; 169 void DocumentPaintOccurred() override;
170 void DocumentLoadComplete(int page_count) override; 170 void DocumentLoadComplete(int page_count) override;
171 void DocumentLoadFailed() override; 171 void DocumentLoadFailed() override;
172 pp::Instance* GetPluginInstance() override; 172 pp::Instance* GetPluginInstance() override;
173 void DocumentHasUnsupportedFeature(const std::string& feature) override; 173 void DocumentHasUnsupportedFeature(const std::string& feature) override;
174 void DocumentLoadProgress(uint32 available, uint32 doc_size) override; 174 void DocumentLoadProgress(uint32 available, uint32 doc_size) override;
175 void FormTextFieldFocusChange(bool in_focus) override; 175 void FormTextFieldFocusChange(bool in_focus) override;
176 bool IsPrintPreview() override; 176 bool IsPrintPreview() override;
177 uint32 GetBackgroundColor() override;
177 178
178 // ControlOwner implementation. 179 // ControlOwner implementation.
179 void OnEvent(uint32 control_id, uint32 event_id, void* data) override; 180 void OnEvent(uint32 control_id, uint32 event_id, void* data) override;
180 void Invalidate(uint32 control_id, const pp::Rect& rc) override; 181 void Invalidate(uint32 control_id, const pp::Rect& rc) override;
181 uint32 ScheduleTimer(uint32 control_id, uint32 timeout_ms) override; 182 uint32 ScheduleTimer(uint32 control_id, uint32 timeout_ms) override;
182 void SetEventCapture(uint32 control_id, bool set_capture) override; 183 void SetEventCapture(uint32 control_id, bool set_capture) override;
183 void SetCursor(uint32 control_id, PP_CursorType_Dev cursor_type) override; 184 void SetCursor(uint32 control_id, PP_CursorType_Dev cursor_type) override;
184 pp::Instance* GetInstance() override; 185 pp::Instance* GetInstance() override;
185 186
186 bool dont_paint() const { return dont_paint_; } 187 bool dont_paint() const { return dont_paint_; }
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 const std::vector<pp::Var>& args, 530 const std::vector<pp::Var>& args,
530 pp::Var* exception); 531 pp::Var* exception);
531 532
532 private: 533 private:
533 Instance* instance_; 534 Instance* instance_;
534 }; 535 };
535 536
536 } // namespace chrome_pdf 537 } // namespace chrome_pdf
537 538
538 #endif // PDF_INSTANCE_H_ 539 #endif // PDF_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698