Skip to content

Commit 98a9b0a

Browse files
committed
rename 'api' namespace to 'nwapi'
1 parent 8b1c534 commit 98a9b0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+104
-105
lines changed

src/api/app/app.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ using content::Shell;
4040
using content::ShellBrowserContext;
4141
using content::RenderProcessHost;
4242

43-
namespace api {
43+
namespace nwapi {
4444

4545
namespace {
4646

@@ -216,4 +216,4 @@ void App::ClearCache(content::RenderProcessHost* render_process_host) {
216216
render_process_host->GetID());
217217
}
218218

219-
} // namespace api
219+
} // namespace nwapi

src/api/app/app.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RenderProcessHost;
3434
class Shell;
3535
}
3636

37-
namespace api {
37+
namespace nwapi {
3838

3939
class App {
4040
public:
@@ -66,7 +66,7 @@ class App {
6666
DISALLOW_COPY_AND_ASSIGN(App);
6767
};
6868

69-
} // namespace api
69+
} // namespace nwapi
7070

7171
#endif // CONTENT_NW_SRC_API_APP_APP_H_
7272

src/api/base/base.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "base/logging.h"
2424
#include "base/values.h"
2525

26-
namespace api {
26+
namespace nwapi {
2727

2828
Base::Base(int id,
2929
DispatcherHost* dispatcher_host,
@@ -50,4 +50,4 @@ void Base::CallSync(const std::string& method,
5050
<< " arguments:" << arguments;
5151
}
5252

53-
} // namespace api
53+
} // namespace nwapi

src/api/base/base.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DictionaryValue;
3030
class ListValue;
3131
}
3232

33-
namespace api {
33+
namespace nwapi {
3434

3535
class DispatcherHost;
3636

@@ -57,6 +57,6 @@ class Base {
5757
DISALLOW_COPY_AND_ASSIGN(Base);
5858
};
5959

60-
} // namespace api
60+
} // namespace nwapi
6161

6262
#endif // CONTENT_NW_SRC_API_BASE_BASE_H_

src/api/clipboard/clipboard.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "content/nw/src/api/dispatcher_host.h"
2727
#include "ui/base/clipboard/clipboard.h"
2828

29-
namespace api {
29+
namespace nwapi {
3030

3131
Clipboard::Clipboard(int id,
3232
DispatcherHost* dispatcher_host,
@@ -83,4 +83,4 @@ void Clipboard::Clear() {
8383
clipboard->Clear(ui::Clipboard::BUFFER_STANDARD);
8484
}
8585

86-
} // namespace api
86+
} // namespace nwapi

src/api/clipboard/clipboard.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "base/compiler_specific.h"
2525
#include "content/nw/src/api/base/base.h"
2626

27-
namespace api {
27+
namespace nwapi {
2828

2929
class Clipboard : public Base {
3030
public:
@@ -47,6 +47,6 @@ class Clipboard : public Base {
4747
DISALLOW_COPY_AND_ASSIGN(Clipboard);
4848
};
4949

50-
} // namespace api
50+
} // namespace nwapi
5151

5252
#endif // CONTENT_NW_SRC_API_CLIPBOARD_CLIPBOARD_H_

src/api/dispatcher.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "third_party/WebKit/public/web/WebView.h"
3333
#include "v8/include/v8.h"
3434

35-
namespace api {
35+
namespace nwapi {
3636

3737
Dispatcher::Dispatcher(content::RenderView* render_view)
3838
: content::RenderViewObserver(render_view) {
@@ -112,4 +112,4 @@ void Dispatcher::ZoomLevelChanged() {
112112

113113
node::MakeCallback(objects_registry, "handleEvent", 3, argv);
114114
}
115-
} // namespace api
115+
} // namespace nwapi

src/api/dispatcher.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace WebKit {
3232
class WebFrame;
3333
}
3434

35-
namespace api {
35+
namespace nwapi {
3636

3737
class Dispatcher : public content::RenderViewObserver {
3838
public:
@@ -52,7 +52,7 @@ class Dispatcher : public content::RenderViewObserver {
5252
DISALLOW_COPY_AND_ASSIGN(Dispatcher);
5353
};
5454

55-
} // namespace api
55+
} // namespace nwapi
5656

5757
#endif // CONTENT_NW_SRC_API_DISPATCHER_H_
5858

src/api/dispatcher_bindings.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ using content::RenderView;
3838
using content::V8ValueConverter;
3939
using base::FilePath;
4040

41-
namespace api {
41+
namespace nwapi {
4242

4343
namespace {
4444

@@ -468,4 +468,4 @@ void DispatcherBindings::CallStaticMethodSync(
468468
args.GetReturnValue().Set(converter->ToV8Value(&result, v8::Context::GetCurrent()));
469469
}
470470

471-
} // namespace api
471+
} // namespace nwapi

src/api/dispatcher_bindings.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "base/compiler_specific.h"
2626
#include "v8/include/v8.h"
2727

28-
namespace api {
28+
namespace nwapi {
2929

3030
class DispatcherBindings : public v8::Extension {
3131
public:
@@ -66,6 +66,6 @@ class DispatcherBindings : public v8::Extension {
6666
DISALLOW_COPY_AND_ASSIGN(DispatcherBindings);
6767
};
6868

69-
} // namespace api
69+
} // namespace nwapi
7070

7171
#endif // CONTENT_NW_SRC_API_DISPATCHER_BINDINGS_H_

0 commit comments

Comments
 (0)