| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Event monitor for gesture-end events. | 123 // Event monitor for gesture-end events. |
| 124 id endGestureMonitor_; | 124 id endGestureMonitor_; |
| 125 } | 125 } |
| 126 | 126 |
| 127 @property(nonatomic, readonly) NSRange selectedRange; | 127 @property(nonatomic, readonly) NSRange selectedRange; |
| 128 | 128 |
| 129 - (void)setCanBeKeyView:(BOOL)can; | 129 - (void)setCanBeKeyView:(BOOL)can; |
| 130 - (void)setTakesFocusOnlyOnMouseDown:(BOOL)b; | 130 - (void)setTakesFocusOnlyOnMouseDown:(BOOL)b; |
| 131 - (void)setCloseOnDeactivate:(BOOL)b; | 131 - (void)setCloseOnDeactivate:(BOOL)b; |
| 132 - (void)setToolTipAtMousePoint:(NSString *)string; | 132 - (void)setToolTipAtMousePoint:(NSString *)string; |
| 133 // Set frame, then notify the RenderWidgetHost that the frame has been changed, |
| 134 // but do it in a separate task, using |performSelector:withObject:afterDelay:|. |
| 135 // This stops the flickering issue in http://crbug.com/31970 |
| 136 - (void)setFrameWithDeferredUpdate:(NSRect)frame; |
| 137 // Notify the RenderWidgetHost that the frame was updated so it can resize |
| 138 // its contents. |
| 139 - (void)renderWidgetHostWasResized; |
| 133 // Cancel ongoing composition (abandon the marked text). | 140 // Cancel ongoing composition (abandon the marked text). |
| 134 - (void)cancelComposition; | 141 - (void)cancelComposition; |
| 135 // Confirm ongoing composition. | 142 // Confirm ongoing composition. |
| 136 - (void)confirmComposition; | 143 - (void)confirmComposition; |
| 137 // Enables or disables plugin IME. | 144 // Enables or disables plugin IME. |
| 138 - (void)setPluginImeActive:(BOOL)active; | 145 - (void)setPluginImeActive:(BOOL)active; |
| 139 // Updates the current plugin focus state. | 146 // Updates the current plugin focus state. |
| 140 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; | 147 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; |
| 141 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. | 148 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. |
| 142 // Returns YES if the event was handled. | 149 // Returns YES if the event was handled. |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 | 423 |
| 417 class RenderWidgetHostView; | 424 class RenderWidgetHostView; |
| 418 class RenderWidgetHost; | 425 class RenderWidgetHost; |
| 419 | 426 |
| 420 namespace render_widget_host_view_mac { | 427 namespace render_widget_host_view_mac { |
| 421 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( | 428 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( |
| 422 RenderWidgetHost* widget); | 429 RenderWidgetHost* widget); |
| 423 } | 430 } |
| 424 | 431 |
| 425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |