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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 338 |
339 // SoftwareFrameManagerClient implementation: | 339 // SoftwareFrameManagerClient implementation: |
340 virtual void SoftwareFrameWasFreed( | 340 virtual void SoftwareFrameWasFreed( |
341 uint32 output_surface_id, unsigned frame_id) OVERRIDE; | 341 uint32 output_surface_id, unsigned frame_id) OVERRIDE; |
342 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; | 342 virtual void ReleaseReferencesToSoftwareFrame() OVERRIDE; |
343 | 343 |
344 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; | 344 virtual SkBitmap::Config PreferredReadbackFormat() OVERRIDE; |
345 | 345 |
346 // CompositingIOSurfaceLayerClient implementation. | 346 // CompositingIOSurfaceLayerClient implementation. |
347 virtual void AcceleratedLayerDidDrawFrame(bool succeeded) OVERRIDE; | 347 virtual void AcceleratedLayerDidDrawFrame(bool succeeded) OVERRIDE; |
348 virtual bool AcceleratedLayerHasNotAckedPendingFrame() const OVERRIDE; | |
349 | 348 |
350 // Forwards the mouse event to the renderer. | 349 // Forwards the mouse event to the renderer. |
351 void ForwardMouseEvent(const blink::WebMouseEvent& event); | 350 void ForwardMouseEvent(const blink::WebMouseEvent& event); |
352 | 351 |
353 void KillSelf(); | 352 void KillSelf(); |
354 | 353 |
355 void SetTextInputActive(bool active); | 354 void SetTextInputActive(bool active); |
356 | 355 |
357 // Sends completed plugin IME notification and text back to the renderer. | 356 // Sends completed plugin IME notification and text back to the renderer. |
358 void PluginImeCompositionCompleted(const base::string16& text, int plugin_id); | 357 void PluginImeCompositionCompleted(const base::string16& text, int plugin_id); |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 651 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
653 | 652 |
654 base::WeakPtrFactory<RenderWidgetHostViewMac> | 653 base::WeakPtrFactory<RenderWidgetHostViewMac> |
655 software_frame_weak_ptr_factory_; | 654 software_frame_weak_ptr_factory_; |
656 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 655 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
657 }; | 656 }; |
658 | 657 |
659 } // namespace content | 658 } // namespace content |
660 | 659 |
661 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 660 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |