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

Unified Diff: components/html_viewer/html_frame_tree_manager.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
« no previous file with comments | « components/html_viewer/html_frame.cc ('k') | components/html_viewer/input_events_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_frame_tree_manager.cc
diff --git a/components/html_viewer/html_frame_tree_manager.cc b/components/html_viewer/html_frame_tree_manager.cc
index 58d7122c74cdaeaa1013fef9744748e6de94a449..1323b5ff3dfbea226a8daf58762649dcf48fcff9 100644
--- a/components/html_viewer/html_frame_tree_manager.cc
+++ b/components/html_viewer/html_frame_tree_manager.cc
@@ -100,10 +100,9 @@ HTMLFrame* HTMLFrameTreeManager::CreateFrameAndAttachToTree(
DVLOG(2) << "HTMLFrameTreeManager::CreateFrameAndAttachToTree "
<< " frame_tree=" << frame_tree << " use_existing="
<< (window_connect_type ==
- web_view::mojom::WINDOW_CONNECT_TYPE_USE_EXISTING)
+ web_view::mojom::WindowConnectType::USE_EXISTING)
<< " frame_id=" << window_id;
- if (window_connect_type ==
- web_view::mojom::WINDOW_CONNECT_TYPE_USE_EXISTING &&
+ if (window_connect_type == web_view::mojom::WindowConnectType::USE_EXISTING &&
!frame_tree) {
DVLOG(1) << "was told to use existing window but do not have frame tree";
return nullptr;
@@ -114,7 +113,7 @@ HTMLFrame* HTMLFrameTreeManager::CreateFrameAndAttachToTree(
frame_tree->Init(delegate, window, frame_data, change_id);
(*instances_)[frame_data[0]->frame_id] = frame_tree;
} else if (window_connect_type ==
- web_view::mojom::WINDOW_CONNECT_TYPE_USE_EXISTING) {
+ web_view::mojom::WindowConnectType::USE_EXISTING) {
HTMLFrame* existing_frame = frame_tree->root_->FindFrame(window_id);
if (!existing_frame) {
DVLOG(1) << "was told to use existing window but could not find window";
« no previous file with comments | « components/html_viewer/html_frame.cc ('k') | components/html_viewer/input_events_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698