| 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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
| 6 | 6 |
| 7 #import <objc/runtime.h> | 7 #import <objc/runtime.h> |
| 8 #include <OpenGL/gl.h> | 8 #include <OpenGL/gl.h> |
| 9 #include <QuartzCore/QuartzCore.h> | 9 #include <QuartzCore/QuartzCore.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 return results; | 399 return results; |
| 400 } | 400 } |
| 401 | 401 |
| 402 } // namespace | 402 } // namespace |
| 403 | 403 |
| 404 namespace content { | 404 namespace content { |
| 405 | 405 |
| 406 //////////////////////////////////////////////////////////////////////////////// | 406 //////////////////////////////////////////////////////////////////////////////// |
| 407 // DelegatedFrameHost, public: | 407 // DelegatedFrameHost, public: |
| 408 | 408 |
| 409 int RenderWidgetHostViewMac::DelegatedFrameHostGetGpuMemoryBufferClientId() |
| 410 const { |
| 411 return render_widget_host_->GetProcess()->GetID(); |
| 412 } |
| 413 |
| 409 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const { | 414 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const { |
| 410 return root_layer_.get(); | 415 return root_layer_.get(); |
| 411 } | 416 } |
| 412 | 417 |
| 413 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const { | 418 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const { |
| 414 return !render_widget_host_->is_hidden(); | 419 return !render_widget_host_->is_hidden(); |
| 415 } | 420 } |
| 416 | 421 |
| 417 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor( | 422 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor( |
| 418 SkColor color) const { | 423 SkColor color) const { |
| (...skipping 3012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3431 | 3436 |
| 3432 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3437 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
| 3433 // regions that are not draggable. (See ControlRegionView in | 3438 // regions that are not draggable. (See ControlRegionView in |
| 3434 // native_app_window_cocoa.mm). This requires the render host view to be | 3439 // native_app_window_cocoa.mm). This requires the render host view to be |
| 3435 // draggable by default. | 3440 // draggable by default. |
| 3436 - (BOOL)mouseDownCanMoveWindow { | 3441 - (BOOL)mouseDownCanMoveWindow { |
| 3437 return YES; | 3442 return YES; |
| 3438 } | 3443 } |
| 3439 | 3444 |
| 3440 @end | 3445 @end |
| OLD | NEW |