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

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.h

Issue 617543002: Disable overscroll on Windows machines w/o touchscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 max_entry_count_for_testing_ = max_entry_count; 190 max_entry_count_for_testing_ = max_entry_count;
191 } 191 }
192 static size_t max_entry_count(); 192 static size_t max_entry_count();
193 193
194 void SetGetTimestampCallbackForTest( 194 void SetGetTimestampCallbackForTest(
195 const base::Callback<base::Time()>& get_timestamp_callback); 195 const base::Callback<base::Time()>& get_timestamp_callback);
196 196
197 // Takes a screenshot of the page at the current state. 197 // Takes a screenshot of the page at the current state.
198 void TakeScreenshot(); 198 void TakeScreenshot();
199 199
200 bool ShouldTakeScreenshotOnNavigation();
201
200 // Sets the screenshot manager for this NavigationControllerImpl. The 202 // Sets the screenshot manager for this NavigationControllerImpl. The
201 // controller takes ownership of the screenshot manager and destroys it when 203 // controller takes ownership of the screenshot manager and destroys it when
202 // a new screenshot-manager is set, or when the controller is destroyed. 204 // a new screenshot-manager is set, or when the controller is destroyed.
203 // Setting a NULL manager recreates the default screenshot manager and uses 205 // Setting a NULL manager recreates the default screenshot manager and uses
204 // that. 206 // that.
205 void SetScreenshotManager(NavigationEntryScreenshotManager* manager); 207 void SetScreenshotManager(NavigationEntryScreenshotManager* manager);
206 208
207 // Discards only the pending entry. 209 // Discards only the pending entry.
208 void DiscardPendingEntry(); 210 void DiscardPendingEntry();
209 211
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 TimeSmoother time_smoother_; 415 TimeSmoother time_smoother_;
414 416
415 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; 417 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_;
416 418
417 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 419 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
418 }; 420 };
419 421
420 } // namespace content 422 } // namespace content
421 423
422 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 424 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl.cc » ('j') | content/browser/frame_host/navigator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698