| 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_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 6 | 6 |
| 7 #include <math.h> | 7 #include <math.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 | 194 |
| 195 is_threaded_compositing_enabled_ = IsThreadedCompositingEnabled(); | 195 is_threaded_compositing_enabled_ = IsThreadedCompositingEnabled(); |
| 196 | 196 |
| 197 process_->Attach(this, routing_id_); | 197 process_->Attach(this, routing_id_); |
| 198 // Because the widget initializes as is_hidden_ == false, | 198 // Because the widget initializes as is_hidden_ == false, |
| 199 // tell the process host that we're alive. | 199 // tell the process host that we're alive. |
| 200 process_->WidgetRestored(); | 200 process_->WidgetRestored(); |
| 201 | 201 |
| 202 accessibility_mode_ = | 202 accessibility_mode_ = |
| 203 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode(); | 203 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode(); |
| 204 | 204 |
| 205 #if defined(USE_AURA) | 205 #if defined(USE_AURA) |
| 206 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> | 206 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> |
| 207 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; | 207 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; |
| 208 SetOverscrollControllerEnabled(overscroll_enabled); | 208 SetOverscrollControllerEnabled(overscroll_enabled); |
| 209 #endif | 209 #endif |
| 210 } | 210 } |
| 211 | 211 |
| 212 RenderWidgetHostImpl::~RenderWidgetHostImpl() { | 212 RenderWidgetHostImpl::~RenderWidgetHostImpl() { |
| 213 SetView(NULL); | 213 SetView(NULL); |
| (...skipping 2256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2470 return; | 2470 return; |
| 2471 | 2471 |
| 2472 OnRenderAutoResized(new_size); | 2472 OnRenderAutoResized(new_size); |
| 2473 } | 2473 } |
| 2474 | 2474 |
| 2475 void RenderWidgetHostImpl::DetachDelegate() { | 2475 void RenderWidgetHostImpl::DetachDelegate() { |
| 2476 delegate_ = NULL; | 2476 delegate_ = NULL; |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 } // namespace content | 2479 } // namespace content |
| OLD | NEW |