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

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: rebase Created 4 years, 11 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 e07f3cf59a454a52fade0a51273b6a54914aad1b..e4ee5cfd1bdd817410af21bf1a610925954c622a 100644
--- a/components/web_view/web_view_impl.cc
+++ b/components/web_view/web_view_impl.cc
@@ -255,12 +255,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);
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « components/web_view/web_view_apptest.cc ('k') | content/browser/background_sync/background_sync_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698