| 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: | 1779 // RenderWidgetHostViewAura, aura::WindowDelegate implementation: |
| 1780 | 1780 |
| 1781 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { | 1781 gfx::Size RenderWidgetHostViewAura::GetMinimumSize() const { |
| 1782 return gfx::Size(); | 1782 return gfx::Size(); |
| 1783 } | 1783 } |
| 1784 | 1784 |
| 1785 gfx::Size RenderWidgetHostViewAura::GetMaximumSize() const { | 1785 gfx::Size RenderWidgetHostViewAura::GetMaximumSize() const { |
| 1786 return gfx::Size(); | 1786 return gfx::Size(); |
| 1787 } | 1787 } |
| 1788 | 1788 |
| 1789 void RenderWidgetHostViewAura::SetHostTransitionBounds( |
| 1790 const gfx::Rect& bounds) { |
| 1791 } |
| 1792 |
| 1789 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, | 1793 void RenderWidgetHostViewAura::OnBoundsChanged(const gfx::Rect& old_bounds, |
| 1790 const gfx::Rect& new_bounds) { | 1794 const gfx::Rect& new_bounds) { |
| 1791 // We care about this only in fullscreen mode, where there is no | 1795 // We care about this only in fullscreen mode, where there is no |
| 1792 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by | 1796 // WebContentsViewAura. We are sized via SetSize() or SetBounds() by |
| 1793 // WebContentsViewAura in other cases. | 1797 // WebContentsViewAura in other cases. |
| 1794 if (is_fullscreen_) | 1798 if (is_fullscreen_) |
| 1795 SetSize(new_bounds.size()); | 1799 SetSize(new_bounds.size()); |
| 1796 } | 1800 } |
| 1797 | 1801 |
| 1798 gfx::NativeCursor RenderWidgetHostViewAura::GetCursor(const gfx::Point& point) { | 1802 gfx::NativeCursor RenderWidgetHostViewAura::GetCursor(const gfx::Point& point) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1862 LPARAM lparam = reinterpret_cast<LPARAM>(this); | 1866 LPARAM lparam = reinterpret_cast<LPARAM>(this); |
| 1863 EnumChildWindows(parent, WindowDestroyingCallback, lparam); | 1867 EnumChildWindows(parent, WindowDestroyingCallback, lparam); |
| 1864 #endif | 1868 #endif |
| 1865 } | 1869 } |
| 1866 | 1870 |
| 1867 void RenderWidgetHostViewAura::OnWindowDestroyed() { | 1871 void RenderWidgetHostViewAura::OnWindowDestroyed() { |
| 1868 host_->ViewDestroyed(); | 1872 host_->ViewDestroyed(); |
| 1869 delete this; | 1873 delete this; |
| 1870 } | 1874 } |
| 1871 | 1875 |
| 1876 void RenderWidgetHostViewAura::OnWindowHidingAnimationCompleted() { |
| 1877 } |
| 1878 |
| 1872 void RenderWidgetHostViewAura::OnWindowTargetVisibilityChanged(bool visible) { | 1879 void RenderWidgetHostViewAura::OnWindowTargetVisibilityChanged(bool visible) { |
| 1873 } | 1880 } |
| 1874 | 1881 |
| 1875 bool RenderWidgetHostViewAura::HasHitTestMask() const { | 1882 bool RenderWidgetHostViewAura::HasHitTestMask() const { |
| 1876 return false; | 1883 return false; |
| 1877 } | 1884 } |
| 1878 | 1885 |
| 1879 void RenderWidgetHostViewAura::GetHitTestMask(gfx::Path* mask) const { | 1886 void RenderWidgetHostViewAura::GetHitTestMask(gfx::Path* mask) const { |
| 1880 } | 1887 } |
| 1881 | 1888 |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 RenderWidgetHost* widget) { | 2491 RenderWidgetHost* widget) { |
| 2485 return new RenderWidgetHostViewAura(widget); | 2492 return new RenderWidgetHostViewAura(widget); |
| 2486 } | 2493 } |
| 2487 | 2494 |
| 2488 // static | 2495 // static |
| 2489 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { | 2496 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { |
| 2490 GetScreenInfoForWindow(results, NULL); | 2497 GetScreenInfoForWindow(results, NULL); |
| 2491 } | 2498 } |
| 2492 | 2499 |
| 2493 } // namespace content | 2500 } // namespace content |
| OLD | NEW |