OLD | NEW |
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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // The selected range, cached from a message sent by the renderer. | 107 // The selected range, cached from a message sent by the renderer. |
108 NSRange selectedRange_; | 108 NSRange selectedRange_; |
109 | 109 |
110 // Text to be inserted which was generated by handling a key down event. | 110 // Text to be inserted which was generated by handling a key down event. |
111 string16 textToBeInserted_; | 111 string16 textToBeInserted_; |
112 | 112 |
113 // Marked text which was generated by handling a key down event. | 113 // Marked text which was generated by handling a key down event. |
114 string16 markedText_; | 114 string16 markedText_; |
115 | 115 |
116 // Underline information of the |markedText_|. | 116 // Underline information of the |markedText_|. |
117 std::vector<WebKit::WebCompositionUnderline> underlines_; | 117 std::vector<blink::WebCompositionUnderline> underlines_; |
118 | 118 |
119 // Indicates if doCommandBySelector method receives any edit command when | 119 // Indicates if doCommandBySelector method receives any edit command when |
120 // handling a key down event. | 120 // handling a key down event. |
121 BOOL hasEditCommands_; | 121 BOOL hasEditCommands_; |
122 | 122 |
123 // Contains edit commands received by the -doCommandBySelector: method when | 123 // Contains edit commands received by the -doCommandBySelector: method when |
124 // handling a key down event, not including inserting commands, eg. insertTab, | 124 // handling a key down event, not including inserting commands, eg. insertTab, |
125 // etc. | 125 // etc. |
126 content::EditCommands editCommands_; | 126 content::EditCommands editCommands_; |
127 | 127 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 virtual void AcceleratedSurfaceBuffersSwapped( | 297 virtual void AcceleratedSurfaceBuffersSwapped( |
298 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 298 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
299 int gpu_host_id) OVERRIDE; | 299 int gpu_host_id) OVERRIDE; |
300 virtual void AcceleratedSurfacePostSubBuffer( | 300 virtual void AcceleratedSurfacePostSubBuffer( |
301 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 301 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
302 int gpu_host_id) OVERRIDE; | 302 int gpu_host_id) OVERRIDE; |
303 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 303 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
304 virtual void AcceleratedSurfaceRelease() OVERRIDE; | 304 virtual void AcceleratedSurfaceRelease() OVERRIDE; |
305 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 305 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
306 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; | 306 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; |
307 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 307 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; |
308 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 308 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
309 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 309 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
310 | 310 |
311 virtual void SetHasHorizontalScrollbar( | 311 virtual void SetHasHorizontalScrollbar( |
312 bool has_horizontal_scrollbar) OVERRIDE; | 312 bool has_horizontal_scrollbar) OVERRIDE; |
313 virtual void SetScrollOffsetPinning( | 313 virtual void SetScrollOffsetPinning( |
314 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 314 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
315 virtual bool LockMouse() OVERRIDE; | 315 virtual bool LockMouse() OVERRIDE; |
316 virtual void UnlockMouse() OVERRIDE; | 316 virtual void UnlockMouse() OVERRIDE; |
317 virtual void UnhandledWheelEvent( | 317 virtual void UnhandledWheelEvent( |
318 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 318 const blink::WebMouseWheelEvent& event) OVERRIDE; |
319 | 319 |
320 // IPC::Sender implementation. | 320 // IPC::Sender implementation. |
321 virtual bool Send(IPC::Message* message) OVERRIDE; | 321 virtual bool Send(IPC::Message* message) OVERRIDE; |
322 | 322 |
323 // SoftwareFrameManagerClient implementation: | 323 // SoftwareFrameManagerClient implementation: |
324 virtual void SoftwareFrameWasFreed( | 324 virtual void SoftwareFrameWasFreed( |
325 uint32 output_surface_id, unsigned frame_id) OVERRIDE; | 325 uint32 output_surface_id, unsigned frame_id) OVERRIDE; |
326 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; | 326 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; |
327 | 327 |
328 // Forwards the mouse event to the renderer. | 328 // Forwards the mouse event to the renderer. |
329 void ForwardMouseEvent(const WebKit::WebMouseEvent& event); | 329 void ForwardMouseEvent(const blink::WebMouseEvent& event); |
330 | 330 |
331 void KillSelf(); | 331 void KillSelf(); |
332 | 332 |
333 void SetTextInputActive(bool active); | 333 void SetTextInputActive(bool active); |
334 | 334 |
335 // Change this view to use CoreAnimation to draw. | 335 // Change this view to use CoreAnimation to draw. |
336 void EnableCoreAnimation(); | 336 void EnableCoreAnimation(); |
337 | 337 |
338 // Sends completed plugin IME notification and text back to the renderer. | 338 // Sends completed plugin IME notification and text back to the renderer. |
339 void PluginImeCompositionCompleted(const string16& text, int plugin_id); | 339 void PluginImeCompositionCompleted(const string16& text, int plugin_id); |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 565 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
566 | 566 |
567 base::WeakPtrFactory<RenderWidgetHostViewMac> | 567 base::WeakPtrFactory<RenderWidgetHostViewMac> |
568 software_frame_weak_ptr_factory_; | 568 software_frame_weak_ptr_factory_; |
569 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 569 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
570 }; | 570 }; |
571 | 571 |
572 } // namespace content | 572 } // namespace content |
573 | 573 |
574 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 574 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |