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

Unified Diff: components/html_viewer/web_clipboard_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
« no previous file with comments | « components/html_viewer/touch_handler.cc ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_clipboard_impl.cc
diff --git a/components/html_viewer/web_clipboard_impl.cc b/components/html_viewer/web_clipboard_impl.cc
index 33053cfbc4a98de66bd3a032235561cd08b8c1b5..35b3153f4c032ad02bf98fe034cf1879d6414950 100644
--- a/components/html_viewer/web_clipboard_impl.cc
+++ b/components/html_viewer/web_clipboard_impl.cc
@@ -176,7 +176,7 @@ void WebClipboardImpl::writePlainText(const blink::WebString& plain_text) {
Map<String, Array<uint8_t>> data;
data[Clipboard::MIME_TYPE_TEXT] = Array<uint8_t>::From(plain_text);
- clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, std::move(data));
+ clipboard_->WriteClipboardData(Clipboard::Type::COPY_PASTE, std::move(data));
}
void WebClipboardImpl::writeHTML(const blink::WebString& html_text,
@@ -191,19 +191,19 @@ void WebClipboardImpl::writeHTML(const blink::WebString& html_text,
if (writeSmartPaste)
data[kMimeTypeWebkitSmartPaste] = Array<uint8_t>::From(blink::WebString());
- clipboard_->WriteClipboardData(Clipboard::TYPE_COPY_PASTE, std::move(data));
+ clipboard_->WriteClipboardData(Clipboard::Type::COPY_PASTE, std::move(data));
}
Clipboard::Type WebClipboardImpl::ConvertBufferType(Buffer buffer) {
switch (buffer) {
case BufferStandard:
- return Clipboard::TYPE_COPY_PASTE;
+ return Clipboard::Type::COPY_PASTE;
case BufferSelection:
- return Clipboard::TYPE_SELECTION;
+ return Clipboard::Type::SELECTION;
}
NOTREACHED();
- return Clipboard::TYPE_COPY_PASTE;
+ return Clipboard::Type::COPY_PASTE;
}
} // namespace html_viewer
« no previous file with comments | « components/html_viewer/touch_handler.cc ('k') | components/html_viewer/web_layer_tree_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698