OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |