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

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

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Use addCompositionUnderlines() where I said I couldn't Created 3 years, 11 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
OLDNEW
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void didFinishLoading() override; 108 void didFinishLoading() override;
109 void didFailLoading(const blink::WebURLError& error) override; 109 void didFailLoading(const blink::WebURLError& error) override;
110 bool executeEditCommand(const blink::WebString& name) override; 110 bool executeEditCommand(const blink::WebString& name) override;
111 bool executeEditCommand(const blink::WebString& name, 111 bool executeEditCommand(const blink::WebString& name,
112 const blink::WebString& value) override; 112 const blink::WebString& value) override;
113 bool setComposition( 113 bool setComposition(
114 const blink::WebString& text, 114 const blink::WebString& text,
115 const blink::WebVector<blink::WebCompositionUnderline>& underlines, 115 const blink::WebVector<blink::WebCompositionUnderline>& underlines,
116 int selectionStart, 116 int selectionStart,
117 int selectionEnd) override; 117 int selectionEnd) override;
118 bool commitText(const blink::WebString& text, 118 bool commitText(
119 int relative_cursor_pos) override; 119 const blink::WebString& text,
120 const blink::WebVector<blink::WebCompositionUnderline>& underlines,
121 int relative_cursor_pos) override;
120 bool finishComposingText( 122 bool finishComposingText(
121 blink::WebInputMethodController::ConfirmCompositionBehavior 123 blink::WebInputMethodController::ConfirmCompositionBehavior
122 selection_behavior) override; 124 selection_behavior) override;
123 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;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 205 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
204 // get called after BrowserPlugin has been destroyed. 206 // get called after BrowserPlugin has been destroyed.
205 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 207 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
208 }; 210 };
209 211
210 } // namespace content 212 } // namespace content
211 213
212 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698