OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 #ifndef VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 6 #ifndef VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
7 #define VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 7 #define VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
8 #pragma once | 8 #pragma once |
9 | 9 |
10 #include "views/view.h" | 10 #include "views/view.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 | 13 |
14 class MenuSeparator : public View { | 14 class MenuSeparator : public View { |
15 public: | 15 public: |
16 MenuSeparator() {} | 16 MenuSeparator() {} |
17 | 17 |
18 // View overrides. | 18 // View overrides. |
19 void OnPaint(gfx::Canvas* canvas); | 19 virtual void OnPaint(gfx::Canvas* canvas); |
20 gfx::Size GetPreferredSize(); | 20 virtual gfx::Size GetPreferredSize(); |
21 | 21 |
22 private: | 22 private: |
23 DISALLOW_COPY_AND_ASSIGN(MenuSeparator); | 23 DISALLOW_COPY_AND_ASSIGN(MenuSeparator); |
24 }; | 24 }; |
25 | 25 |
26 } // namespace views | 26 } // namespace views |
27 | 27 |
28 #endif // VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 28 #endif // VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
OLD | NEW |