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

Unified Diff: ui/views/cocoa/bridged_content_view.h

Issue 329463002: MacViews: Implement text input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | ui/views/cocoa/bridged_content_view.mm » ('j') | ui/views/cocoa/bridged_content_view.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/bridged_content_view.h
diff --git a/ui/views/cocoa/bridged_content_view.h b/ui/views/cocoa/bridged_content_view.h
index 9a949eb8d39f07b23d1aca9ab6b27fda882898da..5020f6e6b5887a9f2aa1026c2e8669c4a27fab16 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -7,6 +7,10 @@
#import <Cocoa/Cocoa.h>
+namespace ui {
+class TextInputClient;
+}
+
namespace views {
class View;
}
@@ -14,10 +18,11 @@ class View;
// The NSView that sits as the root contentView of the NSWindow, whilst it has
// a views::RootView present. Bridges requests from Cocoa to the hosted
// views::View.
-@interface BridgedContentView : NSView {
+@interface BridgedContentView : NSView<NSTextInputClient> {
@private
// Weak. The hosted RootView, owned by hostedView_->GetWidget().
views::View* hostedView_;
+ ui::TextInputClient* textInputClient_;
tapted 2014/06/17 13:23:56 This needs a comment, along with something about w
Andre 2014/06/18 21:48:34 Done.
}
@property(readonly, nonatomic) views::View* view;
@@ -28,6 +33,8 @@ class View;
// Clear the hosted view. For example, if it is about to be destroyed.
- (void)clearView;
+- (void)setTextInputClient:(ui::TextInputClient*)textInputClient;
tapted 2014/06/17 13:23:56 you could probably make this a property. If it's
Andre 2014/06/18 21:48:34 Done.
+
@end
#endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_
« no previous file with comments | « no previous file | ui/views/cocoa/bridged_content_view.mm » ('j') | ui/views/cocoa/bridged_content_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698