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

Side by Side Diff: components/plugins/renderer/webview_plugin.h

Issue 1023783008: Migrate plugins to support new 'unobscured' rect interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 'git cl format' Created 5 years, 8 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 | components/plugins/renderer/webview_plugin.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 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 virtual NPObject* scriptableObject(); 75 virtual NPObject* scriptableObject();
76 virtual struct _NPP* pluginNPP(); 76 virtual struct _NPP* pluginNPP();
77 77
78 virtual bool getFormValue(blink::WebString& value); 78 virtual bool getFormValue(blink::WebString& value);
79 79
80 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect); 80 virtual void paint(blink::WebCanvas* canvas, const blink::WebRect& rect);
81 81
82 // Coordinates are relative to the containing window. 82 // Coordinates are relative to the containing window.
83 virtual void updateGeometry( 83 virtual void updateGeometry(
84 const blink::WebRect& frame_rect, 84 const blink::WebRect& window_rect,
85 const blink::WebRect& clip_rect, 85 const blink::WebRect& clip_rect,
86 const blink::WebVector<blink::WebRect>& cut_out_rects, 86 const blink::WebRect& unobscured_rect,
87 const blink::WebVector<blink::WebRect>& cut_outs_rects,
87 bool is_visible); 88 bool is_visible);
88 89
89 virtual void updateFocus(bool foucsed, blink::WebFocusType focus_type); 90 virtual void updateFocus(bool foucsed, blink::WebFocusType focus_type);
90 virtual void updateVisibility(bool) {} 91 virtual void updateVisibility(bool) {}
91 92
92 virtual bool acceptsInputEvents(); 93 virtual bool acceptsInputEvents();
93 virtual bool handleInputEvent(const blink::WebInputEvent& event, 94 virtual bool handleInputEvent(const blink::WebInputEvent& event,
94 blink::WebCursorInfo& cursor_info); 95 blink::WebCursorInfo& cursor_info);
95 96
96 virtual void didReceiveResponse(const blink::WebURLResponse& response); 97 virtual void didReceiveResponse(const blink::WebURLResponse& response);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 blink::WebURLResponse response_; 161 blink::WebURLResponse response_;
161 std::list<std::string> data_; 162 std::list<std::string> data_;
162 bool finished_loading_; 163 bool finished_loading_;
163 scoped_ptr<blink::WebURLError> error_; 164 scoped_ptr<blink::WebURLError> error_;
164 blink::WebString old_title_; 165 blink::WebString old_title_;
165 bool focused_; 166 bool focused_;
166 }; 167 };
167 168
168 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 169 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698