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

Side by Side Diff: components/plugins/renderer/webview_plugin.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 void RestoreTitleText(); 82 void RestoreTitleText();
83 83
84 // WebPlugin methods: 84 // WebPlugin methods:
85 blink::WebPluginContainer* container() const override; 85 blink::WebPluginContainer* container() const override;
86 bool initialize(blink::WebPluginContainer*) override; 86 bool initialize(blink::WebPluginContainer*) override;
87 void destroy() override; 87 void destroy() override;
88 88
89 v8::Local<v8::Object> v8ScriptableObject(v8::Isolate* isolate) override; 89 v8::Local<v8::Object> v8ScriptableObject(v8::Isolate* isolate) override;
90 90
91 void layoutIfNeeded() override; 91 void updateAllLifecyclePhases() override;
92 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override; 92 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override;
93 93
94 // Coordinates are relative to the containing window. 94 // Coordinates are relative to the containing window.
95 void updateGeometry(const blink::WebRect& window_rect, 95 void updateGeometry(const blink::WebRect& window_rect,
96 const blink::WebRect& clip_rect, 96 const blink::WebRect& clip_rect,
97 const blink::WebRect& unobscured_rect, 97 const blink::WebRect& unobscured_rect,
98 const blink::WebVector<blink::WebRect>& cut_outs_rects, 98 const blink::WebVector<blink::WebRect>& cut_outs_rects,
99 bool is_visible) override; 99 bool is_visible) override;
100 100
101 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override; 101 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 std::list<std::string> data_; 175 std::list<std::string> data_;
176 scoped_ptr<blink::WebURLError> error_; 176 scoped_ptr<blink::WebURLError> error_;
177 blink::WebString old_title_; 177 blink::WebString old_title_;
178 bool finished_loading_; 178 bool finished_loading_;
179 bool focused_; 179 bool focused_;
180 bool is_painting_; 180 bool is_painting_;
181 bool is_resizing_; 181 bool is_resizing_;
182 }; 182 };
183 183
184 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 184 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698