blob: fdb5e8f6ede208604e92a443d4fbea2f9c21f3c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "views/controls/menu/menu_separator.h"
#include "base/logging.h"
#include "views/controls/menu/menu_config.h"
namespace views {
void MenuSeparator::Paint(gfx::Canvas* canvas) {
NOTIMPLEMENTED();
}
gfx::Size MenuSeparator::GetPreferredSize() {
return gfx::Size(10, // Just in case we're the only item in a menu.
MenuConfig::instance().separator_height);
}
} // namespace views
|