| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 } | 189 } |
| 190 | 190 |
| 191 is_threaded_compositing_enabled_ = IsThreadedCompositingEnabled(); | 191 is_threaded_compositing_enabled_ = IsThreadedCompositingEnabled(); |
| 192 | 192 |
| 193 process_->Attach(this, routing_id_); | 193 process_->Attach(this, routing_id_); |
| 194 // Because the widget initializes as is_hidden_ == false, | 194 // Because the widget initializes as is_hidden_ == false, |
| 195 // tell the process host that we're alive. | 195 // tell the process host that we're alive. |
| 196 process_->WidgetRestored(); | 196 process_->WidgetRestored(); |
| 197 | 197 |
| 198 accessibility_mode_ = | 198 accessibility_mode_ = |
| 199 BrowserAccessibilityStateImpl::GetInstance()->GetAccessibilityMode(); | 199 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode(); |
| 200 | 200 |
| 201 #if defined(USE_AURA) | 201 #if defined(USE_AURA) |
| 202 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> | 202 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> |
| 203 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; | 203 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; |
| 204 SetOverscrollControllerEnabled(overscroll_enabled); | 204 SetOverscrollControllerEnabled(overscroll_enabled); |
| 205 #endif | 205 #endif |
| 206 } | 206 } |
| 207 | 207 |
| 208 RenderWidgetHostImpl::~RenderWidgetHostImpl() { | 208 RenderWidgetHostImpl::~RenderWidgetHostImpl() { |
| 209 SetView(NULL); | 209 SetView(NULL); |
| (...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 return; | 2395 return; |
| 2396 | 2396 |
| 2397 OnRenderAutoResized(new_size); | 2397 OnRenderAutoResized(new_size); |
| 2398 } | 2398 } |
| 2399 | 2399 |
| 2400 void RenderWidgetHostImpl::DetachDelegate() { | 2400 void RenderWidgetHostImpl::DetachDelegate() { |
| 2401 delegate_ = NULL; | 2401 delegate_ = NULL; |
| 2402 } | 2402 } |
| 2403 | 2403 |
| 2404 } // namespace content | 2404 } // namespace content |
| OLD | NEW |