💄 Fix cpplint warnings.
This commit is contained in:
parent
cd68396bd5
commit
7e67f7632d
5 changed files with 20 additions and 10 deletions
|
@ -239,7 +239,8 @@ void Menu::Clear(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
void Menu::GetIndexOfCommandId(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
void Menu::GetIndexOfCommandId(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
UNWRAP_MEMNU_AND_CHECK;
|
UNWRAP_MEMNU_AND_CHECK;
|
||||||
int index = FromV8Value(args[0]);
|
int index = FromV8Value(args[0]);
|
||||||
args.GetReturnValue().Set(self->model_->GetIndexOfCommandId(index));
|
args.GetReturnValue().Set(self->model_->GetIndexOfCommandId(index));
|
||||||
|
|
|
@ -57,7 +57,8 @@ class Menu : public EventEmitter,
|
||||||
|
|
||||||
static void Clear(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void Clear(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
|
||||||
static void GetIndexOfCommandId(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetIndexOfCommandId(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GetItemCount(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetItemCount(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GetCommandIdAt(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetCommandIdAt(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GetLabelAt(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetLabelAt(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
|
|
@ -21,11 +21,15 @@ class Protocol {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void RegisterProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void RegisterProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void UnregisterProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void UnregisterProtocol(
|
||||||
static void IsHandledProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
static void IsHandledProtocol(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
|
||||||
static void InterceptProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void InterceptProtocol(
|
||||||
static void UninterceptProtocol(const v8::FunctionCallbackInfo<v8::Value>& args);
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
static void UninterceptProtocol(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
|
||||||
static void RegisterProtocolInIO(const std::string& scheme);
|
static void RegisterProtocolInIO(const std::string& scheme);
|
||||||
static void UnregisterProtocolInIO(const std::string& scheme);
|
static void UnregisterProtocolInIO(const std::string& scheme);
|
||||||
|
|
|
@ -460,7 +460,8 @@ void Window::IsLoading(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
void Window::IsWaitingForResponse(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
void Window::IsWaitingForResponse(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
UNWRAP_WINDOW_AND_CHECK;
|
UNWRAP_WINDOW_AND_CHECK;
|
||||||
args.GetReturnValue().Set(
|
args.GetReturnValue().Set(
|
||||||
self->window_->GetWebContents()->IsWaitingForResponse());
|
self->window_->GetWebContents()->IsWaitingForResponse());
|
||||||
|
@ -610,7 +611,8 @@ void Window::Reload(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
void Window::ReloadIgnoringCache(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
void Window::ReloadIgnoringCache(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
UNWRAP_WINDOW_AND_CHECK;
|
UNWRAP_WINDOW_AND_CHECK;
|
||||||
|
|
||||||
NavigationController& controller =
|
NavigationController& controller =
|
||||||
|
|
|
@ -94,7 +94,8 @@ class Window : public EventEmitter,
|
||||||
// APIs for WebContents.
|
// APIs for WebContents.
|
||||||
static void GetPageTitle(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetPageTitle(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void IsLoading(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void IsLoading(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void IsWaitingForResponse(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void IsWaitingForResponse(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void Stop(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetRoutingID(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GetProcessID(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GetProcessID(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
@ -111,7 +112,8 @@ class Window : public EventEmitter,
|
||||||
static void GoToIndex(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GoToIndex(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void GoToOffset(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void GoToOffset(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void Reload(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void Reload(const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
static void ReloadIgnoringCache(const v8::FunctionCallbackInfo<v8::Value>& args);
|
static void ReloadIgnoringCache(
|
||||||
|
const v8::FunctionCallbackInfo<v8::Value>& args);
|
||||||
|
|
||||||
// Called when capturePage is done.
|
// Called when capturePage is done.
|
||||||
void OnCapturePageDone(const RefCountedV8Function& callback,
|
void OnCapturePageDone(const RefCountedV8Function& callback,
|
||||||
|
|
Loading…
Add table
Reference in a new issue