| 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 <memory> | 10 #include <memory> |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void didFinishLoading() override; | 111 void didFinishLoading() override; |
| 112 void didFailLoading(const blink::WebURLError& error) override; | 112 void didFailLoading(const blink::WebURLError& error) override; |
| 113 bool executeEditCommand(const blink::WebString& name) override; | 113 bool executeEditCommand(const blink::WebString& name) override; |
| 114 bool executeEditCommand(const blink::WebString& name, | 114 bool executeEditCommand(const blink::WebString& name, |
| 115 const blink::WebString& value) override; | 115 const blink::WebString& value) override; |
| 116 bool setComposition( | 116 bool setComposition( |
| 117 const blink::WebString& text, | 117 const blink::WebString& text, |
| 118 const blink::WebVector<blink::WebCompositionUnderline>& underlines, | 118 const blink::WebVector<blink::WebCompositionUnderline>& underlines, |
| 119 int selectionStart, | 119 int selectionStart, |
| 120 int selectionEnd) override; | 120 int selectionEnd) override; |
| 121 bool confirmComposition( | 121 bool commitText(const blink::WebString& text, |
| 122 const blink::WebString& text, | 122 int relative_cursor_pos) override; |
| 123 blink::WebWidget::ConfirmCompositionBehavior selectionBehavior) override; | 123 bool finishComposingText( |
| 124 blink::WebWidget::ConfirmCompositionBehavior selection_behavior) override; |
| 125 |
| 124 void extendSelectionAndDelete(int before, int after) override; | 126 void extendSelectionAndDelete(int before, int after) override; |
| 125 | 127 |
| 126 // MouseLockDispatcher::LockTarget implementation. | 128 // MouseLockDispatcher::LockTarget implementation. |
| 127 void OnLockMouseACK(bool succeeded) override; | 129 void OnLockMouseACK(bool succeeded) override; |
| 128 void OnMouseLockLost() override; | 130 void OnMouseLockLost() override; |
| 129 bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) override; | 131 bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) override; |
| 130 | 132 |
| 131 private: | 133 private: |
| 132 friend class base::DeleteHelper<BrowserPlugin>; | 134 friend class base::DeleteHelper<BrowserPlugin>; |
| 133 // Only the manager is allowed to create a BrowserPlugin. | 135 // Only the manager is allowed to create a BrowserPlugin. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 204 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 203 // get called after BrowserPlugin has been destroyed. | 205 // get called after BrowserPlugin has been destroyed. |
| 204 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 206 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 205 | 207 |
| 206 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 208 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 207 }; | 209 }; |
| 208 | 210 |
| 209 } // namespace content | 211 } // namespace content |
| 210 | 212 |
| 211 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 213 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |