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

Side by Side Diff: third_party/WebKit/Source/core/page/scrolling/ScrollStateCallback.cpp

Issue 2844223006: Replace ASSERT_NOT_REACHED with NOTREACHED in core/page (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/page/TouchAdjustment.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "core/page/scrolling/ScrollStateCallback.h" 5 #include "core/page/scrolling/ScrollStateCallback.h"
6 6
7 #include "platform/wtf/text/WTFString.h" 7 #include "platform/wtf/text/WTFString.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 WebNativeScrollBehavior ScrollStateCallback::ToNativeScrollBehavior( 11 WebNativeScrollBehavior ScrollStateCallback::ToNativeScrollBehavior(
12 String native_scroll_behavior) { 12 String native_scroll_behavior) {
13 static const char kDisable[] = "disable-native-scroll"; 13 static const char kDisable[] = "disable-native-scroll";
14 static const char kBefore[] = "perform-before-native-scroll"; 14 static const char kBefore[] = "perform-before-native-scroll";
15 static const char kAfter[] = "perform-after-native-scroll"; 15 static const char kAfter[] = "perform-after-native-scroll";
16 16
17 if (native_scroll_behavior == kDisable) 17 if (native_scroll_behavior == kDisable)
18 return WebNativeScrollBehavior::kDisableNativeScroll; 18 return WebNativeScrollBehavior::kDisableNativeScroll;
19 if (native_scroll_behavior == kBefore) 19 if (native_scroll_behavior == kBefore)
20 return WebNativeScrollBehavior::kPerformBeforeNativeScroll; 20 return WebNativeScrollBehavior::kPerformBeforeNativeScroll;
21 if (native_scroll_behavior == kAfter) 21 if (native_scroll_behavior == kAfter)
22 return WebNativeScrollBehavior::kPerformAfterNativeScroll; 22 return WebNativeScrollBehavior::kPerformAfterNativeScroll;
23 23
24 ASSERT_NOT_REACHED(); 24 NOTREACHED();
25 return WebNativeScrollBehavior::kDisableNativeScroll; 25 return WebNativeScrollBehavior::kDisableNativeScroll;
26 } 26 }
27 27
28 } // namespace blink 28 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/TouchAdjustment.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698