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

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

Issue 10037008: Fix window shadows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 years, 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 #include <list> 10 #include <list>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // Whether the previous mouse event was ignored due to hitTest check. 126 // Whether the previous mouse event was ignored due to hitTest check.
127 BOOL mouseEventWasIgnored_; 127 BOOL mouseEventWasIgnored_;
128 128
129 // Event monitor for gesture-end events. 129 // Event monitor for gesture-end events.
130 id endGestureMonitor_; 130 id endGestureMonitor_;
131 131
132 // OpenGL Support: 132 // OpenGL Support:
133 133
134 // recursive globalFrameDidChange protection: 134 // recursive globalFrameDidChange protection:
135 BOOL handlingGlobalFrameDidChange_; 135 BOOL handlingGlobalFrameDidChange_;
136
137 // Set to YES once a GL context is attached to this NSView; never set back to
138 // NO.
139 BOOL hasGLContext_;
140 } 136 }
141 137
142 @property(nonatomic, readonly) NSRange selectedRange; 138 @property(nonatomic, readonly) NSRange selectedRange;
143 139
144 - (void)setCanBeKeyView:(BOOL)can; 140 - (void)setCanBeKeyView:(BOOL)can;
145 - (void)setTakesFocusOnlyOnMouseDown:(BOOL)b; 141 - (void)setTakesFocusOnlyOnMouseDown:(BOOL)b;
146 - (void)setCloseOnDeactivate:(BOOL)b; 142 - (void)setCloseOnDeactivate:(BOOL)b;
147 - (void)setToolTipAtMousePoint:(NSString *)string; 143 - (void)setToolTipAtMousePoint:(NSString *)string;
148 // True for always-on-top special windows (e.g. Balloons and Panels). 144 // True for always-on-top special windows (e.g. Balloons and Panels).
149 - (BOOL)acceptsMouseEventsWhenInactive; 145 - (BOOL)acceptsMouseEventsWhenInactive;
150 // Cancel ongoing composition (abandon the marked text). 146 // Cancel ongoing composition (abandon the marked text).
151 - (void)cancelComposition; 147 - (void)cancelComposition;
152 // Confirm ongoing composition. 148 // Confirm ongoing composition.
153 - (void)confirmComposition; 149 - (void)confirmComposition;
154 // Enables or disables plugin IME. 150 // Enables or disables plugin IME.
155 - (void)setPluginImeActive:(BOOL)active; 151 - (void)setPluginImeActive:(BOOL)active;
156 // Updates the current plugin focus state. 152 // Updates the current plugin focus state.
157 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId; 153 - (void)pluginFocusChanged:(BOOL)focused forPlugin:(int)pluginId;
158 // Evaluates the event in the context of plugin IME, if plugin IME is enabled. 154 // Evaluates the event in the context of plugin IME, if plugin IME is enabled.
159 // Returns YES if the event was handled. 155 // Returns YES if the event was handled.
160 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event; 156 - (BOOL)postProcessEventForPluginIme:(NSEvent*)event;
161 // Tell the view that a GL context was created and accelerated rendering may
162 // ensue.
163 - (void)addedGLContext;
164 157
165 @end 158 @end
166 159
167 /////////////////////////////////////////////////////////////////////////////// 160 ///////////////////////////////////////////////////////////////////////////////
168 // RenderWidgetHostViewMac 161 // RenderWidgetHostViewMac
169 // 162 //
170 // An object representing the "View" of a rendered web page. This object is 163 // An object representing the "View" of a rendered web page. This object is
171 // responsible for displaying the content of the web page, and integrating with 164 // responsible for displaying the content of the web page, and integrating with
172 // the Cocoa view system. It is the implementation of the RenderWidgetHostView 165 // the Cocoa view system. It is the implementation of the RenderWidgetHostView
173 // that the cross-platform RenderWidgetHost object uses 166 // that the cross-platform RenderWidgetHost object uses
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_; 427 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_;
435 428
436 // The fullscreen window used for pepper flash. 429 // The fullscreen window used for pepper flash.
437 scoped_nsobject<NSWindow> pepper_fullscreen_window_; 430 scoped_nsobject<NSWindow> pepper_fullscreen_window_;
438 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_; 431 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_;
439 432
440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
441 }; 434 };
442 435
443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698