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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/scoped_nsobject.h" 10 #include "base/scoped_nsobject.h"
(...skipping 12 matching lines...) Expand all
23 @protocol RenderWidgetHostViewMacOwner 23 @protocol RenderWidgetHostViewMacOwner
24 - (RenderWidgetHostViewMac*)renderWidgetHostViewMac; 24 - (RenderWidgetHostViewMac*)renderWidgetHostViewMac;
25 @end 25 @end
26 26
27 // This is the view that lives in the Cocoa view hierarchy. In Windows-land, 27 // This is the view that lives in the Cocoa view hierarchy. In Windows-land,
28 // RenderWidgetHostViewWin is both the view and the delegate. We split the roles 28 // RenderWidgetHostViewWin is both the view and the delegate. We split the roles
29 // but that means that the view needs to own the delegate and will dispose of it 29 // but that means that the view needs to own the delegate and will dispose of it
30 // when it's removed from the view system. 30 // when it's removed from the view system.
31 31
32 @interface RenderWidgetHostViewCocoa 32 @interface RenderWidgetHostViewCocoa
33 : BaseView <RenderWidgetHostViewMacOwner, NSTextInput> { 33 : BaseView <RenderWidgetHostViewMacOwner, NSTextInput, NSChangeSpelling> {
34 @private 34 @private
35 RenderWidgetHostViewMac* renderWidgetHostView_; 35 RenderWidgetHostViewMac* renderWidgetHostView_;
36 BOOL canBeKeyView_; 36 BOOL canBeKeyView_;
37 BOOL closeOnDeactivate_; 37 BOOL closeOnDeactivate_;
38 scoped_ptr<RWHVMEditCommandHelper> editCommand_helper_; 38 scoped_ptr<RWHVMEditCommandHelper> editCommand_helper_;
39 39
40 // These are part of the magic tooltip code from WebKit's WebHTMLView: 40 // These are part of the magic tooltip code from WebKit's WebHTMLView:
41 id trackingRectOwner_; // (not retained) 41 id trackingRectOwner_; // (not retained)
42 void *trackingRectUserData_; 42 void *trackingRectUserData_;
43 NSTrackingRectTag lastToolTipTag_; 43 NSTrackingRectTag lastToolTipTag_;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // Factory used to safely scope delayed calls to ShutdownHost(). 201 // Factory used to safely scope delayed calls to ShutdownHost().
202 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; 202 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
203 203
204 // Used for positioning a popup menu. 204 // Used for positioning a popup menu.
205 BaseView* parent_view_; 205 BaseView* parent_view_;
206 206
207 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 207 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
208 }; 208 };
209 209
210 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 210 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | 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