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_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2890 RenderViewHostDelegate* delegate = rvh->GetDelegate(); | 2890 RenderViewHostDelegate* delegate = rvh->GetDelegate(); |
2891 if (!delegate) | 2891 if (!delegate) |
2892 return nullptr; | 2892 return nullptr; |
2893 | 2893 |
2894 return delegate->GetDelegateView(); | 2894 return delegate->GetDelegateView(); |
2895 } | 2895 } |
2896 | 2896 |
2897 //////////////////////////////////////////////////////////////////////////////// | 2897 //////////////////////////////////////////////////////////////////////////////// |
2898 // DelegatedFrameHost, public: | 2898 // DelegatedFrameHost, public: |
2899 | 2899 |
2900 int RenderWidgetHostViewAura::DelegatedFrameHostGetGpuMemoryBufferClientId() | |
2901 const { | |
2902 return host_->GetProcess()->GetID(); | |
2903 } | |
2904 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const { | 2900 ui::Layer* RenderWidgetHostViewAura::DelegatedFrameHostGetLayer() const { |
2905 return window_->layer(); | 2901 return window_->layer(); |
2906 } | 2902 } |
2907 | 2903 |
2908 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { | 2904 bool RenderWidgetHostViewAura::DelegatedFrameHostIsVisible() const { |
2909 return !host_->is_hidden(); | 2905 return !host_->is_hidden(); |
2910 } | 2906 } |
2911 | 2907 |
2912 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor( | 2908 SkColor RenderWidgetHostViewAura::DelegatedFrameHostGetGutterColor( |
2913 SkColor color) const { | 2909 SkColor color) const { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3037 | 3033 |
3038 //////////////////////////////////////////////////////////////////////////////// | 3034 //////////////////////////////////////////////////////////////////////////////// |
3039 // RenderWidgetHostViewBase, public: | 3035 // RenderWidgetHostViewBase, public: |
3040 | 3036 |
3041 // static | 3037 // static |
3042 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 3038 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
3043 GetScreenInfoForWindow(results, NULL); | 3039 GetScreenInfoForWindow(results, NULL); |
3044 } | 3040 } |
3045 | 3041 |
3046 } // namespace content | 3042 } // namespace content |
OLD | NEW |