| 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 <IOSurface/IOSurface.h> | 9 #include <IOSurface/IOSurface.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 // Update properties, such as the scale factor for the backing store | 440 // Update properties, such as the scale factor for the backing store |
| 441 // and for any CALayers, and the screen color profile. | 441 // and for any CALayers, and the screen color profile. |
| 442 void UpdateBackingStoreProperties(); | 442 void UpdateBackingStoreProperties(); |
| 443 | 443 |
| 444 // Ensure that the display link is associated with the correct display. | 444 // Ensure that the display link is associated with the correct display. |
| 445 void UpdateDisplayLink(); | 445 void UpdateDisplayLink(); |
| 446 | 446 |
| 447 void PauseForPendingResizeOrRepaintsAndDraw(); | 447 void PauseForPendingResizeOrRepaintsAndDraw(); |
| 448 | 448 |
| 449 // DelegatedFrameHostClient implementation. | 449 // DelegatedFrameHostClient implementation. |
| 450 int DelegatedFrameHostGetGpuMemoryBufferClientId() const override; | |
| 451 ui::Layer* DelegatedFrameHostGetLayer() const override; | 450 ui::Layer* DelegatedFrameHostGetLayer() const override; |
| 452 bool DelegatedFrameHostIsVisible() const override; | 451 bool DelegatedFrameHostIsVisible() const override; |
| 453 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; | 452 SkColor DelegatedFrameHostGetGutterColor(SkColor color) const override; |
| 454 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; | 453 gfx::Size DelegatedFrameHostDesiredSizeInDIP() const override; |
| 455 bool DelegatedFrameCanCreateResizeLock() const override; | 454 bool DelegatedFrameCanCreateResizeLock() const override; |
| 456 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( | 455 std::unique_ptr<ResizeLock> DelegatedFrameHostCreateResizeLock( |
| 457 bool defer_compositor_lock) override; | 456 bool defer_compositor_lock) override; |
| 458 void DelegatedFrameHostResizeLockWasReleased() override; | 457 void DelegatedFrameHostResizeLockWasReleased() override; |
| 459 void DelegatedFrameHostSendCompositorSwapAck( | 458 void DelegatedFrameHostSendCompositorSwapAck( |
| 460 int output_surface_id, | 459 int output_surface_id, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 | 558 |
| 560 // Factory used to safely scope delayed calls to ShutdownHost(). | 559 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 561 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 560 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 562 | 561 |
| 563 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 562 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 564 }; | 563 }; |
| 565 | 564 |
| 566 } // namespace content | 565 } // namespace content |
| 567 | 566 |
| 568 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 567 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |