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/web_contents/web_contents_view_aura.h" | 5 #include "content/browser/web_contents/web_contents_view_aura.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1470 web_contents_->GetRenderWidgetHostView()); | 1470 web_contents_->GetRenderWidgetHostView()); |
1471 if (view != NULL && !view->IsClosing()) | 1471 if (view != NULL && !view->IsClosing()) |
1472 return true; | 1472 return true; |
1473 | 1473 |
1474 return false; | 1474 return false; |
1475 } | 1475 } |
1476 | 1476 |
1477 void WebContentsViewAura::OnCaptureLost() { | 1477 void WebContentsViewAura::OnCaptureLost() { |
1478 } | 1478 } |
1479 | 1479 |
1480 void WebContentsViewAura::OnPaint(gfx::Canvas* canvas) { | 1480 void WebContentsViewAura::OnPaint(const ui::PaintContext& context) { |
1481 } | 1481 } |
1482 | 1482 |
1483 void WebContentsViewAura::OnDeviceScaleFactorChanged( | 1483 void WebContentsViewAura::OnDeviceScaleFactorChanged( |
1484 float device_scale_factor) { | 1484 float device_scale_factor) { |
1485 } | 1485 } |
1486 | 1486 |
1487 void WebContentsViewAura::OnWindowDestroying(aura::Window* window) { | 1487 void WebContentsViewAura::OnWindowDestroying(aura::Window* window) { |
1488 // This means the destructor is going to be called soon. If there is an | 1488 // This means the destructor is going to be called soon. If there is an |
1489 // overscroll gesture in progress (i.e. |overscroll_window_| is not NULL), | 1489 // overscroll gesture in progress (i.e. |overscroll_window_| is not NULL), |
1490 // then destroying it in the WebContentsViewAura destructor can trigger other | 1490 // then destroying it in the WebContentsViewAura destructor can trigger other |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 if (visible) { | 1646 if (visible) { |
1647 if (!web_contents_->should_normally_be_visible()) | 1647 if (!web_contents_->should_normally_be_visible()) |
1648 web_contents_->WasShown(); | 1648 web_contents_->WasShown(); |
1649 } else { | 1649 } else { |
1650 if (web_contents_->should_normally_be_visible()) | 1650 if (web_contents_->should_normally_be_visible()) |
1651 web_contents_->WasHidden(); | 1651 web_contents_->WasHidden(); |
1652 } | 1652 } |
1653 } | 1653 } |
1654 | 1654 |
1655 } // namespace content | 1655 } // namespace content |
OLD | NEW |