Index: chrome/renderer/render_view.h |
=================================================================== |
--- chrome/renderer/render_view.h (revision 25695) |
+++ chrome/renderer/render_view.h (working copy) |
@@ -20,6 +20,7 @@ |
#include "base/values.h" |
#include "base/weak_ptr.h" |
#include "build/build_config.h" |
+#include "chrome/common/edit_command.h" |
#include "chrome/common/renderer_preferences.h" |
#include "chrome/common/view_types.h" |
#include "chrome/renderer/automation/dom_automation_controller.h" |
@@ -327,6 +328,7 @@ |
virtual void ScriptedPrint(WebKit::WebFrame* frame); |
virtual void UserMetricsRecordAction(const std::wstring& action); |
virtual void DnsPrefetch(const std::vector<std::string>& host_names); |
+ virtual bool HandleCurrentKeyboardEvent(); |
// WebKit::WebWidgetClient |
// Most methods are handled by RenderWidget. |
@@ -430,6 +432,8 @@ |
const gfx::Rect& resizer_rect); |
// RenderWidget override |
virtual void DidPaint(); |
+ // RenderWidget override. |
+ virtual void DidHandleKeyEvent(); |
private: |
// For unit tests. |
@@ -534,6 +538,7 @@ |
void OnSelectAll(); |
void OnCopyImageAt(int x, int y); |
void OnExecuteEditCommand(const std::string& name, const std::string& value); |
+ void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
void OnSetupDevToolsClient(); |
void OnCancelDownload(int32 download_id); |
void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
@@ -897,6 +902,10 @@ |
// The settings this render view initialized WebKit with. |
WebPreferences webkit_preferences_; |
+ // Stores edit commands associated to the next key event. |
+ // Shall be cleared as soon as the next key event is processed. |
+ EditCommands edit_commands_; |
+ |
DISALLOW_COPY_AND_ASSIGN(RenderView); |
}; |