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/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
10 #include <list> | 10 #include <list> |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 | 425 |
426 // Ensure that the display link is associated with the correct display. | 426 // Ensure that the display link is associated with the correct display. |
427 void UpdateDisplayLink(); | 427 void UpdateDisplayLink(); |
428 | 428 |
429 void PauseForPendingResizeOrRepaintsAndDraw(); | 429 void PauseForPendingResizeOrRepaintsAndDraw(); |
430 | 430 |
431 // DelegatedFrameHostClient implementation. | 431 // DelegatedFrameHostClient implementation. |
432 virtual ui::Compositor* GetCompositor() const OVERRIDE; | 432 virtual ui::Compositor* GetCompositor() const OVERRIDE; |
433 virtual ui::Layer* GetLayer() OVERRIDE; | 433 virtual ui::Layer* GetLayer() OVERRIDE; |
434 virtual RenderWidgetHostImpl* GetHost() OVERRIDE; | 434 virtual RenderWidgetHostImpl* GetHost() OVERRIDE; |
435 virtual void SchedulePaintInRect( | |
436 const gfx::Rect& damage_rect_in_dip) OVERRIDE; | |
437 virtual bool IsVisible() OVERRIDE; | 435 virtual bool IsVisible() OVERRIDE; |
438 virtual scoped_ptr<ResizeLock> CreateResizeLock( | 436 virtual scoped_ptr<ResizeLock> CreateResizeLock( |
439 bool defer_compositor_lock) OVERRIDE; | 437 bool defer_compositor_lock) OVERRIDE; |
440 virtual gfx::Size DesiredFrameSize() OVERRIDE; | 438 virtual gfx::Size DesiredFrameSize() OVERRIDE; |
441 virtual float CurrentDeviceScaleFactor() OVERRIDE; | 439 virtual float CurrentDeviceScaleFactor() OVERRIDE; |
442 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) OVERRIDE; | 440 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) OVERRIDE; |
443 virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE; | 441 virtual DelegatedFrameHost* GetDelegatedFrameHost() const OVERRIDE; |
444 | 442 |
445 // BrowserCompositorViewMacClient implementation. | 443 // BrowserCompositorViewMacClient implementation. |
446 virtual bool BrowserCompositorViewShouldAckImmediately() const OVERRIDE; | 444 virtual bool BrowserCompositorViewShouldAckImmediately() const OVERRIDE; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 518 |
521 // The current caret bounds. | 519 // The current caret bounds. |
522 gfx::Rect caret_rect_; | 520 gfx::Rect caret_rect_; |
523 | 521 |
524 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 522 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
525 }; | 523 }; |
526 | 524 |
527 } // namespace content | 525 } // namespace content |
528 | 526 |
529 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 527 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |