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

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

Issue 226093007: Convert Chrome usages of WebFrame to WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void didFailLoadingFrameRequest(const blink::WebURL& url, 103 virtual void didFailLoadingFrameRequest(const blink::WebURL& url,
104 void* notify_data, 104 void* notify_data,
105 const blink::WebURLError& error) {} 105 const blink::WebURLError& error) {}
106 106
107 // WebViewClient methods: 107 // WebViewClient methods:
108 virtual bool acceptsLoadDrops(); 108 virtual bool acceptsLoadDrops();
109 109
110 virtual void setToolTipText(const blink::WebString&, 110 virtual void setToolTipText(const blink::WebString&,
111 blink::WebTextDirection); 111 blink::WebTextDirection);
112 112
113 virtual void startDragging(blink::WebFrame* frame, 113 virtual void startDragging(blink::WebLocalFrame* frame,
114 const blink::WebDragData& drag_data, 114 const blink::WebDragData& drag_data,
115 blink::WebDragOperationsMask mask, 115 blink::WebDragOperationsMask mask,
116 const blink::WebImage& image, 116 const blink::WebImage& image,
117 const blink::WebPoint& point); 117 const blink::WebPoint& point);
118 118
119 // WebWidgetClient methods: 119 // WebWidgetClient methods:
120 virtual void didInvalidateRect(const blink::WebRect&); 120 virtual void didInvalidateRect(const blink::WebRect&);
121 virtual void didChangeCursor(const blink::WebCursorInfo& cursor); 121 virtual void didChangeCursor(const blink::WebCursorInfo& cursor);
122 122
123 // WebFrameClient methods: 123 // WebFrameClient methods:
124 virtual void didClearWindowObject(blink::WebFrame* frame, int world_id); 124 virtual void didClearWindowObject(blink::WebLocalFrame* frame, int world_id);
125 125
126 // This method is defined in WebPlugin as well as in WebFrameClient, but with 126 // This method is defined in WebPlugin as well as in WebFrameClient, but with
127 // different parameters. We only care about implementing the WebPlugin 127 // different parameters. We only care about implementing the WebPlugin
128 // version, so we implement this method and call the default in WebFrameClient 128 // version, so we implement this method and call the default in WebFrameClient
129 // (which does nothing) to correctly overload it. 129 // (which does nothing) to correctly overload it.
130 virtual void didReceiveResponse(blink::WebFrame* frame, 130 virtual void didReceiveResponse(blink::WebLocalFrame* frame,
131 unsigned identifier, 131 unsigned identifier,
132 const blink::WebURLResponse& response); 132 const blink::WebURLResponse& response);
133 133
134 private: 134 private:
135 friend class base::DeleteHelper<WebViewPlugin>; 135 friend class base::DeleteHelper<WebViewPlugin>;
136 virtual ~WebViewPlugin(); 136 virtual ~WebViewPlugin();
137 137
138 // Manages its own lifetime. 138 // Manages its own lifetime.
139 Delegate* delegate_; 139 Delegate* delegate_;
140 140
(...skipping 11 matching lines...) Expand all
152 152
153 blink::WebURLResponse response_; 153 blink::WebURLResponse response_;
154 std::list<std::string> data_; 154 std::list<std::string> data_;
155 bool finished_loading_; 155 bool finished_loading_;
156 scoped_ptr<blink::WebURLError> error_; 156 scoped_ptr<blink::WebURLError> error_;
157 blink::WebString old_title_; 157 blink::WebString old_title_;
158 bool focused_; 158 bool focused_;
159 }; 159 };
160 160
161 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 161 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/password_generation_agent.cc ('k') | components/plugins/renderer/webview_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698