| 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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 TRACE_EVENT1("ui", | 586 TRACE_EVENT1("ui", |
| 587 "WebContentsViewAura::WindowObserver::OnHostMoved", | 587 "WebContentsViewAura::WindowObserver::OnHostMoved", |
| 588 "new_origin", new_origin.ToString()); | 588 "new_origin", new_origin.ToString()); |
| 589 | 589 |
| 590 // This is for the desktop case (i.e. Aura desktop). | 590 // This is for the desktop case (i.e. Aura desktop). |
| 591 SendScreenRects(); | 591 SendScreenRects(); |
| 592 } | 592 } |
| 593 | 593 |
| 594 private: | 594 private: |
| 595 void SendScreenRects() { | 595 void SendScreenRects() { |
| 596 RenderWidgetHostImpl::From(view_->web_contents_->GetRenderViewHost())-> | 596 RenderWidgetHostImpl::From( |
| 597 SendScreenRects(); | 597 view_->web_contents_->GetRenderViewHost()->GetWidget()) |
| 598 ->SendScreenRects(); |
| 598 } | 599 } |
| 599 | 600 |
| 600 #if defined(OS_WIN) | 601 #if defined(OS_WIN) |
| 601 void UpdateConstrainedWindows(aura::Window* exclude) { | 602 void UpdateConstrainedWindows(aura::Window* exclude) { |
| 602 RenderWidgetHostViewAura* view = ToRenderWidgetHostViewAura( | 603 RenderWidgetHostViewAura* view = ToRenderWidgetHostViewAura( |
| 603 view_->web_contents_->GetRenderWidgetHostView()); | 604 view_->web_contents_->GetRenderWidgetHostView()); |
| 604 if (!view) | 605 if (!view) |
| 605 return; | 606 return; |
| 606 | 607 |
| 607 std::vector<gfx::Rect> constrained_windows; | 608 std::vector<gfx::Rect> constrained_windows; |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 if (visible) { | 1317 if (visible) { |
| 1317 if (!web_contents_->should_normally_be_visible()) | 1318 if (!web_contents_->should_normally_be_visible()) |
| 1318 web_contents_->WasShown(); | 1319 web_contents_->WasShown(); |
| 1319 } else { | 1320 } else { |
| 1320 if (web_contents_->should_normally_be_visible()) | 1321 if (web_contents_->should_normally_be_visible()) |
| 1321 web_contents_->WasHidden(); | 1322 web_contents_->WasHidden(); |
| 1322 } | 1323 } |
| 1323 } | 1324 } |
| 1324 | 1325 |
| 1325 } // namespace content | 1326 } // namespace content |
| OLD | NEW |