chore: add ELECTRON_ prefix to C++ include guards (#31925)

This commit is contained in:
Milan Burda 2021-11-22 08:34:31 +01:00 committed by GitHub
parent 0865267387
commit c4ea33d1bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
358 changed files with 1080 additions and 1079 deletions

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_
#include <memory>
@ -154,4 +154,4 @@ class AutofillPopupView : public views::WidgetDelegateView,
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_AUTOFILL_POPUP_VIEW_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#ifndef SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_
#define SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_
#include <map>
#include <memory>
@ -79,4 +79,4 @@ class ViewsDelegate : public views::ViewsDelegate {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_ELECTRON_VIEWS_DELEGATE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_
#include "ui/views/window/non_client_view.h"
@ -57,4 +57,4 @@ class FramelessView : public views::NonClientFrameView {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_FRAMELESS_VIEW_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#define SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#include <gio/gio.h>
@ -60,4 +60,4 @@ class GlobalMenuBarRegistrarX11 {
std::set<x11::Window> live_windows_;
};
#endif // SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_REGISTRAR_X11_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_
#define SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_
#include <string>
@ -80,4 +80,4 @@ class GlobalMenuBarX11 {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_GLOBAL_MENU_BAR_X11_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#ifndef SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_
#define SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_
#include <memory>
@ -67,4 +67,4 @@ class InspectableWebContentsViewViews : public InspectableWebContentsView,
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_INSPECTABLE_WEB_CONTENTS_VIEW_VIEWS_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_
#define SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_
#include "shell/browser/native_window_observer.h"
#include "shell/browser/ui/electron_menu_model.h"
@ -92,4 +92,4 @@ class MenuBar : public views::AccessiblePaneView,
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_BAR_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_
#define SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_
#include <memory>
@ -80,4 +80,4 @@ class MenuDelegate : public views::MenuDelegate {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_DELEGATE_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
#define SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
#include "shell/browser/ui/electron_menu_model.h"
#include "ui/views/controls/menu/menu_model_adapter.h"
@ -28,4 +28,4 @@ class MenuModelAdapter : public views::MenuModelAdapter {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_MENU_MODEL_ADAPTER_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
#include "ui/views/window/native_frame_view.h"
@ -34,4 +34,4 @@ class NativeFrameView : public views::NativeFrameView {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_NATIVE_FRAME_VIEW_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_
#include <memory>
@ -69,4 +69,4 @@ class RootView : public views::View {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_ROOT_VIEW_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_
#define SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_
#include <memory>
@ -58,4 +58,4 @@ class SubmenuButton : public views::MenuButton {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_SUBMENU_BUTTON_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_
#define SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_
#include "chrome/browser/ui/view_ids.h"
#include "ui/base/metadata/metadata_header_macros.h"
@ -51,4 +51,4 @@ class WinCaptionButton : public views::Button {
};
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_H_

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_
#define SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_
#include "base/scoped_observation.h"
#include "ui/base/metadata/metadata_header_macros.h"
@ -67,4 +67,4 @@ class WinCaptionButtonContainer : public views::View,
};
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_CAPTION_BUTTON_CONTAINER_H_

View file

@ -7,8 +7,8 @@
// Copyright (c) 2012 The Chromium Authors,
// which is governed by a BSD-style license
#ifndef SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#define SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#ifndef ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#define ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#include "shell/browser/native_window_views.h"
#include "shell/browser/ui/views/frameless_view.h"
@ -85,4 +85,4 @@ class WinFrameView : public FramelessView {
} // namespace electron
#endif // SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_
#endif // ELECTRON_SHELL_BROWSER_UI_VIEWS_WIN_FRAME_VIEW_H_