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/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 2437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2448 } | 2448 } |
2449 | 2449 |
2450 ui::Layer* RenderWidgetHostViewAura::GetLayer() { | 2450 ui::Layer* RenderWidgetHostViewAura::GetLayer() { |
2451 return window_->layer(); | 2451 return window_->layer(); |
2452 } | 2452 } |
2453 | 2453 |
2454 RenderWidgetHostImpl* RenderWidgetHostViewAura::GetHost() { | 2454 RenderWidgetHostImpl* RenderWidgetHostViewAura::GetHost() { |
2455 return host_; | 2455 return host_; |
2456 } | 2456 } |
2457 | 2457 |
2458 void RenderWidgetHostViewAura::SchedulePaintInRect( | |
2459 const gfx::Rect& damage_rect_in_dip) { | |
2460 window_->SchedulePaintInRect(damage_rect_in_dip); | |
2461 } | |
2462 | |
2463 bool RenderWidgetHostViewAura::IsVisible() { | 2458 bool RenderWidgetHostViewAura::IsVisible() { |
2464 return IsShowing(); | 2459 return IsShowing(); |
2465 } | 2460 } |
2466 | 2461 |
2467 gfx::Size RenderWidgetHostViewAura::DesiredFrameSize() { | 2462 gfx::Size RenderWidgetHostViewAura::DesiredFrameSize() { |
2468 return window_->bounds().size(); | 2463 return window_->bounds().size(); |
2469 } | 2464 } |
2470 | 2465 |
2471 float RenderWidgetHostViewAura::CurrentDeviceScaleFactor() { | 2466 float RenderWidgetHostViewAura::CurrentDeviceScaleFactor() { |
2472 return current_device_scale_factor_; | 2467 return current_device_scale_factor_; |
(...skipping 20 matching lines...) Expand all Loading... |
2493 | 2488 |
2494 //////////////////////////////////////////////////////////////////////////////// | 2489 //////////////////////////////////////////////////////////////////////////////// |
2495 // RenderWidgetHostViewBase, public: | 2490 // RenderWidgetHostViewBase, public: |
2496 | 2491 |
2497 // static | 2492 // static |
2498 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { | 2493 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { |
2499 GetScreenInfoForWindow(results, NULL); | 2494 GetScreenInfoForWindow(results, NULL); |
2500 } | 2495 } |
2501 | 2496 |
2502 } // namespace content | 2497 } // namespace content |
OLD | NEW |