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 CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 bool case_sensitive, | 73 bool case_sensitive, |
74 int identifier); | 74 int identifier); |
75 virtual void selectFindResult(bool forward); | 75 virtual void selectFindResult(bool forward); |
76 virtual void stopFind(); | 76 virtual void stopFind(); |
77 virtual bool supportsPaginatedPrint() OVERRIDE; | 77 virtual bool supportsPaginatedPrint() OVERRIDE; |
78 virtual bool isPrintScalingDisabled() OVERRIDE; | 78 virtual bool isPrintScalingDisabled() OVERRIDE; |
79 | 79 |
80 virtual int printBegin(const blink::WebPrintParams& print_params) OVERRIDE; | 80 virtual int printBegin(const blink::WebPrintParams& print_params) OVERRIDE; |
81 virtual bool printPage(int page_number, blink::WebCanvas* canvas) OVERRIDE; | 81 virtual bool printPage(int page_number, blink::WebCanvas* canvas) OVERRIDE; |
82 virtual void printEnd() OVERRIDE; | 82 virtual void printEnd() OVERRIDE; |
83 virtual bool getPrintPresetOptionsFromDocument( | |
84 blink::WebPrintPresetOptions& preset_options); | |
dmichael (off chromium)
2014/09/22 18:11:51
OVERRIDE? Or does that have to wait for the blink
Nikhil
2014/09/23 10:32:28
I think OVERRIDE isn't required. Please see linkAt
| |
83 | 85 |
84 virtual bool canRotateView() OVERRIDE; | 86 virtual bool canRotateView() OVERRIDE; |
85 virtual void rotateView(RotationType type) OVERRIDE; | 87 virtual void rotateView(RotationType type) OVERRIDE; |
86 virtual bool isPlaceholder() OVERRIDE; | 88 virtual bool isPlaceholder() OVERRIDE; |
87 | 89 |
88 private: | 90 private: |
89 friend class base::DeleteHelper<PepperWebPluginImpl>; | 91 friend class base::DeleteHelper<PepperWebPluginImpl>; |
90 | 92 |
91 virtual ~PepperWebPluginImpl(); | 93 virtual ~PepperWebPluginImpl(); |
92 struct InitData; | 94 struct InitData; |
93 | 95 |
94 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. | 96 scoped_ptr<InitData> init_data_; // Cleared upon successful initialization. |
95 // True if the instance represents the entire document in a frame instead of | 97 // True if the instance represents the entire document in a frame instead of |
96 // being an embedded resource. | 98 // being an embedded resource. |
97 bool full_frame_; | 99 bool full_frame_; |
98 scoped_refptr<PepperPluginInstanceImpl> instance_; | 100 scoped_refptr<PepperPluginInstanceImpl> instance_; |
99 gfx::Rect plugin_rect_; | 101 gfx::Rect plugin_rect_; |
100 PP_Var instance_object_; | 102 PP_Var instance_object_; |
101 blink::WebPluginContainer* container_; | 103 blink::WebPluginContainer* container_; |
102 | 104 |
103 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); | 105 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); |
104 }; | 106 }; |
105 | 107 |
106 } // namespace content | 108 } // namespace content |
107 | 109 |
108 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ | 110 #endif // CONTENT_RENDERER_PEPPER_PPEPPER_WEBPLUGIN_IMPL_H_ |
OLD | NEW |