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

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

Issue 292493002: Update didClearWindowObject API in webview plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
« 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // TODO(ojan): Remove this override and have this class use a non-null 119 // TODO(ojan): Remove this override and have this class use a non-null
120 // layerTreeView. 120 // layerTreeView.
121 virtual bool allowsBrokenNullLayerTreeView() const; 121 virtual bool allowsBrokenNullLayerTreeView() const;
122 122
123 // WebWidgetClient methods: 123 // WebWidgetClient methods:
124 virtual void didInvalidateRect(const blink::WebRect&); 124 virtual void didInvalidateRect(const blink::WebRect&);
125 virtual void didChangeCursor(const blink::WebCursorInfo& cursor); 125 virtual void didChangeCursor(const blink::WebCursorInfo& cursor);
126 126
127 // WebFrameClient methods: 127 // WebFrameClient methods:
128 virtual void didClearWindowObject(blink::WebLocalFrame* frame, int world_id); 128 virtual void didClearWindowObject(blink::WebLocalFrame* frame);
129 129
130 // This method is defined in WebPlugin as well as in WebFrameClient, but with 130 // This method is defined in WebPlugin as well as in WebFrameClient, but with
131 // different parameters. We only care about implementing the WebPlugin 131 // different parameters. We only care about implementing the WebPlugin
132 // version, so we implement this method and call the default in WebFrameClient 132 // version, so we implement this method and call the default in WebFrameClient
133 // (which does nothing) to correctly overload it. 133 // (which does nothing) to correctly overload it.
134 virtual void didReceiveResponse(blink::WebLocalFrame* frame, 134 virtual void didReceiveResponse(blink::WebLocalFrame* frame,
135 unsigned identifier, 135 unsigned identifier,
136 const blink::WebURLResponse& response); 136 const blink::WebURLResponse& response);
137 137
138 private: 138 private:
(...skipping 17 matching lines...) Expand all
156 156
157 blink::WebURLResponse response_; 157 blink::WebURLResponse response_;
158 std::list<std::string> data_; 158 std::list<std::string> data_;
159 bool finished_loading_; 159 bool finished_loading_;
160 scoped_ptr<blink::WebURLError> error_; 160 scoped_ptr<blink::WebURLError> error_;
161 blink::WebString old_title_; 161 blink::WebString old_title_;
162 bool focused_; 162 bool focused_;
163 }; 163 };
164 164
165 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 165 #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