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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 2805075: [Mac]Handle edit commands from input methods correctly. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: git-try -b mac Created 10 years, 5 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 | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_mac.h
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.h b/chrome/browser/renderer_host/render_widget_host_view_mac.h
index 44d695197e6654c72e3774a8f7d70bd12b5dca19..74f20922713297bdff8ffb514363d0ef96c979aa 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_mac.h
+++ b/chrome/browser/renderer_host/render_widget_host_view_mac.h
@@ -17,6 +17,7 @@
#include "chrome/browser/cocoa/browser_accessibility_delegate.h"
#include "chrome/browser/renderer_host/accelerated_surface_container_manager_mac.h"
#include "chrome/browser/renderer_host/render_widget_host_view.h"
+#include "chrome/common/edit_command.h"
#include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h"
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webmenuitem.h"
@@ -114,6 +115,15 @@ class RWHVMEditCommandHelper;
// Underline information of the |markedText_|.
std::vector<WebKit::WebCompositionUnderline> underlines_;
+
+ // Indicates if doCommandBySelector method receives any edit command when
+ // handling a key down event.
+ BOOL hasEditCommands_;
+
+ // Contains edit commands received by the -doCommandBySelector: method when
+ // handling a key down event, not including inserting commands, eg. insertTab,
+ // etc.
+ EditCommands editCommands_;
}
@property(assign, nonatomic) NSRect caretRect;
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698