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

Unified Diff: components/web_view/web_view_impl.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: components/web_view/web_view_impl.cc
diff --git a/components/web_view/web_view_impl.cc b/components/web_view/web_view_impl.cc
index 43f01118cfb9fc0041611e86db258a533094cd28..2ae9cf58358031fe88e511a11f0ec548679c6fca 100644
--- a/components/web_view/web_view_impl.cc
+++ b/components/web_view/web_view_impl.cc
@@ -265,12 +265,11 @@ void WebViewImpl::OnNavigate(mojo::URLRequestPtr request) {
}
void WebViewImpl::OnDidNavigate() {
- client_->BackForwardChanged(navigation_controller_.CanGoBack()
- ? ButtonState::BUTTON_STATE_ENABLED
- : ButtonState::BUTTON_STATE_DISABLED,
- navigation_controller_.CanGoForward()
- ? ButtonState::BUTTON_STATE_ENABLED
- : ButtonState::BUTTON_STATE_DISABLED);
+ client_->BackForwardChanged(
+ navigation_controller_.CanGoBack() ? ButtonState::ENABLED
+ : ButtonState::DISABLED,
+ navigation_controller_.CanGoForward() ? ButtonState::ENABLED
+ : ButtonState::DISABLED);
}
////////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698