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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Rebased Created 4 years, 1 month 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>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/sequenced_task_runner_helpers.h" 14 #include "base/sequenced_task_runner_helpers.h"
15 #include "content/renderer/mouse_lock_dispatcher.h" 15 #include "content/renderer/mouse_lock_dispatcher.h"
16 #include "content/renderer/render_view_impl.h" 16 #include "content/renderer/render_view_impl.h"
17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 17 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
18 #include "third_party/WebKit/public/web/WebDragStatus.h" 18 #include "third_party/WebKit/public/web/WebDragStatus.h"
19 #include "third_party/WebKit/public/web/WebInputMethodController.h"
19 #include "third_party/WebKit/public/web/WebNode.h" 20 #include "third_party/WebKit/public/web/WebNode.h"
20 #include "third_party/WebKit/public/web/WebWidget.h"
21 21
22 namespace cc { 22 namespace cc {
23 class SurfaceId; 23 class SurfaceId;
24 struct SurfaceSequence; 24 struct SurfaceSequence;
25 } 25 }
26 26
27 namespace content { 27 namespace content {
28 28
29 class BrowserPluginDelegate; 29 class BrowserPluginDelegate;
30 class BrowserPluginManager; 30 class BrowserPluginManager;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(const blink::WebString& text,
119 int relative_cursor_pos) override; 119 int relative_cursor_pos) override;
120 bool finishComposingText( 120 bool finishComposingText(
121 blink::WebWidget::ConfirmCompositionBehavior selection_behavior) override; 121 blink::WebInputMethodController::ConfirmCompositionBehavior
122 selection_behavior) override;
122 123
123 void extendSelectionAndDelete(int before, int after) override; 124 void extendSelectionAndDelete(int before, int after) override;
124 125
125 // MouseLockDispatcher::LockTarget implementation. 126 // MouseLockDispatcher::LockTarget implementation.
126 void OnLockMouseACK(bool succeeded) override; 127 void OnLockMouseACK(bool succeeded) override;
127 void OnMouseLockLost() override; 128 void OnMouseLockLost() override;
128 bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) override; 129 bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) override;
129 130
130 private: 131 private:
131 friend class base::DeleteHelper<BrowserPlugin>; 132 friend class base::DeleteHelper<BrowserPlugin>;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might 203 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might
203 // get called after BrowserPlugin has been destroyed. 204 // get called after BrowserPlugin has been destroyed.
204 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; 205 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_;
205 206
206 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); 207 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin);
207 }; 208 };
208 209
209 } // namespace content 210 } // namespace content
210 211
211 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ 212 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698