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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 1690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 scoped_refptr<ui::Texture>) { | 1701 scoped_refptr<ui::Texture>) { |
1702 } | 1702 } |
1703 | 1703 |
1704 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceFinished( | 1704 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceFinished( |
1705 base::WeakPtr<RenderWidgetHostViewAura> render_widget_host_view, | 1705 base::WeakPtr<RenderWidgetHostViewAura> render_widget_host_view, |
1706 const SkBitmap& bitmap, | 1706 const SkBitmap& bitmap, |
1707 const base::Callback<void(bool, const SkBitmap&)>& callback, | 1707 const base::Callback<void(bool, const SkBitmap&)>& callback, |
1708 bool result) { | 1708 bool result) { |
1709 callback.Run(result, bitmap); | 1709 callback.Run(result, bitmap); |
1710 | 1710 |
1711 if (!render_widget_host_view.get()) | 1711 if (!render_widget_host_view) |
1712 return; | 1712 return; |
1713 --render_widget_host_view->pending_thumbnail_tasks_; | 1713 --render_widget_host_view->pending_thumbnail_tasks_; |
1714 } | 1714 } |
1715 | 1715 |
1716 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { | 1716 void RenderWidgetHostViewAura::GetScreenInfo(WebScreenInfo* results) { |
1717 GetScreenInfoForWindow(results, window_->GetRootWindow() ? window_ : NULL); | 1717 GetScreenInfoForWindow(results, window_->GetRootWindow() ? window_ : NULL); |
1718 } | 1718 } |
1719 | 1719 |
1720 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { | 1720 gfx::Rect RenderWidgetHostViewAura::GetBoundsInRootWindow() { |
1721 return window_->GetToplevelWindow()->GetBoundsInScreen(); | 1721 return window_->GetToplevelWindow()->GetBoundsInScreen(); |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 RenderWidgetHost* widget) { | 2842 RenderWidgetHost* widget) { |
2843 return new RenderWidgetHostViewAura(widget); | 2843 return new RenderWidgetHostViewAura(widget); |
2844 } | 2844 } |
2845 | 2845 |
2846 // static | 2846 // static |
2847 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 2847 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
2848 GetScreenInfoForWindow(results, NULL); | 2848 GetScreenInfoForWindow(results, NULL); |
2849 } | 2849 } |
2850 | 2850 |
2851 } // namespace content | 2851 } // namespace content |
OLD | NEW |