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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Moved ConfirmCompositionBehavior to WebInputMethodController Created 4 years, 3 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class KURL; 53 class KURL;
54 class Range; 54 class Range;
55 class ScrollableArea; 55 class ScrollableArea;
56 class SharedWorkerRepositoryClientImpl; 56 class SharedWorkerRepositoryClientImpl;
57 class TextFinder; 57 class TextFinder;
58 class WebAutofillClient; 58 class WebAutofillClient;
59 class WebDataSourceImpl; 59 class WebDataSourceImpl;
60 class WebDevToolsAgentImpl; 60 class WebDevToolsAgentImpl;
61 class WebDevToolsFrontendImpl; 61 class WebDevToolsFrontendImpl;
62 class WebFrameClient; 62 class WebFrameClient;
63 class WebInputMethodControllerImpl;
63 class WebNode; 64 class WebNode;
64 class WebPerformance; 65 class WebPerformance;
65 class WebPlugin; 66 class WebPlugin;
66 class WebPluginContainerImpl; 67 class WebPluginContainerImpl;
67 class WebScriptExecutionCallback; 68 class WebScriptExecutionCallback;
68 class WebSuspendableTask; 69 class WebSuspendableTask;
69 class WebView; 70 class WebView;
70 class WebViewImpl; 71 class WebViewImpl;
71 enum class WebFrameLoadType; 72 enum class WebFrameLoadType;
72 struct FrameLoadRequest; 73 struct FrameLoadRequest;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 void setFrameWidget(WebFrameWidgetBase*); 322 void setFrameWidget(WebFrameWidgetBase*);
322 323
323 // DevTools front-end bindings. 324 // DevTools front-end bindings.
324 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { m_webDevToolsF rontend = frontend; } 325 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { m_webDevToolsF rontend = frontend; }
325 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } 326 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; }
326 327
327 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } 328 WebNode contextMenuNode() const { return m_contextMenuNode.get(); }
328 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } 329 void setContextMenuNode(Node* node) { m_contextMenuNode = node; }
329 void clearContextMenuNode() { m_contextMenuNode.clear(); } 330 void clearContextMenuNode() { m_contextMenuNode.clear(); }
330 331
332 WebInputMethodControllerImpl* inputMethodController() const;
333
331 DECLARE_TRACE(); 334 DECLARE_TRACE();
332 335
333 private: 336 private:
334 friend class FrameLoaderClientImpl; 337 friend class FrameLoaderClientImpl;
335 338
336 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); 339 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*);
337 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); 340 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*);
338 341
339 // Inherited from WebFrame, but intentionally hidden: it never makes sense 342 // Inherited from WebFrame, but intentionally hidden: it never makes sense
340 // to call these on a WebLocalFrameImpl. 343 // to call these on a WebLocalFrameImpl.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 Member<ChromePrintContext> m_printContext; 384 Member<ChromePrintContext> m_printContext;
382 385
383 // Stores the additional input events offset and scale when device metrics e mulation is enabled. 386 // Stores the additional input events offset and scale when device metrics e mulation is enabled.
384 IntSize m_inputEventsOffsetForEmulation; 387 IntSize m_inputEventsOffsetForEmulation;
385 float m_inputEventsScaleFactorForEmulation; 388 float m_inputEventsScaleFactorForEmulation;
386 389
387 WebDevToolsFrontendImpl* m_webDevToolsFrontend; 390 WebDevToolsFrontendImpl* m_webDevToolsFrontend;
388 391
389 Member<Node> m_contextMenuNode; 392 Member<Node> m_contextMenuNode;
390 393
394 std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController;
395
391 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. 396 // Oilpan: WebLocalFrameImpl must remain alive until close() is called.
392 // Accomplish that by keeping a self-referential Persistent<>. It is 397 // Accomplish that by keeping a self-referential Persistent<>. It is
393 // cleared upon close(). 398 // cleared upon close().
394 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 399 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
395 }; 400 };
396 401
397 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 402 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
398 403
399 } // namespace blink 404 } // namespace blink
400 405
401 #endif 406 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698