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

Side by Side Diff: pdf/instance.h

Issue 631683002: Replacing the OVERRIDE with override in /src/pdf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | pdf/out_of_process_instance.h » ('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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 public PDFEngine::Client, 55 public PDFEngine::Client,
56 public PreviewModeClient::Client, 56 public PreviewModeClient::Client,
57 public ControlOwner { 57 public ControlOwner {
58 public: 58 public:
59 explicit Instance(PP_Instance instance); 59 explicit Instance(PP_Instance instance);
60 virtual ~Instance(); 60 virtual ~Instance();
61 61
62 // pp::Instance implementation. 62 // pp::Instance implementation.
63 virtual bool Init(uint32_t argc, 63 virtual bool Init(uint32_t argc,
64 const char* argn[], 64 const char* argn[],
65 const char* argv[]) OVERRIDE; 65 const char* argv[]) override;
66 virtual bool HandleDocumentLoad(const pp::URLLoader& loader) OVERRIDE; 66 virtual bool HandleDocumentLoad(const pp::URLLoader& loader) override;
67 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 67 virtual bool HandleInputEvent(const pp::InputEvent& event) override;
68 virtual void DidChangeView(const pp::View& view) OVERRIDE; 68 virtual void DidChangeView(const pp::View& view) override;
69 virtual pp::Var GetInstanceObject() OVERRIDE; 69 virtual pp::Var GetInstanceObject() override;
70 70
71 // pp::Find_Private implementation. 71 // pp::Find_Private implementation.
72 virtual bool StartFind(const std::string& text, bool case_sensitive) OVERRIDE; 72 virtual bool StartFind(const std::string& text, bool case_sensitive) override;
73 virtual void SelectFindResult(bool forward) OVERRIDE; 73 virtual void SelectFindResult(bool forward) override;
74 virtual void StopFind() OVERRIDE; 74 virtual void StopFind() override;
75 75
76 // pp::PaintManager::Client implementation. 76 // pp::PaintManager::Client implementation.
77 virtual void OnPaint(const std::vector<pp::Rect>& paint_rects, 77 virtual void OnPaint(const std::vector<pp::Rect>& paint_rects,
78 std::vector<PaintManager::ReadyRect>* ready, 78 std::vector<PaintManager::ReadyRect>* ready,
79 std::vector<pp::Rect>* pending) OVERRIDE; 79 std::vector<pp::Rect>* pending) override;
80 80
81 // pp::Printing_Dev implementation. 81 // pp::Printing_Dev implementation.
82 virtual uint32_t QuerySupportedPrintOutputFormats() OVERRIDE; 82 virtual uint32_t QuerySupportedPrintOutputFormats() override;
83 virtual int32_t PrintBegin( 83 virtual int32_t PrintBegin(
84 const PP_PrintSettings_Dev& print_settings) OVERRIDE; 84 const PP_PrintSettings_Dev& print_settings) override;
85 virtual pp::Resource PrintPages( 85 virtual pp::Resource PrintPages(
86 const PP_PrintPageNumberRange_Dev* page_ranges, 86 const PP_PrintPageNumberRange_Dev* page_ranges,
87 uint32_t page_range_count) OVERRIDE; 87 uint32_t page_range_count) override;
88 virtual void PrintEnd() OVERRIDE; 88 virtual void PrintEnd() override;
89 virtual bool IsPrintScalingDisabled() OVERRIDE; 89 virtual bool IsPrintScalingDisabled() override;
90 90
91 // pp::Private implementation. 91 // pp::Private implementation.
92 virtual pp::Var GetLinkAtPosition(const pp::Point& point); 92 virtual pp::Var GetLinkAtPosition(const pp::Point& point);
93 93
94 // PPP_Selection_Dev implementation. 94 // PPP_Selection_Dev implementation.
95 virtual pp::Var GetSelectedText(bool html) OVERRIDE; 95 virtual pp::Var GetSelectedText(bool html) override;
96 96
97 // WidgetClient_Dev implementation. 97 // WidgetClient_Dev implementation.
98 virtual void InvalidateWidget(pp::Widget_Dev widget, 98 virtual void InvalidateWidget(pp::Widget_Dev widget,
99 const pp::Rect& dirty_rect) OVERRIDE; 99 const pp::Rect& dirty_rect) override;
100 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, 100 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar,
101 uint32_t value) OVERRIDE; 101 uint32_t value) override;
102 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar, 102 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
103 bool overlay) OVERRIDE; 103 bool overlay) override;
104 104
105 // pp::Zoom_Dev implementation. 105 // pp::Zoom_Dev implementation.
106 virtual void Zoom(double scale, bool text_only) OVERRIDE; 106 virtual void Zoom(double scale, bool text_only) override;
107 void ZoomChanged(double factor); // Override. 107 void ZoomChanged(double factor); // Override.
108 108
109 void FlushCallback(int32_t result); 109 void FlushCallback(int32_t result);
110 void DidOpen(int32_t result); 110 void DidOpen(int32_t result);
111 void DidOpenPreview(int32_t result); 111 void DidOpenPreview(int32_t result);
112 // If the given widget intersects the rectangle, paints it and adds the 112 // If the given widget intersects the rectangle, paints it and adds the
113 // rect to ready. 113 // rect to ready.
114 void PaintIfWidgetIntersects(pp::Widget_Dev* widget, 114 void PaintIfWidgetIntersects(pp::Widget_Dev* widget,
115 const pp::Rect& rect, 115 const pp::Rect& rect,
116 std::vector<PaintManager::ReadyRect>* ready, 116 std::vector<PaintManager::ReadyRect>* ready,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 bool dont_paint() const { return dont_paint_; } 183 bool dont_paint() const { return dont_paint_; }
184 void set_dont_paint(bool dont_paint) { dont_paint_ = dont_paint; } 184 void set_dont_paint(bool dont_paint) { dont_paint_ = dont_paint; }
185 185
186 // Called by PDFScriptableObject. 186 // Called by PDFScriptableObject.
187 bool HasScriptableMethod(const pp::Var& method, pp::Var* exception); 187 bool HasScriptableMethod(const pp::Var& method, pp::Var* exception);
188 pp::Var CallScriptableMethod(const pp::Var& method, 188 pp::Var CallScriptableMethod(const pp::Var& method,
189 const std::vector<pp::Var>& args, 189 const std::vector<pp::Var>& args,
190 pp::Var* exception); 190 pp::Var* exception);
191 191
192 // PreviewModeClient::Client implementation. 192 // PreviewModeClient::Client implementation.
193 virtual void PreviewDocumentLoadComplete() OVERRIDE; 193 virtual void PreviewDocumentLoadComplete() override;
194 virtual void PreviewDocumentLoadFailed() OVERRIDE; 194 virtual void PreviewDocumentLoadFailed() override;
195 195
196 // Helper functions for implementing PPP_PDF. 196 // Helper functions for implementing PPP_PDF.
197 void RotateClockwise(); 197 void RotateClockwise();
198 void RotateCounterclockwise(); 198 void RotateCounterclockwise();
199 199
200 private: 200 private:
201 // Called whenever the plugin geometry changes to update the location of the 201 // Called whenever the plugin geometry changes to update the location of the
202 // scrollbars, background parts, and notifies the pdf engine. 202 // scrollbars, background parts, and notifies the pdf engine.
203 void OnGeometryChanged(double old_zoom, float old_device_scale); 203 void OnGeometryChanged(double old_zoom, float old_device_scale);
204 204
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 const std::vector<pp::Var>& args, 522 const std::vector<pp::Var>& args,
523 pp::Var* exception); 523 pp::Var* exception);
524 524
525 private: 525 private:
526 Instance* instance_; 526 Instance* instance_;
527 }; 527 };
528 528
529 } // namespace chrome_pdf 529 } // namespace chrome_pdf
530 530
531 #endif // PDF_INSTANCE_H_ 531 #endif // PDF_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/out_of_process_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698