| 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 424 } |
| 425 | 425 |
| 426 CONTENT_EXPORT void release_pepper_fullscreen_window_for_testing(); | 426 CONTENT_EXPORT void release_pepper_fullscreen_window_for_testing(); |
| 427 | 427 |
| 428 RenderWidgetHostViewMac* fullscreen_parent_host_view() const { | 428 RenderWidgetHostViewMac* fullscreen_parent_host_view() const { |
| 429 return fullscreen_parent_host_view_; | 429 return fullscreen_parent_host_view_; |
| 430 } | 430 } |
| 431 | 431 |
| 432 int window_number() const; | 432 int window_number() const; |
| 433 | 433 |
| 434 // The scale factor for the screen that the view is currently on. | |
| 435 float ViewScaleFactor() const; | |
| 436 | |
| 437 // Update properties, such as the scale factor for the backing store | 434 // Update properties, such as the scale factor for the backing store |
| 438 // and for any CALayers, and the screen color profile. | 435 // and for any CALayers, and the screen color profile. |
| 439 void UpdateBackingStoreProperties(); | 436 void UpdateBackingStoreProperties(); |
| 440 | 437 |
| 441 // Ensure that the display link is associated with the correct display. | 438 // Ensure that the display link is associated with the correct display. |
| 442 void UpdateDisplayLink(); | 439 void UpdateDisplayLink(); |
| 443 | 440 |
| 444 void PauseForPendingResizeOrRepaintsAndDraw(); | 441 void PauseForPendingResizeOrRepaintsAndDraw(); |
| 445 | 442 |
| 446 // BrowserCompositorMacClient implementation. | 443 // BrowserCompositorMacClient implementation. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 552 |
| 556 // Factory used to safely scope delayed calls to ShutdownHost(). | 553 // Factory used to safely scope delayed calls to ShutdownHost(). |
| 557 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; | 554 base::WeakPtrFactory<RenderWidgetHostViewMac> weak_factory_; |
| 558 | 555 |
| 559 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 556 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 560 }; | 557 }; |
| 561 | 558 |
| 562 } // namespace content | 559 } // namespace content |
| 563 | 560 |
| 564 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 561 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |