diff options
author | anujk.sharma <anujk.sharma@samsung.com> | 2014-10-06 04:24:19 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-06 11:24:33 +0000 |
commit | e548191bdc2dd87ad7dd223ea1699c0b79c46695 (patch) | |
tree | 2cc1be061b69d2a98043c65d0b4a71ebc5af0e8b /gin | |
parent | 899fc2d96d02358d1bb4c6ca769fe2735bdbbb52 (diff) | |
download | chromium_src-e548191bdc2dd87ad7dd223ea1699c0b79c46695.zip chromium_src-e548191bdc2dd87ad7dd223ea1699c0b79c46695.tar.gz chromium_src-e548191bdc2dd87ad7dd223ea1699c0b79c46695.tar.bz2 |
Replacing the OVERRIDE with override and FINAL with final in /src/gin
This step is a giant search and replace for OVERRIDE and FINAL to
replace them with their lowercase versions.
BUG=417463
Review URL: https://codereview.chromium.org/629153002
Cr-Commit-Position: refs/heads/master@{#298220}
Diffstat (limited to 'gin')
-rw-r--r-- | gin/array_buffer.h | 6 | ||||
-rw-r--r-- | gin/interceptor_unittest.cc | 14 | ||||
-rw-r--r-- | gin/run_microtasks_observer.h | 4 | ||||
-rw-r--r-- | gin/shell_runner.h | 6 | ||||
-rw-r--r-- | gin/wrappable_unittest.cc | 6 |
5 files changed, 18 insertions, 18 deletions
diff --git a/gin/array_buffer.h b/gin/array_buffer.h index a07a472..048a35f 100644 --- a/gin/array_buffer.h +++ b/gin/array_buffer.h @@ -16,9 +16,9 @@ namespace gin { class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { public: - virtual void* Allocate(size_t length) OVERRIDE; - virtual void* AllocateUninitialized(size_t length) OVERRIDE; - virtual void Free(void* data, size_t length) OVERRIDE; + virtual void* Allocate(size_t length) override; + virtual void* AllocateUninitialized(size_t length) override; + virtual void Free(void* data, size_t length) override; GIN_EXPORT static ArrayBufferAllocator* SharedInstance(); }; diff --git a/gin/interceptor_unittest.cc b/gin/interceptor_unittest.cc index e25005b4..d267100 100644 --- a/gin/interceptor_unittest.cc +++ b/gin/interceptor_unittest.cc @@ -33,7 +33,7 @@ class MyInterceptor : public Wrappable<MyInterceptor>, // gin::NamedPropertyInterceptor virtual v8::Local<v8::Value> GetNamedProperty(v8::Isolate* isolate, const std::string& property) - OVERRIDE { + override { if (property == "value") { return ConvertToV8(isolate, value_); } else if (property == "func") { @@ -44,7 +44,7 @@ class MyInterceptor : public Wrappable<MyInterceptor>, } virtual bool SetNamedProperty(v8::Isolate* isolate, const std::string& property, - v8::Local<v8::Value> value) OVERRIDE { + v8::Local<v8::Value> value) override { if (property == "value") { ConvertFromV8(isolate, value, &value_); return true; @@ -52,7 +52,7 @@ class MyInterceptor : public Wrappable<MyInterceptor>, return false; } virtual std::vector<std::string> EnumerateNamedProperties( - v8::Isolate* isolate) OVERRIDE { + v8::Isolate* isolate) override { std::vector<std::string> result; result.push_back("func"); result.push_back("value"); @@ -61,14 +61,14 @@ class MyInterceptor : public Wrappable<MyInterceptor>, // gin::IndexedPropertyInterceptor virtual v8::Local<v8::Value> GetIndexedProperty(v8::Isolate* isolate, - uint32_t index) OVERRIDE { + uint32_t index) override { if (index == 0) return ConvertToV8(isolate, value_); return v8::Local<v8::Value>(); } virtual bool SetIndexedProperty(v8::Isolate* isolate, uint32_t index, - v8::Local<v8::Value> value) OVERRIDE { + v8::Local<v8::Value> value) override { if (index == 0) { ConvertFromV8(isolate, value, &value_); return true; @@ -77,7 +77,7 @@ class MyInterceptor : public Wrappable<MyInterceptor>, return true; } virtual std::vector<uint32_t> EnumerateIndexedProperties(v8::Isolate* isolate) - OVERRIDE { + override { std::vector<uint32_t> result; result.push_back(0); return result; @@ -93,7 +93,7 @@ class MyInterceptor : public Wrappable<MyInterceptor>, // gin::Wrappable virtual ObjectTemplateBuilder GetObjectTemplateBuilder(v8::Isolate* isolate) - OVERRIDE { + override { return Wrappable<MyInterceptor>::GetObjectTemplateBuilder(isolate) .AddNamedPropertyInterceptor() .AddIndexedPropertyInterceptor(); diff --git a/gin/run_microtasks_observer.h b/gin/run_microtasks_observer.h index e848239..d31d804 100644 --- a/gin/run_microtasks_observer.h +++ b/gin/run_microtasks_observer.h @@ -18,8 +18,8 @@ class RunMicrotasksObserver : public base::MessageLoop::TaskObserver { public: RunMicrotasksObserver(v8::Isolate* isolate); - virtual void WillProcessTask(const base::PendingTask& pending_task) OVERRIDE; - virtual void DidProcessTask(const base::PendingTask& pending_task) OVERRIDE; + virtual void WillProcessTask(const base::PendingTask& pending_task) override; + virtual void DidProcessTask(const base::PendingTask& pending_task) override; private: v8::Isolate* isolate_; diff --git a/gin/shell_runner.h b/gin/shell_runner.h index 645bc8e..ca88a5d 100644 --- a/gin/shell_runner.h +++ b/gin/shell_runner.h @@ -44,12 +44,12 @@ class GIN_EXPORT ShellRunner : public Runner { // Runner overrides: virtual void Run(const std::string& source, - const std::string& resource_name) OVERRIDE; + const std::string& resource_name) override; virtual v8::Handle<v8::Value> Call(v8::Handle<v8::Function> function, v8::Handle<v8::Value> receiver, int argc, - v8::Handle<v8::Value> argv[]) OVERRIDE; - virtual ContextHolder* GetContextHolder() OVERRIDE; + v8::Handle<v8::Value> argv[]) override; + virtual ContextHolder* GetContextHolder() override; private: friend class Scope; diff --git a/gin/wrappable_unittest.cc b/gin/wrappable_unittest.cc index f3de48f..0e10c32 100644 --- a/gin/wrappable_unittest.cc +++ b/gin/wrappable_unittest.cc @@ -41,7 +41,7 @@ class MyObject : public BaseClass, protected: MyObject() : value_(0) {} virtual ObjectTemplateBuilder GetObjectTemplateBuilder( - v8::Isolate* isolate) OVERRIDE; + v8::Isolate* isolate) override; virtual ~MyObject() {} private: @@ -62,7 +62,7 @@ class MyObjectSubclass : public MyObject { private: virtual ObjectTemplateBuilder GetObjectTemplateBuilder( - v8::Isolate* isolate) OVERRIDE { + v8::Isolate* isolate) override { return MyObject::GetObjectTemplateBuilder(isolate) .SetMethod("sayHello", &MyObjectSubclass::SayHello); } @@ -86,7 +86,7 @@ class MyCallableObject : public Wrappable<MyCallableObject> { private: virtual ObjectTemplateBuilder GetObjectTemplateBuilder( - v8::Isolate* isolate) OVERRIDE { + v8::Isolate* isolate) override { return Wrappable<MyCallableObject>::GetObjectTemplateBuilder(isolate) .SetCallAsFunctionHandler(&MyCallableObject::Call); } |