OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/public/web/WebPlugin.h" | 8 #include "third_party/WebKit/public/web/WebPlugin.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 virtual bool executeEditCommand(const blink::WebString& name) OVERRIDE; | 181 virtual bool executeEditCommand(const blink::WebString& name) OVERRIDE; |
182 virtual bool executeEditCommand(const blink::WebString& name, | 182 virtual bool executeEditCommand(const blink::WebString& name, |
183 const blink::WebString& value) OVERRIDE; | 183 const blink::WebString& value) OVERRIDE; |
184 | 184 |
185 // MouseLockDispatcher::LockTarget implementation. | 185 // MouseLockDispatcher::LockTarget implementation. |
186 virtual void OnLockMouseACK(bool succeeded) OVERRIDE; | 186 virtual void OnLockMouseACK(bool succeeded) OVERRIDE; |
187 virtual void OnMouseLockLost() OVERRIDE; | 187 virtual void OnMouseLockLost() OVERRIDE; |
188 virtual bool HandleMouseLockedInputEvent( | 188 virtual bool HandleMouseLockedInputEvent( |
189 const blink::WebMouseEvent& event) OVERRIDE; | 189 const blink::WebMouseEvent& event) OVERRIDE; |
190 | 190 |
| 191 virtual bool shouldPersist() const OVERRIDE; |
| 192 |
191 private: | 193 private: |
192 friend class base::DeleteHelper<BrowserPlugin>; | 194 friend class base::DeleteHelper<BrowserPlugin>; |
193 // Only the manager is allowed to create a BrowserPlugin. | 195 // Only the manager is allowed to create a BrowserPlugin. |
194 friend class BrowserPluginManagerImpl; | 196 friend class BrowserPluginManagerImpl; |
195 friend class MockBrowserPluginManager; | 197 friend class MockBrowserPluginManager; |
196 | 198 |
197 // For unit/integration tests. | 199 // For unit/integration tests. |
198 friend class MockBrowserPlugin; | 200 friend class MockBrowserPlugin; |
199 | 201 |
200 // A BrowserPlugin object is a controller that represents an instance of a | 202 // A BrowserPlugin object is a controller that represents an instance of a |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 363 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
362 | 364 |
363 std::vector<EditCommand> edit_commands_; | 365 std::vector<EditCommand> edit_commands_; |
364 | 366 |
365 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 367 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
366 }; | 368 }; |
367 | 369 |
368 } // namespace content | 370 } // namespace content |
369 | 371 |
370 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 372 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |