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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 12189018: <webview>: Implement WebRequest API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Diff from latest patch Created 7 years, 10 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 (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_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
7 7
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class BrowserPluginCompositingHelper; 29 class BrowserPluginCompositingHelper;
30 class BrowserPluginManager; 30 class BrowserPluginManager;
31 class MockBrowserPlugin; 31 class MockBrowserPlugin;
32 32
33 class CONTENT_EXPORT BrowserPlugin : 33 class CONTENT_EXPORT BrowserPlugin :
34 NON_EXPORTED_BASE(public WebKit::WebPlugin) { 34 NON_EXPORTED_BASE(public WebKit::WebPlugin) {
35 public: 35 public:
36 RenderViewImpl* render_view() const { return render_view_.get(); } 36 RenderViewImpl* render_view() const { return render_view_.get(); }
37 int render_view_routing_id() const { return render_view_routing_id_; } 37 int render_view_routing_id() const { return render_view_routing_id_; }
38 int instance_id() const { return instance_id_; }
38 39
39 bool OnMessageReceived(const IPC::Message& msg); 40 bool OnMessageReceived(const IPC::Message& msg);
40 41
41 // Update Browser Plugin's DOM Node attribute |attribute_name| with the value 42 // Update Browser Plugin's DOM Node attribute |attribute_name| with the value
42 // |attribute_value|. 43 // |attribute_value|.
43 void UpdateDOMAttribute(const std::string& attribute_name, 44 void UpdateDOMAttribute(const std::string& attribute_name,
44 const std::string& attribute_value); 45 const std::string& attribute_value);
45 // Remove the DOM Node attribute with the name |attribute_name|. 46 // Remove the DOM Node attribute with the name |attribute_name|.
46 void RemoveDOMAttribute(const std::string& attribute_name); 47 void RemoveDOMAttribute(const std::string& attribute_name);
47 // Get Browser Plugin's DOM Node attribute |attribute_name|'s value. 48 // Get Browser Plugin's DOM Node attribute |attribute_name|'s value.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // to it on creation. 183 // to it on creation.
183 BrowserPlugin( 184 BrowserPlugin(
184 RenderViewImpl* render_view, 185 RenderViewImpl* render_view,
185 WebKit::WebFrame* frame, 186 WebKit::WebFrame* frame,
186 const WebKit::WebPluginParams& params); 187 const WebKit::WebPluginParams& params);
187 188
188 virtual ~BrowserPlugin(); 189 virtual ~BrowserPlugin();
189 190
190 int width() const { return plugin_rect_.width(); } 191 int width() const { return plugin_rect_.width(); }
191 int height() const { return plugin_rect_.height(); } 192 int height() const { return plugin_rect_.height(); }
192 int instance_id() const { return instance_id_; }
193 // Gets the Max Height value used for auto size. 193 // Gets the Max Height value used for auto size.
194 int GetAdjustedMaxHeight() const; 194 int GetAdjustedMaxHeight() const;
195 // Gets the Max Width value used for auto size. 195 // Gets the Max Width value used for auto size.
196 int GetAdjustedMaxWidth() const; 196 int GetAdjustedMaxWidth() const;
197 // Gets the Min Height value used for auto size. 197 // Gets the Min Height value used for auto size.
198 int GetAdjustedMinHeight() const; 198 int GetAdjustedMinHeight() const;
199 // Gets the Min Width value used for auto size. 199 // Gets the Min Width value used for auto size.
200 int GetAdjustedMinWidth() const; 200 int GetAdjustedMinWidth() const;
201 BrowserPluginManager* browser_plugin_manager() const { 201 BrowserPluginManager* browser_plugin_manager() const {
202 return browser_plugin_manager_; 202 return browser_plugin_manager_;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 // Used for HW compositing. 347 // Used for HW compositing.
348 bool compositing_enabled_; 348 bool compositing_enabled_;
349 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_; 349 scoped_refptr<BrowserPluginCompositingHelper> compositing_helper_;
350 350
351 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 351 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
352 }; 352 };
353 353
354 } // namespace content 354 } // namespace content
355 355
356 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 356 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698