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

Unified Diff: content/renderer/render_widget.h

Issue 2349523002: Add support for edit commands in OOPIFs. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 97fe63c6722eddd51a29c506b5bf630527261bdd..0ff4d8fa3a51560cd9d28164727af198750ef72e 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -21,6 +21,7 @@
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "content/common/cursors/webcursor.h"
+#include "content/common/edit_command.h"
#include "content/common/input/synthetic_gesture_params.h"
#include "content/renderer/devtools/render_widget_screen_metrics_emulator_delegate.h"
#include "content/renderer/gpu/render_widget_compositor_delegate.h"
@@ -163,6 +164,12 @@ class CONTENT_EXPORT RenderWidget
// ScreenInfo exposed so it can be passed to subframe RenderWidgets.
blink::WebScreenInfo screen_info() const { return screen_info_; }
+ // Manage edit commands to be used for the next keyboard event.
+ const EditCommands& edit_commands() const { return edit_commands_; }
+ void SetEditCommandForNextKeyEvent(const std::string& name,
+ const std::string& value);
+ void ClearEditCommands();
+
// Functions to track out-of-process frames for special notifications.
void RegisterRenderFrameProxy(RenderFrameProxy* proxy);
void UnregisterRenderFrameProxy(RenderFrameProxy* proxy);
@@ -452,6 +459,7 @@ class CONTENT_EXPORT RenderWidget
InputEventDispatchType dispatch_type);
void OnCursorVisibilityChange(bool is_visible);
void OnMouseCaptureLost();
+ void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands);
virtual void OnSetFocus(bool enable);
void OnClose();
void OnCreatingNewAck();
@@ -794,6 +802,10 @@ class CONTENT_EXPORT RenderWidget
// related state from the plugin to later send to the browser.
PepperPluginInstanceImpl* focused_pepper_plugin_;
+ // Stores edit commands associated to the next key event.
+ // Will be cleared as soon as the next key event is processed.
+ EditCommands edit_commands_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidget);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698