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

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

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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 25 matching lines...) Expand all
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_;
44 scoped_nsobject<NSString> toolTip_; 44 scoped_nsobject<NSString> toolTip_;
45 45
46 BOOL ignoreKeyEvents_;
47 scoped_nsobject<NSEvent> lastKeyPressedEvent_; 46 scoped_nsobject<NSEvent> lastKeyPressedEvent_;
48 } 47 }
49 48
50 - (void)setCanBeKeyView:(BOOL)can; 49 - (void)setCanBeKeyView:(BOOL)can;
51 - (void)setCloseOnDeactivate:(BOOL)b; 50 - (void)setCloseOnDeactivate:(BOOL)b;
52 - (void)setToolTipAtMousePoint:(NSString *)string; 51 - (void)setToolTipAtMousePoint:(NSString *)string;
53
54 // When a keyboard event comes back from the renderer, we redispatch it. This
55 // makes sure we ignore it if we should receive it during redispatch, instead
56 // of sending it to the renderer again.
57 - (void)setIgnoreKeyEvents:(BOOL)ignorekeyEvents;
58 @end 52 @end
59 53
60 /////////////////////////////////////////////////////////////////////////////// 54 ///////////////////////////////////////////////////////////////////////////////
61 // RenderWidgetHostViewMac 55 // RenderWidgetHostViewMac
62 // 56 //
63 // An object representing the "View" of a rendered web page. This object is 57 // An object representing the "View" of a rendered web page. This object is
64 // responsible for displaying the content of the web page, and integrating with 58 // responsible for displaying the content of the web page, and integrating with
65 // the Cocoa view system. It is the implementation of the RenderWidgetHostView 59 // the Cocoa view system. It is the implementation of the RenderWidgetHostView
66 // that the cross-platform RenderWidgetHost object uses 60 // that the cross-platform RenderWidgetHost object uses
67 // to display the data. 61 // to display the data.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // Factory used to safely scope delayed calls to ShutdownHost(). 216 // Factory used to safely scope delayed calls to ShutdownHost().
223 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_; 217 ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
224 218
225 // Used for positioning a popup menu. 219 // Used for positioning a popup menu.
226 BaseView* parent_view_; 220 BaseView* parent_view_;
227 221
228 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 222 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
229 }; 223 };
230 224
231 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 225 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698