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: ppapi/shared_impl/flash_clipboard_format_registry.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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 | « ppapi/shared_impl/flash_clipboard_format_registry.h ('k') | ppapi/shared_impl/host_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/flash_clipboard_format_registry.cc
diff --git a/ppapi/shared_impl/flash_clipboard_format_registry.cc b/ppapi/shared_impl/flash_clipboard_format_registry.cc
index a5d50c6432cde1a8739d97fc50cdf4682b1b9ffe..89a051e2d3d9c5d5c6f833b38c9efedec531d569 100644
--- a/ppapi/shared_impl/flash_clipboard_format_registry.cc
+++ b/ppapi/shared_impl/flash_clipboard_format_registry.cc
@@ -17,11 +17,8 @@ const size_t kMaxFormatNameLength = 50;
// All formats in PP_Flash_Clipboard_Format should be added here.
const PP_Flash_Clipboard_Format kPredefinedFormats[] = {
- PP_FLASH_CLIPBOARD_FORMAT_INVALID,
- PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT,
- PP_FLASH_CLIPBOARD_FORMAT_HTML,
- PP_FLASH_CLIPBOARD_FORMAT_RTF
-};
+ PP_FLASH_CLIPBOARD_FORMAT_INVALID, PP_FLASH_CLIPBOARD_FORMAT_PLAINTEXT,
+ PP_FLASH_CLIPBOARD_FORMAT_HTML, PP_FLASH_CLIPBOARD_FORMAT_RTF};
// The first custom format ID will be the ID after that max value in
// PP_Flash_Clipboard_Format.
@@ -36,11 +33,9 @@ bool IsValidFormatName(const std::string& format_name) {
} // namespace
-FlashClipboardFormatRegistry::FlashClipboardFormatRegistry() {
-}
+FlashClipboardFormatRegistry::FlashClipboardFormatRegistry() {}
-FlashClipboardFormatRegistry::~FlashClipboardFormatRegistry() {
-}
+FlashClipboardFormatRegistry::~FlashClipboardFormatRegistry() {}
uint32_t FlashClipboardFormatRegistry::RegisterFormat(
const std::string& format_name) {
@@ -63,8 +58,7 @@ bool FlashClipboardFormatRegistry::IsFormatRegistered(uint32_t format) const {
return custom_formats_.find(format) != custom_formats_.end();
}
-std::string FlashClipboardFormatRegistry::GetFormatName(
- uint32_t format) const {
+std::string FlashClipboardFormatRegistry::GetFormatName(uint32_t format) const {
FormatMap::const_iterator it = custom_formats_.find(format);
if (it == custom_formats_.end())
return std::string();
@@ -74,7 +68,8 @@ std::string FlashClipboardFormatRegistry::GetFormatName(
uint32_t FlashClipboardFormatRegistry::GetFormatID(
const std::string& format_name) const {
for (FormatMap::const_iterator it = custom_formats_.begin();
- it != custom_formats_.end(); ++it) {
+ it != custom_formats_.end();
+ ++it) {
if (it->second == format_name)
return it->first;
}
« no previous file with comments | « ppapi/shared_impl/flash_clipboard_format_registry.h ('k') | ppapi/shared_impl/host_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698