chore: used nested namespaces (#34737)
This commit is contained in:
parent
0d4e417594
commit
5d120359f6
122 changed files with 246 additions and 738 deletions
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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_
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue