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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 return results; | 398 return results; |
399 } | 399 } |
400 | 400 |
401 } // namespace | 401 } // namespace |
402 | 402 |
403 namespace content { | 403 namespace content { |
404 | 404 |
405 //////////////////////////////////////////////////////////////////////////////// | 405 //////////////////////////////////////////////////////////////////////////////// |
406 // DelegatedFrameHost, public: | 406 // DelegatedFrameHost, public: |
407 | 407 |
408 int RenderWidgetHostViewMac::DelegatedFrameHostGetGpuMemoryBufferClientId() | |
409 const { | |
410 return render_widget_host_->GetProcess()->GetID(); | |
411 } | |
412 | |
413 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const { | 408 ui::Layer* RenderWidgetHostViewMac::DelegatedFrameHostGetLayer() const { |
414 return browser_compositor_->GetRootLayer(); | 409 return browser_compositor_->GetRootLayer(); |
415 } | 410 } |
416 | 411 |
417 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const { | 412 bool RenderWidgetHostViewMac::DelegatedFrameHostIsVisible() const { |
418 return !render_widget_host_->is_hidden(); | 413 return !render_widget_host_->is_hidden(); |
419 } | 414 } |
420 | 415 |
421 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor( | 416 SkColor RenderWidgetHostViewMac::DelegatedFrameHostGetGutterColor( |
422 SkColor color) const { | 417 SkColor color) const { |
(...skipping 2884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3307 | 3302 |
3308 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3303 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3309 // regions that are not draggable. (See ControlRegionView in | 3304 // regions that are not draggable. (See ControlRegionView in |
3310 // native_app_window_cocoa.mm). This requires the render host view to be | 3305 // native_app_window_cocoa.mm). This requires the render host view to be |
3311 // draggable by default. | 3306 // draggable by default. |
3312 - (BOOL)mouseDownCanMoveWindow { | 3307 - (BOOL)mouseDownCanMoveWindow { |
3313 return YES; | 3308 return YES; |
3314 } | 3309 } |
3315 | 3310 |
3316 @end | 3311 @end |
OLD | NEW |