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/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 AttachTouchEditableToRenderView(); | 1128 AttachTouchEditableToRenderView(); |
1129 return view; | 1129 return view; |
1130 } | 1130 } |
1131 | 1131 |
1132 RenderWidgetHostViewBase* WebContentsViewAura::CreateViewForPopupWidget( | 1132 RenderWidgetHostViewBase* WebContentsViewAura::CreateViewForPopupWidget( |
1133 RenderWidgetHost* render_widget_host) { | 1133 RenderWidgetHost* render_widget_host) { |
1134 return new RenderWidgetHostViewAura(render_widget_host); | 1134 return new RenderWidgetHostViewAura(render_widget_host); |
1135 } | 1135 } |
1136 | 1136 |
1137 void WebContentsViewAura::SetPageTitle(const base::string16& title) { | 1137 void WebContentsViewAura::SetPageTitle(const base::string16& title) { |
1138 window_->set_title(title); | 1138 window_->SetTitle(title); |
1139 } | 1139 } |
1140 | 1140 |
1141 void WebContentsViewAura::RenderViewCreated(RenderViewHost* host) { | 1141 void WebContentsViewAura::RenderViewCreated(RenderViewHost* host) { |
1142 } | 1142 } |
1143 | 1143 |
1144 void WebContentsViewAura::RenderViewSwappedIn(RenderViewHost* host) { | 1144 void WebContentsViewAura::RenderViewSwappedIn(RenderViewHost* host) { |
1145 if (navigation_overlay_.get() && navigation_overlay_->has_window()) | 1145 if (navigation_overlay_.get() && navigation_overlay_->has_window()) |
1146 navigation_overlay_->StartObserving(); | 1146 navigation_overlay_->StartObserving(); |
1147 AttachTouchEditableToRenderView(); | 1147 AttachTouchEditableToRenderView(); |
1148 } | 1148 } |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1569 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window, | 1569 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window, |
1570 bool visible) { | 1570 bool visible) { |
1571 // Ignore any visibility changes in the hierarchy below. | 1571 // Ignore any visibility changes in the hierarchy below. |
1572 if (window != window_.get() && window_->Contains(window)) | 1572 if (window != window_.get() && window_->Contains(window)) |
1573 return; | 1573 return; |
1574 | 1574 |
1575 UpdateWebContentsVisibility(web_contents_, visible); | 1575 UpdateWebContentsVisibility(web_contents_, visible); |
1576 } | 1576 } |
1577 | 1577 |
1578 } // namespace content | 1578 } // namespace content |
OLD | NEW |