| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/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 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 19 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
| 20 virtual gfx::Size GetPreferredSize() OVERRIDE; | 20 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 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 // UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ | 28 #endif // UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ |
| OLD | NEW |