I forget cpplint every time
This commit is contained in:
parent
528e0f3efb
commit
58efb3c018
4 changed files with 4 additions and 4 deletions
|
@ -162,7 +162,7 @@ void Window::OnDevToolsClosed() {
|
|||
devtools_web_contents_.Reset();
|
||||
}
|
||||
|
||||
void Window::OnExecuteWindowsCommand(std::string& command_name) {
|
||||
void Window::OnExecuteWindowsCommand(const std::string& command_name) {
|
||||
Emit("app-command", command_name);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class Window : public mate::TrackableObject<Window>,
|
|||
void OnDevToolsFocus() override;
|
||||
void OnDevToolsOpened() override;
|
||||
void OnDevToolsClosed() override;
|
||||
void OnExecuteWindowsCommand(std::string& command_name) override;
|
||||
void OnExecuteWindowsCommand(const std::string& command_name) override;
|
||||
|
||||
private:
|
||||
// APIs for NativeWindow.
|
||||
|
|
|
@ -596,7 +596,7 @@ void NativeWindow::OnCapturePageDone(const CapturePageCallback& callback,
|
|||
}
|
||||
|
||||
const char* NativeWindow::AppCommandToString(int command_id) {
|
||||
switch(command_id) {
|
||||
switch (command_id) {
|
||||
case APPCOMMAND_BROWSER_BACKWARD:
|
||||
return "browser-backward";
|
||||
case APPCOMMAND_BROWSER_FORWARD:
|
||||
|
|
|
@ -67,7 +67,7 @@ class NativeWindowObserver {
|
|||
virtual void OnRendererResponsive() {}
|
||||
|
||||
// Called on Windows when App Commands arrive (WM_APPCOMMAND)
|
||||
virtual void OnExecuteWindowsCommand(std::string& command_name) {}
|
||||
virtual void OnExecuteWindowsCommand(const std::string& command_name) {}
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Reference in a new issue