| 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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 bool defer_compositor_lock) override; | 422 bool defer_compositor_lock) override; |
| 423 virtual gfx::Size DesiredFrameSize() override; | 423 virtual gfx::Size DesiredFrameSize() override; |
| 424 virtual float CurrentDeviceScaleFactor() override; | 424 virtual float CurrentDeviceScaleFactor() override; |
| 425 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; | 425 virtual gfx::Size ConvertViewSizeToPixel(const gfx::Size& size) override; |
| 426 virtual DelegatedFrameHost* GetDelegatedFrameHost() const override; | 426 virtual DelegatedFrameHost* GetDelegatedFrameHost() const override; |
| 427 | 427 |
| 428 // BrowserCompositorViewMacClient implementation. | 428 // BrowserCompositorViewMacClient implementation. |
| 429 virtual bool BrowserCompositorViewShouldAckImmediately() const override; | 429 virtual bool BrowserCompositorViewShouldAckImmediately() const override; |
| 430 virtual void BrowserCompositorViewFrameSwapped( | 430 virtual void BrowserCompositorViewFrameSwapped( |
| 431 const std::vector<ui::LatencyInfo>& latency_info) override; | 431 const std::vector<ui::LatencyInfo>& latency_info) override; |
| 432 virtual NSView* BrowserCompositorSuperview() override; | |
| 433 virtual ui::Layer* BrowserCompositorRootLayer() override; | |
| 434 | 432 |
| 435 private: | 433 private: |
| 436 friend class RenderWidgetHostViewMacTest; | 434 friend class RenderWidgetHostViewMacTest; |
| 437 | 435 |
| 438 // Returns whether this render view is a popup (autocomplete window). | 436 // Returns whether this render view is a popup (autocomplete window). |
| 439 bool IsPopup() const; | 437 bool IsPopup() const; |
| 440 | 438 |
| 441 // Shuts down the render_widget_host_. This is a separate function so we can | 439 // Shuts down the render_widget_host_. This is a separate function so we can |
| 442 // invoke it from the message loop. | 440 // invoke it from the message loop. |
| 443 void ShutdownHost(); | 441 void ShutdownHost(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 | 504 |
| 507 // The current caret bounds. | 505 // The current caret bounds. |
| 508 gfx::Rect caret_rect_; | 506 gfx::Rect caret_rect_; |
| 509 | 507 |
| 510 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 508 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 511 }; | 509 }; |
| 512 | 510 |
| 513 } // namespace content | 511 } // namespace content |
| 514 | 512 |
| 515 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 513 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |