Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: views/controls/menu/menu_separator_gtk.cc

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated native_widget_wayland.cc to match compositor changes Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/menu/menu_item_view_linux.cc ('k') | views/controls/menu/menu_separator_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/menu/menu_separator_gtk.cc
diff --git a/views/controls/menu/menu_separator_gtk.cc b/views/controls/menu/menu_separator_gtk.cc
deleted file mode 100644
index 52831098530235dc2114aa2af24d5048de99968e..0000000000000000000000000000000000000000
--- a/views/controls/menu/menu_separator_gtk.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// 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 "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/canvas.h"
-#include "views/controls/menu/menu_config.h"
-
-namespace views {
-
-static const SkColor kSeparatorColor = SkColorSetARGB(50, 00, 00, 00);
-
-void MenuSeparator::OnPaint(gfx::Canvas* canvas) {
- canvas->DrawLineInt(kSeparatorColor, 0, height() / 2, width(), height() / 2);
-}
-
-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
« no previous file with comments | « views/controls/menu/menu_item_view_linux.cc ('k') | views/controls/menu/menu_separator_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698