Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 16335006: gesture nav: Disable for M28. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 process_->WidgetRestored(); 202 process_->WidgetRestored();
203 203
204 accessibility_mode_ = 204 accessibility_mode_ =
205 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode(); 205 BrowserAccessibilityStateImpl::GetInstance()->accessibility_mode();
206 206
207 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++) 207 for (size_t i = 0; i < g_created_callbacks.Get().size(); i++)
208 g_created_callbacks.Get().at(i).Run(this); 208 g_created_callbacks.Get().at(i).Run(this);
209 209
210 #if defined(USE_AURA) 210 #if defined(USE_AURA)
211 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> 211 bool overscroll_enabled = CommandLine::ForCurrentProcess()->
212 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; 212 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) == "1";
213 SetOverscrollControllerEnabled(overscroll_enabled); 213 SetOverscrollControllerEnabled(overscroll_enabled);
214 #endif 214 #endif
215 } 215 }
216 216
217 RenderWidgetHostImpl::~RenderWidgetHostImpl() { 217 RenderWidgetHostImpl::~RenderWidgetHostImpl() {
218 SetView(NULL); 218 SetView(NULL);
219 219
220 // Clear our current or cached backing store if either remains. 220 // Clear our current or cached backing store if either remains.
221 BackingStoreManager::RemoveBackingStore(this); 221 BackingStoreManager::RemoveBackingStore(this);
222 222
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 } 2503 }
2504 2504
2505 void RenderWidgetHostImpl::DetachDelegate() { 2505 void RenderWidgetHostImpl::DetachDelegate() {
2506 delegate_ = NULL; 2506 delegate_ = NULL;
2507 } 2507 }
2508 2508
2509 void RenderWidgetHostImpl::FrameSwapped(const ui::LatencyInfo& latency_info) { 2509 void RenderWidgetHostImpl::FrameSwapped(const ui::LatencyInfo& latency_info) {
2510 } 2510 }
2511 2511
2512 } // namespace content 2512 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/web_contents/web_contents_screenshot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698