зеркало из https://github.com/electron/electron.git
fix: unused variable warnings in linux code (#12950)
This commit is contained in:
Родитель
c4134c3516
Коммит
8fa48d1c04
|
@ -17,10 +17,11 @@ namespace {
|
|||
const int kResizeInsideBoundsSize = 5;
|
||||
const int kResizeAreaCornerSize = 16;
|
||||
|
||||
const char kViewClassName[] = "FramelessView";
|
||||
|
||||
} // namespace
|
||||
|
||||
// static
|
||||
const char FramelessView::kViewClassName[] = "FramelessView";
|
||||
|
||||
FramelessView::FramelessView() : window_(NULL), frame_(NULL) {}
|
||||
|
||||
FramelessView::~FramelessView() {}
|
||||
|
|
|
@ -17,6 +17,7 @@ class NativeWindowViews;
|
|||
|
||||
class FramelessView : public views::NonClientFrameView {
|
||||
public:
|
||||
static const char kViewClassName[];
|
||||
FramelessView();
|
||||
~FramelessView() override;
|
||||
|
||||
|
|
|
@ -18,13 +18,13 @@ namespace atom {
|
|||
|
||||
namespace {
|
||||
|
||||
const char kViewClassName[] = "ElectronMenuBar";
|
||||
|
||||
// Default color of the menu bar.
|
||||
const SkColor kDefaultColor = SkColorSetARGB(255, 233, 233, 233);
|
||||
|
||||
} // namespace
|
||||
|
||||
const char MenuBar::kViewClassName[] = "ElectronMenuBar";
|
||||
|
||||
MenuBar::MenuBar(views::View* window)
|
||||
: background_color_(kDefaultColor), menu_model_(NULL), window_(window) {
|
||||
RefreshColorCache();
|
||||
|
|
|
@ -22,6 +22,8 @@ class MenuBar : public views::View,
|
|||
public views::MenuButtonListener,
|
||||
public views::FocusChangeListener {
|
||||
public:
|
||||
static const char kViewClassName[];
|
||||
|
||||
explicit MenuBar(views::View* window);
|
||||
virtual ~MenuBar();
|
||||
|
||||
|
|
|
@ -8,11 +8,7 @@
|
|||
|
||||
namespace atom {
|
||||
|
||||
namespace {
|
||||
|
||||
const char kViewClassName[] = "AtomNativeFrameView";
|
||||
|
||||
} // namespace
|
||||
const char NativeFrameView::kViewClassName[] = "AtomNativeFrameView";
|
||||
|
||||
NativeFrameView::NativeFrameView(NativeWindow* window, views::Widget* widget)
|
||||
: views::NativeFrameView(widget), window_(window) {}
|
||||
|
|
|
@ -15,6 +15,7 @@ class NativeWindow;
|
|||
// NativeWindowViews.
|
||||
class NativeFrameView : public views::NativeFrameView {
|
||||
public:
|
||||
static const char kViewClassName[];
|
||||
NativeFrameView(NativeWindow* window, views::Widget* widget);
|
||||
|
||||
protected:
|
||||
|
|
|
@ -11,15 +11,6 @@
|
|||
|
||||
namespace atom {
|
||||
|
||||
namespace {
|
||||
|
||||
const char* kAtomsToCache[] = {
|
||||
"_NET_WM_STATE",
|
||||
NULL,
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
WindowStateWatcher::WindowStateWatcher(NativeWindowViews* window)
|
||||
: window_(window),
|
||||
widget_(window->GetAcceleratedWidget()),
|
||||
|
|
|
@ -28,8 +28,6 @@ namespace crash_reporter {
|
|||
|
||||
namespace {
|
||||
|
||||
static const size_t kDistroSize = 128;
|
||||
|
||||
// Define a preferred limit on minidump sizes, because Crash Server currently
|
||||
// throws away any larger than 1.2MB (1.2 * 1024 * 1024). A value of -1 means
|
||||
// no limit.
|
||||
|
|
Загрузка…
Ссылка в новой задаче