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

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

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 gfx::Rect plugin_rect() { return plugin_rect_; } 252 gfx::Rect plugin_rect() { return plugin_rect_; }
253 // Gets the Max Height value used for auto size. 253 // Gets the Max Height value used for auto size.
254 int GetAdjustedMaxHeight() const; 254 int GetAdjustedMaxHeight() const;
255 // Gets the Max Width value used for auto size. 255 // Gets the Max Width value used for auto size.
256 int GetAdjustedMaxWidth() const; 256 int GetAdjustedMaxWidth() const;
257 // Gets the Min Height value used for auto size. 257 // Gets the Min Height value used for auto size.
258 int GetAdjustedMinHeight() const; 258 int GetAdjustedMinHeight() const;
259 // Gets the Min Width value used for auto size. 259 // Gets the Min Width value used for auto size.
260 int GetAdjustedMinWidth() const; 260 int GetAdjustedMinWidth() const;
261 BrowserPluginManager* browser_plugin_manager() const { 261 BrowserPluginManager* browser_plugin_manager() const {
262 return browser_plugin_manager_; 262 return browser_plugin_manager_.get();
263 } 263 }
264 264
265 // Virtual to allow for mocking in tests. 265 // Virtual to allow for mocking in tests.
266 virtual float GetDeviceScaleFactor() const; 266 virtual float GetDeviceScaleFactor() const;
267 267
268 // Parses the attributes of the browser plugin from the element's attributes 268 // Parses the attributes of the browser plugin from the element's attributes
269 // and sets them appropriately. 269 // and sets them appropriately.
270 void ParseAttributes(); 270 void ParseAttributes();
271 271
272 // Triggers the event-listeners for |event_name|. Note that the function 272 // Triggers the event-listeners for |event_name|. Note that the function
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 464 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
465 465
466 std::vector<EditCommand> edit_commands_; 466 std::vector<EditCommand> edit_commands_;
467 467
468 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 468 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
469 }; 469 };
470 470
471 } // namespace content 471 } // namespace content
472 472
473 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 473 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/public/test/test_browser_context.cc ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698