chore: used nested namespaces (#34737)

This commit is contained in:
David Sanders 2022-06-29 12:55:47 -07:00 committed by GitHub
parent 0d4e417594
commit 5d120359f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
122 changed files with 246 additions and 738 deletions

View file

@ -8,11 +8,7 @@
#include "shell/common/api/object_life_monitor.h"
namespace electron {
namespace api {
namespace context_bridge {
namespace electron::api::context_bridge {
ObjectCache::ObjectCache() = default;
ObjectCache::~ObjectCache() = default;
@ -50,8 +46,4 @@ v8::MaybeLocal<v8::Value> ObjectCache::GetCachedProxiedObject(
return v8::MaybeLocal<v8::Value>();
}
} // namespace context_bridge
} // namespace api
} // namespace electron
} // namespace electron::api::context_bridge

View file

@ -15,11 +15,7 @@
#include "shell/renderer/electron_render_frame_observer.h"
#include "third_party/blink/public/web/web_local_frame.h"
namespace electron {
namespace api {
namespace context_bridge {
namespace electron::api::context_bridge {
using ObjectCachePair = std::pair<v8::Local<v8::Value>, v8::Local<v8::Value>>;
@ -38,10 +34,6 @@ class ObjectCache final {
std::unordered_map<int, std::forward_list<ObjectCachePair>> proxy_map_;
};
} // namespace context_bridge
} // namespace api
} // namespace electron
} // namespace electron::api::context_bridge
#endif // ELECTRON_SHELL_RENDERER_API_CONTEXT_BRIDGE_OBJECT_CACHE_H_

View file

@ -12,9 +12,7 @@ namespace gin_helper {
class Arguments;
}
namespace electron {
namespace api {
namespace electron::api {
void ProxyFunctionWrapper(const v8::FunctionCallbackInfo<v8::Value>& info);
@ -51,8 +49,6 @@ v8::MaybeLocal<v8::Object> CreateProxyForAPI(
bool support_dynamic_properties,
int recursion_depth);
} // namespace api
} // namespace electron
} // namespace electron::api
#endif // ELECTRON_SHELL_RENDERER_API_ELECTRON_API_CONTEXT_BRIDGE_H_

View file

@ -22,9 +22,7 @@
#include "third_party/blink/public/web/web_text_checking_result.h"
#include "third_party/icu/source/common/unicode/uscript.h"
namespace electron {
namespace api {
namespace electron::api {
namespace {
@ -275,6 +273,4 @@ SpellCheckClient::SpellCheckScope::SpellCheckScope(
SpellCheckClient::SpellCheckScope::~SpellCheckScope() = default;
} // namespace api
} // namespace electron
} // namespace electron::api

View file

@ -23,9 +23,7 @@ struct WebTextCheckingResult;
class WebTextCheckingCompletion;
} // namespace blink
namespace electron {
namespace api {
namespace electron::api {
class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
public blink::WebTextCheckClient,
@ -109,8 +107,6 @@ class SpellCheckClient : public blink::WebSpellCheckPanelHostClient,
v8::Global<v8::Function> spell_check_;
};
} // namespace api
} // namespace electron
} // namespace electron::api
#endif // ELECTRON_SHELL_RENDERER_API_ELECTRON_API_SPELL_CHECK_CLIENT_H_