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

Side by Side Diff: content/renderer/pepper/pepper_webplugin_impl.h

Issue 1774653002: Decouple scheduling animation of webview plugins from layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 28 matching lines...) Expand all
39 scoped_ptr<PluginInstanceThrottlerImpl> throttler); 39 scoped_ptr<PluginInstanceThrottlerImpl> throttler);
40 40
41 PepperPluginInstanceImpl* instance() { return instance_.get(); } 41 PepperPluginInstanceImpl* instance() { return instance_.get(); }
42 42
43 // blink::WebPlugin implementation. 43 // blink::WebPlugin implementation.
44 blink::WebPluginContainer* container() const override; 44 blink::WebPluginContainer* container() const override;
45 bool initialize(blink::WebPluginContainer* container) override; 45 bool initialize(blink::WebPluginContainer* container) override;
46 void destroy() override; 46 void destroy() override;
47 v8::Local<v8::Object> v8ScriptableObject(v8::Isolate* isolate) override; 47 v8::Local<v8::Object> v8ScriptableObject(v8::Isolate* isolate) override;
48 bool getFormValue(blink::WebString& value) override; 48 bool getFormValue(blink::WebString& value) override;
49 void layoutIfNeeded() override {} 49 void updateAllLifecyclePhases() override {}
50 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override; 50 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override;
51 void updateGeometry(const blink::WebRect& window_rect, 51 void updateGeometry(const blink::WebRect& window_rect,
52 const blink::WebRect& clip_rect, 52 const blink::WebRect& clip_rect,
53 const blink::WebRect& unobscured_rect, 53 const blink::WebRect& unobscured_rect,
54 const blink::WebVector<blink::WebRect>& cut_outs_rects, 54 const blink::WebVector<blink::WebRect>& cut_outs_rects,
55 bool is_visible) override; 55 bool is_visible) override;
56 void updateFocus(bool focused, blink::WebFocusType focus_type) override; 56 void updateFocus(bool focused, blink::WebFocusType focus_type) override;
57 void updateVisibility(bool visible) override; 57 void updateVisibility(bool visible) override;
58 bool acceptsInputEvents() override; 58 bool acceptsInputEvents() override;
59 blink::WebInputEventResult handleInputEvent( 59 blink::WebInputEventResult handleInputEvent(
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 PP_Var instance_object_; 101 PP_Var instance_object_;
102 blink::WebPluginContainer* container_; 102 blink::WebPluginContainer* container_;
103 base::WeakPtrFactory<PepperWebPluginImpl> weak_factory_; 103 base::WeakPtrFactory<PepperWebPluginImpl> weak_factory_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl); 105 DISALLOW_COPY_AND_ASSIGN(PepperWebPluginImpl);
106 }; 106 };
107 107
108 } // namespace content 108 } // namespace content
109 109
110 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_ 110 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBPLUGIN_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698